http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9987
Revision: 9987 Author: xqt Date: 2012-03-10 17:50:02 +0000 (Sat, 10 Mar 2012) Log Message: ----------- remove pdt from interwiki_putfirst sorting order - keeps still in incubator for next time; reorder doc string
Modified Paths: -------------- trunk/pywikipedia/families/wikipedia_family.py
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2012-03-10 17:46:47 UTC (rev 9986) +++ trunk/pywikipedia/families/wikipedia_family.py 2012-03-10 17:50:02 UTC (rev 9987) @@ -1210,6 +1210,13 @@ # but some languages don't use this. self.nocapitalize = ['jbo',]
+ # 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_sr = [ 'ace', 'kbd', 'af', 'ak', 'als', 'am', 'ang', 'ab', 'ar', 'an', 'arc', 'roa-rup', 'frp', 'arz', 'as', 'ast', 'gn', 'av', 'ay', 'az', @@ -1242,13 +1249,6 @@ 'zh-tw', 'zh-cn', 'zh-classical', 'zh-yue', 'bat-smg', ]
- # 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 = { 'be-x-old': self.alphabetic, 'en': self.alphabetic, @@ -1261,8 +1261,8 @@ 'lb': self.alphabetic, 'mk': self.alphabetic, 'ms': self.alphabetic_revised, - 'nds': ['nds-nl', 'pdt'], # Note: as of 2008-02-24, pdt: - 'nds-nl': ['nds', 'pdt'], # (Plautdietsch) is still in the Incubator. + 'nds': ['nds-nl'], + 'nds-nl': ['nds'], 'nn': ['no', 'sv', 'da'] + self.alphabetic, 'no': self.alphabetic, 'nv': ['en', 'es'] + self.alphabetic,
pywikipedia-svn@lists.wikimedia.org