Revision: 8186 Author: xqt Date: 2010-05-17 20:00:14 +0000 (Mon, 17 May 2010)
Log Message: ----------- update fa-translation from trunk
Modified Paths: -------------- branches/rewrite/scripts/isbn.py
Modified: branches/rewrite/scripts/isbn.py =================================================================== --- branches/rewrite/scripts/isbn.py 2010-05-17 19:48:08 UTC (rev 8185) +++ branches/rewrite/scripts/isbn.py 2010-05-17 20:00:14 UTC (rev 8186) @@ -51,6 +51,7 @@ 'ar': u'روبوت: تهيئة ISBN', 'de': 'Bot: Formatiere ISBN', 'en': 'Robot: Formatting ISBN', + 'fa': u'ربات:استانداردسازی شابک', 'he': u'בוט: מעצב ISBN', 'ja': u'ロボットによる ISBN の書式化', 'nl': 'Bot: ISBN opgemaakt', @@ -1176,11 +1177,14 @@ # convert ISBN numbers page.put(text) except pywikibot.NoPage: - print "Page %s does not exist?!" % page.title(asLink=True) + pywikibot.output(u"Page %s does not exist?!" + % page.title(asLink=True)) except pywikibot.IsRedirectPage: - print "Page %s is a redirect; skipping." % page.title(asLink=True) + pywikibot.output(u"Page %s is a redirect; skipping." + % page.title(asLink=True)) except pywikibot.LockedPage: - print "Page %s is locked?!" % page.title(asLink=True) + pywikibot.output(u"Page %s is locked?!" + % page.title(asLink=True))
class InvalidIsbnException(pywikibot.Error):
pywikipedia-svn@lists.wikimedia.org