http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9961
Revision: 9961 Author: xqt Date: 2012-03-03 07:13:04 +0000 (Sat, 03 Mar 2012) Log Message: ----------- fix for r9940, r9960
Modified Paths: -------------- trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py =================================================================== --- trunk/pywikipedia/archivebot.py 2012-03-02 18:07:40 UTC (rev 9960) +++ trunk/pywikipedia/archivebot.py 2012-03-03 07:13:04 UTC (rev 9961) @@ -361,8 +361,6 @@ Execute by running the .run() method."""
algo = 'none' - pageSummary = i18n.twntranslate('archivebot-page-summary') - archiveSummary = i18n.twntranslate('archivebot-archive-summary')
def __init__(self, Page, tpl, salt, force=False): self.attributes = { @@ -490,7 +488,9 @@ #Save the archives first (so that bugs don't cause a loss of data) for a in sorted(self.archives.keys()): self.commentParams['count'] = self.archives[a].archivedThreads - comment = self.archiveSummary % self.commentParams + comment = i18n.twntranslate(language, + 'archivebot-archive-summary', + self.commentParams) self.archives[a].update(comment)
#Save the page itself @@ -502,7 +502,9 @@ if not self.commentParams['archives']: self.commentParams['archives'] = '/dev/null' self.commentParams['why'] = ', '.join(whys) - comment = self.pageSummary % self.commentParams + comment = i18n.twntranslate(language, + 'archivebot-page-summary', + self.commentParams) self.Page.update(comment)
def main():
pywikipedia-svn@lists.wikimedia.org