jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[i18n] Use edit summaries from i18n files

Change-Id: Ic0159f483899c12ebaf99d18a6cdedb6dc1779bb
---
M scripts/standardize_interwiki.py
1 file changed, 2 insertions(+), 25 deletions(-)

diff --git a/scripts/standardize_interwiki.py b/scripts/standardize_interwiki.py
index b8b8d16..d8b1660 100644
--- a/scripts/standardize_interwiki.py
+++ b/scripts/standardize_interwiki.py
@@ -17,30 +17,7 @@

import pywikibot

-from pywikibot import textlib
-
-# The summary that the Bot will use.
-comment = {
- 'ar': 'روبوت: توحيد قياسي للإنترويكي',
- 'cs': 'Robot: standardizace interwiki',
- 'de': 'Bot: Interwikilinks standardisieren',
- 'en': 'Robot: Interwiki standardization',
- 'fa': 'ربات: تصحیح جایگذاری میان‌ویکی‌ها',
- 'fr': 'Robot : Standardisation des interwikis',
- 'he': 'בוט: מסדר את האינטרוויקי',
- 'hi': 'बॉट: अंतरविकि मानकीकरण',
- 'it': 'Bot: Standardizzo interwiki',
- 'ja': 'ロボットによる: 言語間リンクを標準化',
- 'ksh': 'Bot: Engerwiki Lengks opprüühme',
- 'ml': 'യന്ത്രം: അന്തർവിക്കി ക്രമവൽക്കരണം',
- 'nds': 'Bot: Links twüschen Wikis standardisseern',
- 'nl': 'Bot: standaardisatie interwikiverwijzingen',
- 'no': 'bot: Språklenkestandardisering',
- 'ro': 'Robot: Standardizare interwiki',
- 'sr': 'Бот: Стандардизација међувикија',
- 'ur': 'خودکار: بین الویکی روابط کی معیار بندی',
- 'zh': '機器人: 跨語連結標準化',
-}
+from pywikibot import i18n, textlib


def main(*args):
@@ -55,7 +32,7 @@
else:
start = arg[7:]
site = pywikibot.Site()
- comm = pywikibot.translate(site, comment)
+ comm = i18n.twtranslate(site, 'standardize_interwiki-comment')
for pl in site.allpages(start):
plname = pl.title()
pywikibot.output('\nLoading {0}...'.format(plname))

To view, visit change 492675. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic0159f483899c12ebaf99d18a6cdedb6dc1779bb
Gerrit-Change-Number: 492675
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)