jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Use named i18n parameters ......................................................................
[FIX] Use named i18n parameters
These are the only two scripts using unnamed i18n parameters for the translations.
Bug: T98004 Change-Id: I76892d84f59dba2d5b9fd12fbc8c4563cc7f8b1f --- M scripts/piper.py M scripts/unlink.py 2 files changed, 3 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/piper.py b/scripts/piper.py index 7303bde..a7af13d 100755 --- a/scripts/piper.py +++ b/scripts/piper.py @@ -135,7 +135,8 @@ options['filters'] = filters s = ', '.join(options['filters']) options['comment'] = i18n.twtranslate(pywikibot.Site().lang, - 'piper-edit-summary') % s + 'piper-edit-summary', + {'filters': s})
if not gen: gen = genFactory.getCombinedGenerator() diff --git a/scripts/unlink.py b/scripts/unlink.py index 1b663d8..e1bd901 100755 --- a/scripts/unlink.py +++ b/scripts/unlink.py @@ -92,7 +92,7 @@ self.generator = pageToUnlink.getReferences( namespaces=self.getOption('namespaces'), content=True) self.comment = i18n.twtranslate(self.pageToUnlink.site, 'unlink-unlinking', - self.pageToUnlink.title()) + {'title': self.pageToUnlink.title()})
def _create_callback(self): """Create a new callback instance for replace_links."""
pywikibot-commits@lists.wikimedia.org