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: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/piper.py b/scripts/piper.py index ecb4c4f..f1a4d1a 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 32256e4..2865406 100755 --- a/scripts/unlink.py +++ b/scripts/unlink.py @@ -72,7 +72,7 @@ self.linkR = re.compile(r'[[(?P<title>[^]|#]*)(?P<section>#[^]|]*)?(|(?P<label>[^]]*))?]](?P<linktrail>%s)' % linktrail) self.comment = i18n.twtranslate(self.pageToUnlink.site, 'unlink-unlinking', - self.pageToUnlink.title()) + {'title': self.pageToUnlink.title()})
def handleNextLink(self, text, match, context=100): """
pywikibot-commits@lists.wikimedia.org