http://www.mediawiki.org/wiki/Special:Code/pywikipedia/8854
Revision: 8854
Author: xqt
Date: 2011-01-18 07:04:44 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
altlang fallback for sr
Modified Paths:
--------------
branches/rewrite/pywikibot/i18n.py
Modified: branches/rewrite/pywikibot/i18n.py
===================================================================
--- branches/rewrite/pywikibot/i18n.py 2011-01-18 06:17:35 UTC (rev 8853)
+++ branches/rewrite/pywikibot/i18n.py 2011-01-18 07:04:44 UTC (rev 8854)
@@ -129,8 +129,10 @@
if code == 'kaa':
return ['uz', 'ru']
#Serbocroatian
- if code in ['bs', 'hr', 'sh', 'sr']:
- return ['sh', 'hr', 'bs', 'sr']
+ if code in ['bs', 'hr', 'sh',]:
+ return ['sh', 'hr', 'bs', 'sr', 'sr-el']
+ if code == 'sr':
+ return ['sr-el', 'sh', 'hr', 'bs']
#Turkish and Kurdish
if code in ['diq', 'ku']:
return ['ku', 'tr']