http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10345
Revision: 10345 Author: xqt Date: 2012-06-11 05:34:45 +0000 (Mon, 11 Jun 2012) Log Message: ----------- exclude the "K?\195?\169p" -> "F?\195?\161jl" replacements on hu-wiki per request https://hu.wikipedia.org/wiki/WP:KF-JA#F.C3.A1jl_vs._K.C3.A9p
Modified Paths: -------------- branches/rewrite/scripts/cosmetic_changes.py
Modified: branches/rewrite/scripts/cosmetic_changes.py =================================================================== --- branches/rewrite/scripts/cosmetic_changes.py 2012-06-10 23:47:18 UTC (rev 10344) +++ branches/rewrite/scripts/cosmetic_changes.py 2012-06-11 05:34:45 UTC (rev 10345) @@ -221,6 +221,11 @@ for image in [u'Image', u'image']: if image in namespaces: namespaces.remove(image) + if self.site.lang == 'hu': + # do not change "Kép" on hu-wiki + for image in [u'Kép', u'kép']: + if image in namespaces: + namespaces.remove(image) elif self.site.lang == 'pt': # bug #3346901 should be implemented continue
pywikipedia-svn@lists.wikimedia.org