http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9993
Revision: 9993 Author: xqt Date: 2012-03-10 18:00:10 +0000 (Sat, 10 Mar 2012) Log Message: ----------- re-order doc string
Modified Paths: -------------- trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2012-03-10 17:58:48 UTC (rev 9992) +++ trunk/pywikipedia/families/wiktionary_family.py 2012-03-10 18:00:10 UTC (rev 9993) @@ -606,7 +606,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', @@ -625,14 +632,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, @@ -643,7 +642,7 @@ 'hu': ['en'], 'ms': self.alphabetic_revised, 'pl': self.alphabetic_revised, - 'sv': self.alphabetic_roman, + 'sv': self.alphabetic_sv, 'simple': self.alphabetic, }
pywikipedia-svn@lists.wikimedia.org