Revision: 8771
Author: xqt
Date: 2010-12-13 13:54:07 +0000 (Mon, 13 Dec 2010)
Log Message:
-----------
new sorting order for sv-wiki per request
http://meta.wikimedia.org/wiki/User_talk:Xqt#iw_sort_order
Modified Paths:
--------------
trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/families/wiktionary_family.py
===================================================================
--- trunk/pywikipedia/families/wiktionary_family.py 2010-12-12 22:47:38 UTC (rev 8770)
+++ trunk/pywikipedia/families/wiktionary_family.py 2010-12-13 13:54:07 UTC (rev 8771)
@@ -425,21 +425,65 @@
'en': u'Sign gloss talk',
}
- # Other than most Wikipedias, page names must not start with a capital
- # letter on ALL Wiktionaries.
- self.nocapitalize = self.langs.keys()
-
- # Global bot allowed languages on
http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementa…
- self.cross_allowed = [
- 'ang', 'ast', 'az', 'bg', 'bn',
'da', 'eo', 'es', 'fa', 'fy', 'ga',
'gd', 'hu',
- 'ia', 'ie', 'ik', 'jv', 'ka',
'li', 'lt', 'mk', 'nl', 'no', 'oc',
'pt', 'sk', 'tg', 'th', 'ti',
- 'ts', 'ug', 'uk', 'vo', 'za',
'zh-min-nan', 'zh', 'zu',
- ]
# CentralAuth cross avaliable projects.
self.cross_projects = [
'wikipedia', 'wikibooks', 'wikiquote',
'wikisource', 'wikinews', 'wikiversity',
'meta', 'mediawiki', 'test', 'incubator',
'commons', 'species'
]
+ # Global bot allowed languages on
+ #
http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementa…
+ self.cross_allowed = [
+ 'ang', 'ast', 'az', 'bg', 'bn',
'da', 'eo', 'es', 'fa', 'fy', 'ga',
+ 'gd', 'hu', 'ia', 'ie', 'ik',
'jv', 'ka', 'li', 'lt', 'mk', 'nl',
+ 'no', 'oc', 'pt', 'sk', 'tg',
'th', 'ti', 'ts', 'ug', 'uk', 'vo',
+ 'za', 'zh-min-nan', 'zh', 'zu',
+ ]
+
+ # Other than most Wikipedias, page names must not start with a capital
+ # letter on ALL Wiktionaries.
+ self.nocapitalize = self.langs.keys()
+
+ self.alphabetic_roman = [
+ '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',
+ 'mh', 'et', 'ang', 'en', 'es',
'eo', 'eu', 'to', 'fr', 'fy', 'fo',
+ 'ga', 'gv', 'sm', 'gd', 'gl',
'hr', 'io', 'ia', 'ie', 'ik', 'xh',
+ 'is', 'zu', 'it', 'kl', 'csb',
'kw', 'rw', 'rn', 'sw', 'ky', 'ku',
+ 'la', 'lv', 'lb', 'lt', 'li',
'ln', 'jbo', 'hu', 'mg', 'mi', 'mo',
+ 'my', 'fj', 'nah', 'nl', 'cr',
'no', 'nn', 'hsb', 'oc', 'om', 'ug',
+ 'uz', 'nds', 'pl', 'pt', 'ro',
'rm', 'qu', 'sg', 'sc', 'st', 'tn',
+ 'sq', 'scn', 'simple', 'ss', 'sk',
'sl', 'so', 'sh', 'fi', 'sv',
+ 'tl', 'tt', 'vi', 'tpi', 'tr',
'tw', 'vo', 'wa', 'wo', 'ts', 'yo',
+ 'el', 'av', 'ab', 'ba', 'be',
'bg', 'mk', 'mn', 'ru', 'sr', 'tg',
+ 'uk', 'kk', 'hy', 'yi', 'he',
'ur', 'ar', 'tk', 'sd', 'fa', 'ha',
+ 'ps', 'dv', 'ks', 'ne', 'pi',
'bh', 'mr', 'sa', 'hi', 'as', 'bn',
+ 'pa', 'gu', 'or', 'ta', 'te',
'kn', 'ml', 'si', 'th', 'lo', '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,
+ 'et': self.alphabetic,
+ 'fi': self.alphabetic,
+ 'fy': self.fyinterwiki,
+ 'he': ['en'],
+ 'hu': ['en'],
+ 'ms': self.alphabetic_revised,
+ 'pl': self.alphabetic,
+ 'sv': self.alphabetic_roman,
+ 'simple': self.alphabetic,
+ }
+
self.obsolete = {
'aa': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Af…
'ab': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ab…
@@ -475,26 +519,6 @@
'zh-cn': 'zh'
}
- # 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,
- 'et': self.alphabetic,
- 'fi': self.alphabetic,
- 'fy': self.fyinterwiki,
- 'he': ['en'],
- 'hu': ['en'],
- 'ms': self.alphabetic_revised,
- 'pl': self.alphabetic,
- 'simple': self.alphabetic
- }
-
self.interwiki_on_one_line = ['pl']
self.interwiki_attop = ['pl']