http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10822
Revision: 10822
Author: huji
Date: 2012-12-23 20:10:06 +0000 (Sun, 23 Dec 2012)
Log Message:
-----------
(bug 3598083) Internationalizing the comma in lists
Modified Paths:
--------------
branches/rewrite/scripts/i18n/interwiki.py
Modified: branches/rewrite/scripts/i18n/interwiki.py
===================================================================
--- branches/rewrite/scripts/i18n/interwiki.py 2012-12-23 20:00:42 UTC (rev 10821)
+++ branches/rewrite/scripts/i18n/interwiki.py 2012-12-23 20:10:06 UTC (rev 10822)
@@ -13,6 +13,7 @@
'interwiki-modifying-from': u'Robot: Modifying %(from)s to %(modifying)s',
'interwiki-removing': u'Robot: Removing %(removing)s',
'interwiki-removing-modifying': u'Robot: Removing %(removing)s; modifying %(modifying)s',
+ 'interwiki-comma': u', ',
},
# Author: Csisc
# Author: Shirayuki
@@ -26,6 +27,7 @@
'interwiki-removing': u'Edit summary when the bot removes interwiki(s).\n* %(removing)s - either an interwiki link or a comma-separated list of language codes',
'interwiki-removing-modifying': u'Edit summary when the bot removes and modifies interwiki(s).\n* %(removing)s - either an interwiki link or a comma-separated list of language codes\n* %(modifying)s - either an interwiki link or a comma-separated list of language codes',
'interwiki-modifying-from': u'Edit summary when the bot modifies one interwiki link.\n* %(from)s - an interwiki link which is modified to %(modifying)s interwiki link\n* %(modifying)s - an interwiki link',
+ 'interwiki-comma': u'Localized comma character with a trailing space',
}, # Author: Csisc
'aeb': {
'interwiki-modifying': u'روبوت تعديل: %(modifying)s',
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10815
Revision: 10815
Author: btongminh
Date: 2012-12-23 16:01:12 +0000 (Sun, 23 Dec 2012)
Log Message:
-----------
Report all replacements, not just the ones from this process
Modified Paths:
--------------
trunk/pywikipedia/commonsdelinker/image_replacer.py
Modified: trunk/pywikipedia/commonsdelinker/image_replacer.py
===================================================================
--- trunk/pywikipedia/commonsdelinker/image_replacer.py 2012-12-23 15:29:48 UTC (rev 10814)
+++ trunk/pywikipedia/commonsdelinker/image_replacer.py 2012-12-23 16:01:12 UTC (rev 10815)
@@ -193,12 +193,12 @@
self.cursor.execute('START TRANSACTION WITH CONSISTENT SNAPSHOT')
self.cursor.execute("""SELECT old_image, new_image, user, comment FROM
- %s WHERE status = 'done' AND timestamp >= %i""" % \
- (self.config['replacer_table'], self.first_revision))
+ %s WHERE status = 'done'""" % \
+ (self.config['replacer_table'], ))
finished_images = list(self.cursor)
self.cursor.execute("""UPDATE %s SET status = 'reported'
- WHERE status = 'done' AND timestamp >= %i""" % \
- (self.config['replacer_table'], self.first_revision))
+ WHERE status = 'done'""" % \
+ (self.config['replacer_table'], ))
self.cursor.commit()
for old_image, new_image, user, comment in finished_images: