Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/281653

Change subject: [IMPR] Inform operator when a message is not localized
......................................................................

[IMPR] Inform operator when a message is not localized

Change-Id: I2206fd75ff325271e194b66d5036d567a566a907
---
M scripts/checkimages.py
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/53/281653/1

diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 7644cc5..d349784 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1019,8 +1019,12 @@
                                                  text_for_the_report)
                     # if you want only one edit, the edit found should be more
                     # than 0 -> num - 1
-                    if already_reported_in_past > duplicates_rollback - 1 or \
-                            not dupTalkText:
+                    if already_reported_in_past > duplicates_rollback - 1:
+                        only_report = True
+                    elif not dupTalkText:
+                        pywikibot.output('No localized message given for '
+                                         "'duplicates_user_talk_text'. "
+                                         'Only reporting.')
                         only_report = True
                     else:
                         self.report(text_for_the_report, 
images_to_tag_list[-1],

-- 
To view, visit https://gerrit.wikimedia.org/r/281653
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2206fd75ff325271e194b66d5036d567a566a907
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to