# -*- coding: utf-8 -*-

__version__ = '$Id$'

# The new wikivoyage family that is hosted at wikimedia

from pywikibot import family

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'wikivoyage'
        self.langs = {
            'de': u'de.wikivoyage.org',
            'en': u'en.wikivoyage.org',
            'fr': u'fr.wikivoyage.org',
            'it': u'it.wikivoyage.org',
            'nl': u'nl.wikivoyage.org',
            'ru': u'ru.wikivoyage.org',
            'sv': u'sv.wikivoyage.org',
        }

    def scriptpath(self, code):
        return u'/w'

    def shared_image_repository(self, code):
        return ('commons', 'commons')

@@ -271,13 +271,25 @@
 lang
-s = %7B
+uages_by_size = %5B
 %0A   
@@ -305,271 +305,155 @@
 'de'
-: u'de.wikivoyage.org',%0A            'en': u'en.wikivoyage.org',%0A            'fr': u'fr.wikivoyage.org',%0A            'it': u'it.wikivoyage.org',%0A            'nl': u'nl.wikivoyage.org',%0A            'ru': u'ru.wikivoyage.org',%0A            'sv': u'sv.wikivoyage.org',
+, 'en', 'fr', 'it', 'nl', 'ru','sv',%0A        %5D%0A%0A        self.langs = dict(%5B(lang, '%25s.wikivoyage.org' %25 lang) for lang in self.languages_by_size%5D)%0A
 %0A   

update language_by_size from trunk r10835