http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10817
Revision: 10817 Author: amir Date: 2012-12-23 17:58:14 +0000 (Sun, 23 Dec 2012) Log Message: ----------- fix of r10813, maybe ;)
Modified Paths: -------------- trunk/pywikipedia/pywikibot/textlib.py trunk/pywikipedia/template.py
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2012-12-23 17:07:01 UTC (rev 10816) +++ trunk/pywikipedia/pywikibot/textlib.py 2012-12-23 17:58:14 UTC (rev 10817) @@ -30,12 +30,6 @@ s = s.replace("&", "&") # Must be last return s
-def comma(langcode): - #TODO: needs to epxand - if langcode=='fa': - return u"،" - else: - return u"," def replaceExcept(text, old, new, exceptions, caseInsensitive=False, allowoverlap=False, marker = '', site = None): """
Modified: trunk/pywikipedia/template.py =================================================================== --- trunk/pywikipedia/template.py 2012-12-23 17:07:01 UTC (rev 10816) +++ trunk/pywikipedia/template.py 2012-12-23 17:58:14 UTC (rev 10817) @@ -215,7 +215,7 @@
# get edit summary message if it's empty if (self.editSummary==''): - Param = {'list': pywikibot.comma(site.language()).join(self.templates.keys()), + Param = {'list': site.mediawiki_message(u"Comma-separator").join(self.templates.keys()), 'num' : len(self.templates)} if self.remove: self.editSummary = i18n.twntranslate(