Revision: 7564 Author: xqt Date: 2009-10-29 15:29:31 +0000 (Thu, 29 Oct 2009)
Log Message: ----------- +fi +uk, typo
Modified Paths: -------------- branches/rewrite/scripts/imageuncat.py branches/rewrite/scripts/replace.py
Modified: branches/rewrite/scripts/imageuncat.py =================================================================== --- branches/rewrite/scripts/imageuncat.py 2009-10-29 14:08:38 UTC (rev 7563) +++ branches/rewrite/scripts/imageuncat.py 2009-10-29 15:29:31 UTC (rev 7564) @@ -1268,7 +1268,6 @@ Return a pagegenerator containing all the images edited in a certain timespan. The delay is the amount of minutes to wait and the block is the timespan to return images in. Should probably be copied to somewhere else - ''' rcstart = site.getcurrenttime() + timedelta(minutes=-delay-block) rcend = site.getcurrenttime() + timedelta(minutes=-delay)
Modified: branches/rewrite/scripts/replace.py =================================================================== --- branches/rewrite/scripts/replace.py 2009-10-29 14:08:38 UTC (rev 7563) +++ branches/rewrite/scripts/replace.py 2009-10-29 15:29:31 UTC (rev 7564) @@ -83,6 +83,8 @@ text. If the -regex argument is given, the first argument will be regarded as a regular expression, and the second argument might contain expressions like \1 or \g<name>. + It is possible to introduce more than one pair of old text + and replacement.
Examples:
@@ -97,6 +99,9 @@
python replace.py -xml:foobar.xml "Errror" "Error" -namespace:0
+If you want to do more than one replacement at a time, use this: + python replace.py -xml:foobar.xml "Errror" "Error" "Faail" "Fail" -namespace:0 + If you have a page called 'John Doe' and want to fix the format of ISBNs, use:
python replace.py -page:John_Doe -fix:isbn @@ -144,7 +149,8 @@ 'en': u'Robot: Automated text replacement %s', 'es': u'Robot: Reemplazo automático de texto %s', 'fa': u'ربات: تغییر خودکار متن %s', - 'fr': u'Bot : Remplacement de texte automatisé %s', + 'fi': u'Botti korvasi automaattisesti tekstin %s', + 'fr': u'Robot : Remplacement de texte automatisé %s', 'he': u'בוט: החלפת טקסט אוטומטית %s', 'hu': u'Robot: Automatikus szövegcsere %s', 'ia': u'Robot: Reimplaciamento automatic de texto %s', @@ -166,6 +172,7 @@ 'ru': u'Робот: Автоматизированная замена текста %s', 'sr': u'Бот: Аутоматска замена текста %s', 'sv': u'Bot: Automatisk textersättning: %s', + 'uk': u'Бот: Автоматизована заміна тексту: %s', 'zh': u'機器人:執行文字代換作業 %s', }
@@ -555,7 +562,7 @@ elif arg == '-multiline': multiline = True elif arg.startswith('-addcat:'): - add_cat = arg[len('-addcat:'):] + add_cat = arg[8:] elif arg.startswith('-summary:'): edit_summary = arg[9:] summary_commandline = True
pywikipedia-svn@lists.wikimedia.org