http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9988
Revision: 9988 Author: xqt Date: 2012-03-10 17:52:20 +0000 (Sat, 10 Mar 2012) Log Message: ----------- remove pdt from interwiki_putfirst sorting order - keeps still in incubator for next time; reorder doc string; update from trunk r9987
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikipedia_family.py
Modified: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2012-03-10 17:50:02 UTC (rev 9987) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2012-03-10 17:52:20 UTC (rev 9988) @@ -305,6 +305,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', @@ -337,13 +344,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, @@ -356,8 +356,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,