jenkins-bot has submitted this change and it was merged.
Change subject: (bug 70596) fix i18n.twtranslate call ......................................................................
(bug 70596) fix i18n.twtranslate call
- use generic {{delete}}, maybe this should be localized in next step
Change-Id: I263545ec4c9a7fb1f386fd60bd92d53c229c065a --- M scripts/casechecker.py 1 file changed, 3 insertions(+), 4 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/casechecker.py b/scripts/casechecker.py index 3c92791..75e55c6 100644 --- a/scripts/casechecker.py +++ b/scripts/casechecker.py @@ -413,11 +413,10 @@ self.site, "casechecker-delete-summary") newText = i18n.twtranslate( self.site, - "casechecker-delete-reason", redirTitle, - fallback=False) + "casechecker-delete-reason", redirTitle) if newText: - src.put(newText, editSummary, - minorEdit=False) + src.text = u'{{delete}}\n\n' + newText + src.save(editSummary, minor=False) changed = True
elif not dst.exists():
pywikibot-commits@lists.wikimedia.org