jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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."""

To view, visit change 509385. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I99e367f1420fd751aadb49b4c77519f3205c43a8
Gerrit-Change-Number: 509385
Gerrit-PatchSet: 1
Gerrit-Owner: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)