http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9887
Revision: 9887 Author: xqt Date: 2012-02-12 17:48:14 +0000 (Sun, 12 Feb 2012) Log Message: ----------- dictiionary needed for twtranslate(); fix for r9883
Modified Paths: -------------- trunk/pywikipedia/category.py
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2012-02-11 14:28:44 UTC (rev 9886) +++ trunk/pywikipedia/category.py 2012-02-12 17:48:14 UTC (rev 9887) @@ -438,8 +438,8 @@ # Set the section title for the old cat's history on the new # cat's talk page. sectionTitle = i18n.twtranslate(site, - 'category-section-title', - self.oldCat.title()) + 'category-section-title') \ + % {'oldcat': self.oldCat.title()} #Should be OK, we are within if self.oldCat.exists() historySection = u'\n== %s ==\n%s' % (sectionTitle, history) try: @@ -449,8 +449,8 @@ try: newCat.toggleTalkPage().put( text, i18n.twtranslate(site, - 'category-version-history', - self.oldCat.title())) + 'category-version-history') + % {'oldcat': self.oldCat.title()}) except: pywikibot.output( 'History of the category has not been saved to new talk page')
pywikipedia-svn@lists.wikimedia.org