jenkins-bot has submitted this change and it was merged.
Change subject: update; changed docu in order to have link pointing to current repos
......................................................................
update; changed docu in order to have link pointing to current repos
Change-Id: I4fec6a2ca3f2eeb57545052f26a508eb163a6457
---
M scripts/script_wui.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
DrTrigon: Verified; Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/script_wui.py b/scripts/script_wui.py
index 9f60317..01ccecc 100755
--- a/scripts/script_wui.py
+++ b/scripts/script_wui.py
@@ -6,7 +6,7 @@
This script needs external libraries (see imports and comments there)
in order to run properly. Most of them can be checked-out at:
- http://svn.toolserver.org/svnroot/drtrigon/
+ https://gerrit.wikimedia.org/r/#/admin/projects/?filter=pywikibot
(some code might get compiled on-the-fly, so a GNU compiler along
with library header files is needed too)
--
To view, visit https://gerrit.wikimedia.org/r/113771
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4fec6a2ca3f2eeb57545052f26a508eb163a6457
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: update; changed docu in order to have link pointing to current repos
......................................................................
update; changed docu in order to have link pointing to current repos
Change-Id: Id9e5fb7ed6babbd7749e4d93db946ce1b9889ca8
---
M catimages.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
DrTrigon: Verified; Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/catimages.py b/catimages.py
index a488011..9381947 100644
--- a/catimages.py
+++ b/catimages.py
@@ -9,7 +9,7 @@
This script runs on commons only. It needs also external libraries
(see imports and comments there) and additional configuration/data
files in order to run properly. Most of them can be checked-out at:
- http://svn.toolserver.org/svnroot/drtrigon/
+ https://gerrit.wikimedia.org/r/#/admin/projects/?filter=pywikibot
(some code might get compiled on-the-fly, so a GNU compiler along
with library header files is needed too)
--
To view, visit https://gerrit.wikimedia.org/r/113770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id9e5fb7ed6babbd7749e4d93db946ce1b9889ca8
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] compat -imagelinks is -imageused in core
......................................................................
[bugfix] compat -imagelinks is -imageused in core
- reorder summary input so -help message will be shown if
no generator is given.
- -file option does not expect pageName
Change-Id: Id5eb5dd6c42d024bc9758475d82641fcb396977f
---
M scripts/delete.py
1 file changed, 21 insertions(+), 20 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/delete.py b/scripts/delete.py
index 60c9ed8..40be384 100644
--- a/scripts/delete.py
+++ b/scripts/delete.py
@@ -94,8 +94,8 @@
summary = arg[len('-summary:'):]
elif arg.startswith('-images'):
pywikibot.output('\n\03{lightred}-image option is deprecated. '
- 'Please use -imagelinks instead.\03{default}\n')
- localargs.append('-imagelinks' + arg[7:])
+ 'Please use -imageused instead.\03{default}\n')
+ localargs.append('-imageused' + arg[7:])
elif arg.startswith('-undelete'):
undelete = True
else:
@@ -104,28 +104,29 @@
if found:
pageName = arg[found:]
- if pageName and not summary:
- if arg.startswith('-category'):
- summary = i18n.twtranslate(mysite, 'delete-from-category',
- {'page': pageName})
- elif arg.startswith('-links'):
- summary = i18n.twtranslate(mysite, 'delete-linked-pages',
- {'page': pageName})
- elif arg.startswith('-ref'):
- summary = i18n.twtranslate(mysite, 'delete-referring-pages',
- {'page': pageName})
- elif arg.startswith('-imagelinks'):
- summary = i18n.twtranslate(mysite, 'delete-images',
- {'page': pageName})
+ if not summary:
+ if pageName:
+ if arg.startswith('-cat') or arg.startswith('-subcats'):
+ summary = i18n.twtranslate(mysite, 'delete-from-category',
+ {'page': pageName})
+ elif arg.startswith('-links'):
+ summary = i18n.twtranslate(mysite, 'delete-linked-pages',
+ {'page': pageName})
+ elif arg.startswith('-ref'):
+ summary = i18n.twtranslate(mysite, 'delete-referring-pages',
+ {'page': pageName})
+ elif arg.startswith('-imageused'):
+ summary = i18n.twtranslate(mysite, 'delete-images',
+ {'page': pageName})
elif arg.startswith('-file'):
summary = i18n.twtranslate(mysite, 'delete-from-file')
- if summary is None:
- summary = pywikibot.input(u'Enter a reason for the %sdeletion:'
- % ['', 'un'][undelete])
generator = genFactory.getCombinedGenerator()
+ # We are just deleting pages, so we have no need of using a preloading
+ # page generator to actually get the text of those pages.
if generator:
- # We are just deleting pages, so we have no need of using a preloading
- # page generator to actually get the text of those pages.
+ if summary is None:
+ summary = pywikibot.input(u'Enter a reason for the %sdeletion:'
+ % ['', 'un'][undelete])
bot = DeletionRobot(generator, summary, always, undelete)
bot.run()
else:
--
To view, visit https://gerrit.wikimedia.org/r/113123
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id5eb5dd6c42d024bc9758475d82641fcb396977f
Gerrit-PatchSet: 7
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Nemo bis <federicoleva(a)tiscali.it>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: use i18n parameter for replacement of category title
......................................................................
use i18n parameter for replacement of category title
uses new i18n file comitted with
https://gerrit.wikimedia.org/r/#/c/113374/
Change-Id: I298a7a3ae8037348f3888a7f06df893278bcfc71
---
M scripts/makecat.py
1 file changed, 4 insertions(+), 5 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/makecat.py b/scripts/makecat.py
index 509f8b9..4f34b6f 100644
--- a/scripts/makecat.py
+++ b/scripts/makecat.py
@@ -32,7 +32,7 @@
"""
# (C) Andre Engels, 2004
-# (C) Pywikipedia bot team 2005-2010
+# (C) Pywikibot team 2005-2014
#
# Distributed under the terms of the MIT license.
#
@@ -51,8 +51,7 @@
def isdate(s):
- """returns true iff s is a date or year
- """
+ """returns true if s is a date or year """
dict, val = date.getAutoFormat(pywikibot.getSite().language(), s)
return dict is not None
@@ -126,7 +125,7 @@
ctoshow = 500
pywikibot.output(u'')
pywikibot.output(u"==%s==" % pl.title())
- while 1:
+ while True:
answer = raw_input("y(es)/n(o)/i(gnore)/(o)ther options? ")
if answer == 'y':
include(pl)
@@ -222,7 +221,7 @@
workingcatname = ' '.join(workingcatname)
mysite = pywikibot.getSite()
workingcatname = unicode(workingcatname, 'utf-8')
- pywikibot.setAction(i18n.twtranslate(mysite, 'makecat-create') + u' ' + workingcatname)
+ pywikibot.setAction(i18n.twtranslate(mysite, 'makecat-create', {'cat': workingcatname)})
workingcat = pywikibot.Category(mysite,
u'%s:%s'
% (mysite.category_namespace(),
--
To view, visit https://gerrit.wikimedia.org/r/113376
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I298a7a3ae8037348f3888a7f06df893278bcfc71
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>
Strainu has submitted this change and it was merged.
Change subject: Add category title as a link inside the message to be more flexible
......................................................................
Add category title as a link inside the message to be more flexible
- "en" translation on top
- add doc message
- add "de" translation
Change-Id: Ia2e3397bc169653c2e0c97387dd49b6e36855631
---
M makecat.py
1 file changed, 21 insertions(+), 15 deletions(-)
Approvals:
Strainu: Looks good to me, approved
jenkins-bot: Verified
diff --git a/makecat.py b/makecat.py
index e4aa37b..59904ff 100644
--- a/makecat.py
+++ b/makecat.py
@@ -1,42 +1,48 @@
# -*- coding: utf-8 -*-
msg = {
- 'ar': {
- 'makecat-create': u'بوت: إنشاء أو تحديث التصنيف:',
- },
'en': {
- 'makecat-create': u'Robot: Creation or update of category:',
+ 'makecat-create': u'Robot: Creation or update of category [[:Category:%(cat)s|]]',
+ },
+ 'qqq': {
+ 'makecat-create': u'{{doc-important|Do not change ":Category:%(cat)s" so this message will work in any language.}}\nEdit summary when the bot creates or updates a category.\n* %(cat)s - category name',
+ },
+ 'ar': {
+ 'makecat-create': u'بوت: إنشاء أو تحديث التصنيف [[:Category:%(cat)s|]]',
+ },
+ 'de': {
+ 'makecat-create': u'Bot: Kategorie [[:Category:%(cat)s|]] wurde neu angelegt oder aktualisiert',
},
'es': {
- 'makecat-create': u'Bot: Creación o actualiza de la categoría:',
+ 'makecat-create': u'Bot: Creación o actualiza de la categoría [[:Category:%(cat)s|]]',
},
'fa': {
- 'makecat-create': u'ربات: ایجاد یا تصحیح رده:',
+ 'makecat-create': u'ربات: ایجاد یا تصحیح رده [[:Category:%(cat)s|]]',
},
'fr': {
- 'makecat-create': u'Robot : Création ou mise à jour de categorie:',
+ 'makecat-create': u'Robot: Création ou mise à jour de categorie [[:Category:%(cat)s|]]',
},
'he': {
- 'makecat-create': u'בוט: יצירה או עדכון של קטגוריה:',
+ 'makecat-create': u'בוט: יצירה או עדכון של קטגוריה [[:Category:%(cat)s|]]',
},
'ia': {
- 'makecat-create': u'Bot: Creation o actualisation de categoria:',
+ 'makecat-create': u'Bot: Creation o actualisation de categoria [[:Category:%(cat)s|]]',
},
'it': {
- 'makecat-create': u'Bot: La creazione o laggiornamento di categoria:',
+ 'makecat-create': u'Bot: La creazione o laggiornamento di categoria [[:Category:%(cat)s|]]',
},
'nl': {
- 'makecat-create': u'Robot: Aanmaak of uitbreiding van categorie:',
+ 'makecat-create': u'Robot: Aanmaak of uitbreiding van categorie [[:Category:%(cat)s|]]',
},
'nn': {
- 'makecat-create': u'robot: oppretting eller oppdatering av kategori:',
+ 'makecat-create': u'robot: oppretting eller oppdatering av kategori [[:Category:%(cat)s|]]',
},
'no': {
- 'makecat-create': u'Robot: opprettelse eller oppdatering av kategori:',
+ 'makecat-create': u'Robot: opprettelse eller oppdatering av kategori [[:Category:%(cat)s|]]',
},
'pl': {
- 'makecat-create': u'Robot: Stworzenie lub aktualizacja kategorii:',
+ 'makecat-create': u'Robot: Stworzenie lub aktualizacja kategorii [[:Category:%(cat)s|]]',
},
'pt': {
- 'makecat-create': u'Robô: Criando ou atualizando categoria:',
+ 'makecat-create': u'Robô: Criando ou atualizando categoria [[:Category:%(cat)s|]]',
},
};
--
To view, visit https://gerrit.wikimedia.org/r/113374
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia2e3397bc169653c2e0c97387dd49b6e36855631
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Siebrand <siebrand(a)wikimedia.org>
Gerrit-Reviewer: Strainu <wiki(a)strainu.ro>
Gerrit-Reviewer: jenkins-bot <>