Revision: 4588 Author: rotem Date: 2007-11-25 12:02:05 +0000 (Sun, 25 Nov 2007)
Log Message: ----------- (bug 1834705) Properly use localized redirect text in redirect.py.
Modified Paths: -------------- trunk/pywikipedia/redirect.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2007-11-25 11:02:52 UTC (rev 4587) +++ trunk/pywikipedia/redirect.py 2007-11-25 12:02:05 UTC (rev 4588) @@ -285,7 +285,7 @@ % (secondRedir.aslink(), secondTargetPage.aslink())) continue oldText = redir.get(get_redirect=True) - text = mysite.redirectRegex().sub('#REDIRECT [[%s]]' % secondTargetPage.title(), oldText) + text = mysite.redirectRegex().sub('#%s [[%s]]' % ( mysite.redirect( True ), secondTargetPage.title() ), oldText) wikipedia.showDiff(oldText, text) if self.prompt(u'Do you want to accept the changes?'): try:
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-11-25 11:02:52 UTC (rev 4587) +++ trunk/pywikipedia/wikipedia.py 2007-11-25 12:02:05 UTC (rev 4588) @@ -4464,7 +4464,7 @@
""" if default: - return self.family.redirect.get(self.lang, "REDIRECT") + return self.family.redirect.get(self.lang, [u"REDIRECT"])[0] else: return self.family.redirect.get(self.lang, None)
pywikipedia-l@lists.wikimedia.org