jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] category: Use dict in i18n ......................................................................
[FIX] category: Use dict in i18n
The category-renamed translation uses numbered replacements instead of named ones.
Bug: T98004 Change-Id: I482a6da978520e16cc92bdff73f7876d265c313e --- M scripts/category.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py index 0741fa5..149847a 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -652,7 +652,7 @@ self.oldcat.title(), self.newcat.title())) comma = self.site.mediawiki_message('comma-separator') authors = comma.join(self.oldcat.contributingUsers()) - template_vars = (self.oldcat.title(), authors) + template_vars = {'oldcat': self.oldcat.title(), 'authors': authors} comment = i18n.twtranslate(self.site, 'category-renamed', template_vars) self.newcat.text = self.oldcat.text self._strip_cfd_templates(comment)
pywikibot-commits@lists.wikimedia.org