jenkins-bot has submitted this change and it was merged.
Change subject: Make edit summary of archivebot more locolized for non latin digits ......................................................................
Make edit summary of archivebot more locolized for non latin digits
Change-Id: I1c9fc18688ca02a410e74b46231f64adc0068a50 --- M scripts/archivebot.py 1 file changed, 2 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 d1ef865..d57e2fc 100644 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -142,9 +142,9 @@ template = site.mediawiki_message('Hours') if template: exp = i18n.translate(site.code, template, int(string[:-1])) - return exp.replace('$1', string[:-1]) + return to_local_digits(exp.replace('$1', string[:-1]), site.code) else: - return string + return to_local_digits(string, site.code)
def str2time(string):
pywikibot-commits@lists.wikimedia.org