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)
--
To view, visit
https://gerrit.wikimedia.org/r/221417
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I482a6da978520e16cc92bdff73f7876d265c313e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>