http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9994
Revision: 9994 Author: xqt Date: 2012-03-10 18:00:40 +0000 (Sat, 10 Mar 2012) Log Message: ----------- re-order doc string from trunk r9993
Modified Paths: -------------- branches/rewrite/pywikibot/families/wiktionary_family.py
Modified: branches/rewrite/pywikibot/families/wiktionary_family.py =================================================================== --- branches/rewrite/pywikibot/families/wiktionary_family.py 2012-03-10 18:00:10 UTC (rev 9993) +++ branches/rewrite/pywikibot/families/wiktionary_family.py 2012-03-10 18:00:40 UTC (rev 9994) @@ -49,7 +49,14 @@ # letter on ALL Wiktionaries. self.nocapitalize = self.langs.keys()
- self.alphabetic_roman = [ + # Which languages have a special order for putting interlanguage links, + # and what order is it? If a language is not in interwiki_putfirst, + # alphabetical order on language code is used. For languages that are in + # interwiki_putfirst, interwiki_putfirst is checked first, and + # languages are put in the order given there. All other languages are + # put after those, in code-alphabetical order. + + self.alphabetic_sv = [ 'aa', 'af', 'ak', 'als', 'an', 'roa-rup', 'ast', 'gn', 'ay', 'az', 'id', 'ms', 'bm', 'zh-min-nan', 'jv', 'su', 'mt', 'bi', 'bo', 'bs', 'br', 'ca', 'cs', 'ch', 'sn', 'co', 'za', 'cy', 'da', 'de', 'na', @@ -68,14 +75,6 @@ 'dz', 'ka', 'ti', 'am', 'chr', 'iu', 'km', 'zh', 'ja', 'ko', ]
- - # Which languages have a special order for putting interlanguage links, - # and what order is it? If a language is not in interwiki_putfirst, - # alphabetical order on language code is used. For languages that are in - # interwiki_putfirst, interwiki_putfirst is checked first, and - # languages are put in the order given there. All other languages are put - # after those, in code-alphabetical order. - self.interwiki_putfirst = { 'da': self.alphabetic, 'en': self.alphabetic, @@ -86,7 +85,7 @@ 'hu': ['en'], 'ms': self.alphabetic_revised, 'pl': self.alphabetic_revised, - 'sv': self.alphabetic_roman, + 'sv': self.alphabetic_sv, 'simple': self.alphabetic, }