jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/509385 )
Change subject: [L10N] Add testwiki and improve l10n error in unusedfiles.py ......................................................................
[L10N] Add testwiki and improve l10n error in unusedfiles.py
Bug: T217054 Change-Id: I99e367f1420fd751aadb49b4c77519f3205c43a8 --- M scripts/unusedfiles.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/unusedfiles.py b/scripts/unusedfiles.py index c486bec..9c010e4 100755 --- a/scripts/unusedfiles.py +++ b/scripts/unusedfiles.py @@ -29,6 +29,7 @@
template_to_the_image = { 'meta': '{{Orphan file}}', + 'test': '{{Orphan file}}', 'it': '{{immagine orfana}}', 'fa': '{{تصاویر بدون استفاده}}', 'ur': '{{غیر مستعمل تصاویر}}', @@ -60,8 +61,8 @@ template_to_the_user) if not (self.template_image and (self.template_user or self.getOption('nouserwarning'))): - raise pywikibot.Error('This script is not localized for {0} site.' - .format(self.site)) + raise i18n.TranslationError('This script is not localized for {0} ' + 'site.'.format(self.site))
def treat(self, image): """Process one image page."""
pywikibot-commits@lists.wikimedia.org