Ricordisamoa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/181407

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

backport of Ie4699550def701a728abaca3e62287e1c36ce3b0 from core

Change-Id: Ifefc1c289120edd62747480cee497f846e6810c8
---
M archivebot.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/07/181407/1

diff --git a/archivebot.py b/archivebot.py
index c4fe7c4..7c80de0 100644
--- a/archivebot.py
+++ b/archivebot.py
@@ -412,7 +412,9 @@
                 #return 'unsigned'
             maxage = str2time(reT.group(1))
             if self.now - self.timestamp > maxage:
-                return message('archivebot-older-than') + ' ' + reT.group(1)
+                return i18n.twtranslate(Site.language,
+                                        'archivebot-older-than',
+                                        {'duration': reT.group(1)})
         return ''
 
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifefc1c289120edd62747480cee497f846e6810c8
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>

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

Reply via email to