jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/942785 )

Change subject: [i18n] use additional i18n messages with checkimages reports
......................................................................

[i18n] use additional i18n messages with checkimages reports

Change-Id: Iaaeb2b21f285e85363c7adcd4ba6044e0f940349
---
M scripts/checkimages.py
1 file changed, 15 insertions(+), 7 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index ee33a89..9cf45b3 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -999,13 +999,12 @@
                         comm_image=dup_comment_image, unver=True)

         if self.duplicates_report or only_report:
-            if only_report:
-                repme = ((self.list_entry + 'has the following duplicates '
-                          "('''forced mode'''):")
-                         % self.image.title(as_url=True))
-            else:
-                repme = ((self.list_entry + 'has the following duplicates:')
-                         % self.image.title(as_url=True))
+            has_duplicates = i18n.twtranslate(
+                self.site, 'checkimages-has-duplicates')
+            forced_mode = ' ' + i18n.twtranslate(
+                self.site, 'checkimages-forced-mode') if only_report else ''
+            repme = self.list_entry % self.image.title(as_url=True)
+            repme += has_duplicates % {'force': forced_mode}

             for dup_page in duplicates:
                 if dup_page.title(as_url=True) \

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/942785
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iaaeb2b21f285e85363c7adcd4ba6044e0f940349
Gerrit-Change-Number: 942785
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to