http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10631
Revision: 10631 Author: xqt Date: 2012-10-31 11:37:00 +0000 (Wed, 31 Oct 2012) Log Message: ----------- new message for modifying one page only showing the old one
Modified Paths: -------------- branches/rewrite/scripts/interwiki.py
Modified: branches/rewrite/scripts/interwiki.py =================================================================== --- branches/rewrite/scripts/interwiki.py 2012-10-31 11:31:14 UTC (rev 10630) +++ branches/rewrite/scripts/interwiki.py 2012-10-31 11:37:00 UTC (rev 10631) @@ -2292,6 +2292,11 @@ commentname += '-removing' if modifying: commentname += '-modifying' + if commentname == 'interwiki-modifying' and len(modifying) == 1: + useFrom = True + commentname += '-from' + else: + useFrom = False
if adding or removing or modifying: #Version info marks bots without unicode error @@ -2303,7 +2308,8 @@
changes = {'adding': ', '.join([fmt(new, x) for x in adding]), 'removing': ', '.join([fmt(old, x) for x in removing]), - 'modifying': ', '.join([fmt(new, x) for x in modifying])} + 'modifying': ', '.join([fmt(new, x) for x in modifying]), + 'from': u'' if not useFrom else old[modifying[0]]}
mcomment += i18n.twtranslate(insite.lang, commentname) % changes mods = i18n.twtranslate('en', commentname) % changes