http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10854
Revision: 10854 Author: xqt Date: 2013-01-01 10:50:44 +0000 (Tue, 01 Jan 2013) Log Message: ----------- update language_by_size from trunk r10835
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikivoyage_family.py
Modified: branches/rewrite/pywikibot/families/wikivoyage_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikivoyage_family.py 2012-12-31 17:16:09 UTC (rev 10853) +++ branches/rewrite/pywikibot/families/wikivoyage_family.py 2013-01-01 10:50:44 UTC (rev 10854) @@ -10,14 +10,12 @@ 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', + self.languages_by_size = [ + 'de', 'en', 'fr', 'it', 'nl', 'ru','sv', + ] + + self.langs = dict([(lang, '%s.wikivoyage.org' % lang) for lang in self.languages_by_size]) + }
def scriptpath(self, code):