http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10825
Revision: 10825 Author: huji Date: 2012-12-23 20:18:52 +0000 (Sun, 23 Dec 2012) Log Message: ----------- (bug 3598083) Internationalizing the comma in lists
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2012-12-23 20:10:55 UTC (rev 10824) +++ trunk/pywikipedia/interwiki.py 2012-12-23 20:18:52 UTC (rev 10825) @@ -2334,9 +2334,11 @@
mcomment += globalvar.summary
- changes = {'adding': ', '.join([fmt(new, x) for x in adding]), - 'removing': ', '.join([fmt(old, x) for x in removing]), - 'modifying': ', '.join([fmt(new, x) for x in modifying]), + comma = i18n.twtranslate(insite.lang, 'interwiki-comma') + + changes = {'adding': comma.join([fmt(new, x) for x in adding]), + 'removing': comma.join([fmt(old, x) for x in removing]), + 'modifying': comma.join([fmt(new, x) for x in modifying]), 'from': u'' if not useFrom else old[modifying[0]]}
mcomment += i18n.twtranslate(insite.lang, commentname) % changes