jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/832740 )
Change subject: [IMPR] Use localized template prefix in category_redirect.py ......................................................................
[IMPR] Use localized template prefix in category_redirect.py
Bug: T318049 Change-Id: I7d6440da1ae5d62ebe48fd04caa75682a6484c64 --- M scripts/category_redirect.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index 7af3042..427b416 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -254,7 +254,7 @@ % {'cat': target.title(with_ns=False), 'template': self.template_list[0]}) params = { - 'ns': self.site.namespaces.TEMPLATE, + 'ns': self.site.namespaces.TEMPLATE.custom_prefix(), 'template': self.template_list[0], 'oldcat': page.title(as_link=True, textlink=True) }