jenkins-bot has submitted this change and it was merged.
Change subject: Add undelete messages for undelete.py ......................................................................
Add undelete messages for undelete.py
Also fixes metadata blocks.
Bug: T181359 Change-Id: I09b378608aa70a5124dc5f266dd993e6db1c5e8e --- M delete.py M delete/en.json M delete/qqq.json A undelete.py A undelete/en.json A undelete/qqq.json 6 files changed, 46 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/delete.py b/delete.py index 6630321..8749c06 100644 --- a/delete.py +++ b/delete.py @@ -1,5 +1,8 @@ # -*- coding: utf-8 -*- msg = { + # Author: Lloffiwr + # Author: Shirayuki + # Author: Xqt 'en': { 'delete-from-category': u'Bot: Deleting all pages from category %(page)s', 'delete-from-file': u'Bot: Deleting a list of pages.', diff --git a/delete/en.json b/delete/en.json index c029dd1..1d04752 100644 --- a/delete/en.json +++ b/delete/en.json @@ -1,4 +1,11 @@ { + "@metadata": { + "authors": [ + "Lloffiwr", + "Shirayuki", + "Xqt" + ] + }, "delete-images": "Bot: Deleting all images on page %(page)s", "delete-referring-pages": "Bot: Deleting all pages referring from %(page)s", "delete-from-category": "Bot: Deleting all pages from category %(page)s", diff --git a/delete/qqq.json b/delete/qqq.json index 57d43ea..9001a18 100644 --- a/delete/qqq.json +++ b/delete/qqq.json @@ -1,6 +1,7 @@ { "@metadata": { "authors": [ + "Lloffiwr", "Shirayuki", "Xqt" ] diff --git a/undelete.py b/undelete.py new file mode 100644 index 0000000..d95bb81 --- /dev/null +++ b/undelete.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +msg = { + # Author: Unicodesnowman + 'en': { + 'undelete-from-file': u'Bot: Undeleting a list of pages.', + 'undelete-images': u'Bot: Undeleting all images on page %(page)s', + 'undelete-linked-pages': u'Bot: Undeleting all pages linked from %(page)s', + }, + # Author: Unicodesnowman + 'qqq': { + 'undelete-from-file': u'Edit summary when the bot undeletes a list of pages.', + 'undelete-images': u'Edit summary when the bot undeletes all images on a page.\n\nParameters:\n* %(page)s - page where linked images are deleted\nSee also:\n* {{msg-pywikibot|Protect-links}}', + 'undelete-linked-pages': u'Edit summary when the bot undeletes all pages linked on a page.\n\nParameters:\n* %(page)s - page name\nSee also:\n* {{msg-pywikibot|Protect-links}}', + }, +}; diff --git a/undelete/en.json b/undelete/en.json new file mode 100644 index 0000000..707ca4d --- /dev/null +++ b/undelete/en.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Unicodesnowman" + ] + }, + "undelete-from-file": "Bot: Undeleting a list of pages.", + "undelete-images": "Bot: Undeleting all images on page %(page)s", + "undelete-linked-pages": "Bot: Undeleting all pages linked from %(page)s" +} diff --git a/undelete/qqq.json b/undelete/qqq.json new file mode 100644 index 0000000..e2733a2 --- /dev/null +++ b/undelete/qqq.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Unicodesnowman" + ] + }, + "undelete-from-file": "Edit summary when the bot undeletes a list of pages.", + "undelete-images": "Edit summary when the bot undeletes all images on a page.\n\nParameters:\n* %(page)s - page where linked images are deleted\nSee also:\n* {{msg-pywikibot|Protect-links}}", + "undelete-linked-pages": "Edit summary when the bot undeletes all pages linked on a page.\n\nParameters:\n* %(page)s - page name\nSee also:\n* {{msg-pywikibot|Protect-links}}" +}
pywikibot-commits@lists.wikimedia.org