Revision: 8433 Author: xqt Date: 2010-08-22 20:52:39 +0000 (Sun, 22 Aug 2010)
Log Message: ----------- new fallback for frr-wiki (http://commons.wikimedia.org/wiki/Template_talk:GetFallback#frr:)
Modified Paths: -------------- branches/rewrite/pywikibot/textlib.py trunk/pywikipedia/pywikibot/textlib.py
Modified: branches/rewrite/pywikibot/textlib.py =================================================================== --- branches/rewrite/pywikibot/textlib.py 2010-08-22 20:41:11 UTC (rev 8432) +++ branches/rewrite/pywikibot/textlib.py 2010-08-22 20:52:39 UTC (rev 8433) @@ -843,7 +843,7 @@ if code in ['cs', 'sk']: return ['cs', 'sk'] #German - if code in ['bar', 'ksh', 'pdc']: + if code in ['bar', 'frr', 'ksh', 'pdc']: return ['de'] if code in ['als', 'lb']: return ['de', 'fr'] @@ -853,8 +853,8 @@ return ['hsb', 'dsb', 'de'] if code == 'rm': return ['de', 'it'] - if code in ['stq', 'frr',]: - return ['frr', 'stq', 'fy', 'nds', 'de'] + if code =='stq': + return ['nds', 'de'] #Greek if code == 'pnt': return ['el']
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2010-08-22 20:41:11 UTC (rev 8432) +++ trunk/pywikipedia/pywikibot/textlib.py 2010-08-22 20:52:39 UTC (rev 8433) @@ -860,7 +860,7 @@ if code in ['cs', 'sk']: return ['cs', 'sk'] #German - if code in ['bar', 'ksh', 'pdc']: + if code in ['bar', 'frr', 'ksh', 'pdc']: return ['de'] if code in ['als', 'lb']: return ['de', 'fr'] @@ -870,8 +870,8 @@ return ['hsb', 'dsb', 'de'] if code == 'rm': return ['de', 'it'] - if code in ['stq', 'frr',]: - return ['frr', 'stq', 'fy', 'nds', 'de'] + if code =='stq': + return ['nds', 'de'] #Greek if code == 'pnt': return ['el']