jenkins-bot has submitted this change and it was merged.

Change subject: use the new version of 'archivebot-older-than'
......................................................................


use the new version of 'archivebot-older-than'

with the 'duration' parameter

per mailing list:
http://comments.gmane.org/gmane.comp.python.pywikipediabot.general/14160

corresponding change in the i18n file:
I507b0b38a87fe8e97b850a71d9c1764ec16fbeb1

Change-Id: Ie4699550def701a728abaca3e62287e1c36ce3b0
---
M scripts/archivebot.py
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index ba37a89..5b10838 100644
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -242,9 +242,10 @@
             # return 'unsigned'
             maxage = str2time(re_t.group(1))
             if self.now - self.timestamp > maxage:
-                msg = i18n.twtranslate(self.code, 'archivebot-older-than')
                 duration = str2localized_duration(archiver.site, re_t.group(1))
-                return u'%s %s' % (msg, duration)
+                return i18n.twtranslate(self.code,
+                                        'archivebot-older-than',
+                                        {'duration': duration})
         return ''
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/152139
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie4699550def701a728abaca3e62287e1c36ce3b0
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to