http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10824
Revision: 10824 Author: huji Date: 2012-12-23 20:10:55 +0000 (Sun, 23 Dec 2012) Log Message: ----------- (bug 3598083) Internationalizing the comma in lists
Modified Paths: -------------- trunk/pywikipedia/template.py
Modified: trunk/pywikipedia/template.py =================================================================== --- trunk/pywikipedia/template.py 2012-12-23 20:10:32 UTC (rev 10823) +++ trunk/pywikipedia/template.py 2012-12-23 20:10:55 UTC (rev 10824) @@ -213,9 +213,11 @@ self.addedCat = catlib.Category( site, u'%s:%s' % (site.namespace(14), self.addedCat))
+ comma = self.summary = i18n.twtranslate(site, 'template-comma') + # get edit summary message if it's empty if (self.editSummary==''): - Param = {'list': site.mediawiki_message(u"Comma-separator").join(self.templates.keys()), + Param = {'list': comma.join(self.templates.keys()), 'num' : len(self.templates)} if self.remove: self.editSummary = i18n.twntranslate(
pywikipedia-svn@lists.wikimedia.org