Zhuyifei1999 has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/326923 )
Change subject: site.py: Adding new warnings 'nochange' and 'duplicateversions' ...................................................................... site.py: Adding new warnings 'nochange' and 'duplicateversions' It appears only when the uploaded file is duplicate with the current version or old versions of the file under the same filename. The messages are from MediaWiki i18n/en.json Bug: T153060 Change-Id: I6008bf855d4cbddabcdbd30d9cc9cafd7e87f7c5 --- M pywikibot/site.py 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/23/326923/1 diff --git a/pywikibot/site.py b/pywikibot/site.py index 5db67aa..92245fd 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -5930,6 +5930,12 @@ '"%(msg)s".', 'bad-prefix': 'Target filename has a bad prefix %(msg)s.', 'page-exists': 'Target filename exists but with a different file %(msg)s.', + + # API-returned message string will be timestamps, not much use here + 'nochange': 'The upload is an exact duplicate of the current version of ' + 'this file.', + 'duplicateversions': 'The upload is an exact duplicate of older ' + 'version(s) of this file.', } # An offset != 0 doesn't make sense without a file key -- To view, visit https://gerrit.wikimedia.org/r/326923 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6008bf855d4cbddabcdbd30d9cc9cafd7e87f7c5 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Zhuyifei1999 <zhuyifei1...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits