http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9405
Revision: 9405 Author: xqt Date: 2011-07-16 21:19:16 +0000 (Sat, 16 Jul 2011) Log Message: ----------- use dictionary for string replacement
Modified Paths: -------------- trunk/pywikipedia/capitalize_redirects.py
Modified: trunk/pywikipedia/capitalize_redirects.py =================================================================== --- trunk/pywikipedia/capitalize_redirects.py 2011-07-16 21:18:51 UTC (rev 9404) +++ trunk/pywikipedia/capitalize_redirects.py 2011-07-16 21:19:16 UTC (rev 9405) @@ -77,7 +77,7 @@ if self.acceptall or choice == 'y': comment = i18n.twtranslate(self.site, 'capitalize_redirects-create_redirect', - page_t) + {'to': page_t}) try: page_cap.put(u"#%s %s" % (self.site.redirect(True), page.title(asLink=True,
pywikipedia-svn@lists.wikimedia.org