Revision: 8192 Author: amir Date: 2010-05-18 00:38:36 +0000 (Tue, 18 May 2010)
Log Message: ----------- debug
Modified Paths: -------------- trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py =================================================================== --- trunk/pywikipedia/featured.py 2010-05-17 21:26:45 UTC (rev 8191) +++ trunk/pywikipedia/featured.py 2010-05-18 00:38:36 UTC (rev 8192) @@ -582,7 +582,9 @@ continue site = wikipedia.getSite() comment = wikipedia.setAction(wikipedia.translate(site, msg_former) % (fromsite.lang, a.title())) - text=text.replace(u"{{%s|%s}}" % (templatelist[0], fromsite.lang),'',1) + name=templatelist[0] + text=text.replace(u"{{%s|%s}}" %(name, fromsite.lang),'',1) + text=text.replace(u"{{%s|%s}}" %(name.lower(), fromsite.lang),'',1) if not dry: try: atrans.put(text, comment)
pywikipedia-svn@lists.wikimedia.org