Cyde has uploaded a new change for review. https://gerrit.wikimedia.org/r/309741
Change subject: Fix template vars being passed to 'category-was-moved' template ...................................................................... Fix template vars being passed to 'category-was-moved' template The template itself already has the Category: prefix in it, and this is spread across many, many different translated templates. Change-Id: I4cb3c9ed90c5f12970d9832a2a3dea6620c360c8 --- M scripts/category.py 1 file changed, 6 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/41/309741/1 diff --git a/scripts/category.py b/scripts/category.py index 17d5af7..6bb60d3 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -703,9 +703,10 @@ Do not use this function from outside the class. """ + cat_name_only = self.newcat.title(withNamespace=False) comment = i18n.twtranslate(self.site, 'category-was-moved', - {'newcat': self.newcat.title(), - 'title': self.newcat.title()}) + {'newcat': cat_name_only, + 'title': cat_name_only}) self.oldtalk.move(self.newtalk.title(), comment) def _update_wikibase_item(self): @@ -719,9 +720,10 @@ except pywikibot.NoPage: item = None if item and item.exists(): + cat_name_only = self.newcat.title(withNamespace=False) comment = i18n.twtranslate(self.site, 'category-was-moved', - {'newcat': self.newcat.title(), - 'title': self.newcat.title()}) + {'newcat': cat_name_only, + 'title': cat_name_only}) item.setSitelink(self.newcat, summary=comment) def _hist(self): -- To view, visit https://gerrit.wikimedia.org/r/309741 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4cb3c9ed90c5f12970d9832a2a3dea6620c360c8 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Cyde <cydew...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits