jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1200046?usp=email )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: I00ee0896951bb1a5e1e02e265eeb0e4330ec1720
---
M archivebot/pdc.json
M checkimages/sr.json
M redirect/pdc.json
3 files changed, 6 insertions(+), 2 deletions(-)
Approvals:
L10n-bot: Looks good to me, approved
jenkins-bot: Verified
diff --git a/archivebot/pdc.json b/archivebot/pdc.json
index 4dc1792..02d12bb 100644
--- a/archivebot/pdc.json
+++ b/archivebot/pdc.json
@@ -5,5 +5,7 @@
]
},
"archivebot-archive-full": "(ARCHIV FOL)",
- "archivebot-older-than": "{{PLURAL:%(count)d|elder}} ass %(duration)s"
+ "archivebot-archive-summary": "Waddefresser: Archivier %(count)d {{PLURAL:%(count)d|Gschwetz-Blechke|Gschwetz-Blechke}} vun [[%(from)s]]",
+ "archivebot-older-than": "{{PLURAL:%(count)d|elder}} ass %(duration)s",
+ "archivebot-page-summary": "Waddefresser: %(count)d {{PLURAL:%(count)d|Abschnitt|Abschnitte}} (%(why)s) no %(archives)s archivier"
}
diff --git a/checkimages/sr.json b/checkimages/sr.json
index ddb2f2f..a2a6610 100644
--- a/checkimages/sr.json
+++ b/checkimages/sr.json
@@ -3,6 +3,7 @@
"authors": [
"Aca",
"Acamicamacaraca",
+ "Aceydot",
"BadDog",
"Kizule",
"Milicevic01",
@@ -16,6 +17,7 @@
"checkimages-doubles-file-comment": "Бот: датотека већ постоји на Остави; може се обрисати.",
"checkimages-doubles-head": "Дупликат датотеке",
"checkimages-doubles-talk-comment": "Бот: обавештење о томе да датотека већ постоји на Остави.",
+ "checkimages-doubles-talk-text": "Хвала вам што сте отпремили %(upload)s. Међутим, ова датотека је копија: %(image)s. Бот је означио као дупликат датотеку која је најмање коришћена или најновија. Ако сматрате да је прикладније да оставите датотеку означену као да треба одмах обрисати, слободно обришите дупликате датотека и уклоните шаблон за брисање из оне која ће остати. Ово је аутоматска порука од %(bot)s.",
"checkimages-forced-mode": "('''форсирани режим''')",
"checkimages-has-duplicates": "има следеће дупликате%(force)s:",
"checkimages-log-comment": "Бот: ажурирање дневника.",
diff --git a/redirect/pdc.json b/redirect/pdc.json
index 37ec136..a0fb90b 100644
--- a/redirect/pdc.json
+++ b/redirect/pdc.json
@@ -5,6 +5,6 @@
"Xqt"
]
},
- "redirect-fix-double": "Doppelte Weiderleiding nooch %(to)s gennert",
+ "redirect-fix-double": "Doppelte Weiderleiding vun %(from)s nooch %(to)s gennert",
"redirect-remove-broken": "Kaputte Weiderleiding"
}
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1200046?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: I00ee0896951bb1a5e1e02e265eeb0e4330ec1720
Gerrit-Change-Number: 1200046
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: jenkins-bot
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1199754?usp=email )
Change subject: coverage: Exclude alllinks method from coverage
......................................................................
coverage: Exclude alllinks method from coverage
Change-Id: Ic34505437dc7dfb13eea690f1b9afdc5dd36503c
---
M pywikibot/site/_generators.py
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index 4da3dcc..dc4cf6e 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -1072,6 +1072,7 @@
inappropriate type such as bool, or an iterable with more
than one namespace
"""
+ # no cover: start
if unique and fromids:
raise Error('alllinks: unique and fromids cannot both be True.')
algen = self._generator(api.ListGenerator, type_arg='alllinks',
@@ -1103,6 +1104,7 @@
if fromids:
p._fromid = link['fromid'] # type: ignore[attr-defined]
yield p
+ # no cover: stop
def allcategories(
self,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1199754?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic34505437dc7dfb13eea690f1b9afdc5dd36503c
Gerrit-Change-Number: 1199754
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1193409?usp=email )
Change subject: misspelling.py: Add -page option for single misspelling
......................................................................
misspelling.py: Add -page option for single misspelling
Allow fixing links in pages that link to a specified misspelling
page using the -page argument.
Previously, the bot only handled categories or templates.
Bug: T151540
Change-Id: Ia83f08577ee49d5867689ae945b3280e4ad8f7f6
---
M scripts/misspelling.py
1 file changed, 13 insertions(+), 1 deletion(-)
Approvals:
Xqt: Verified; Looks good to me, approved
Matěj Suchánek: Looks good to me, but someone else must approve
diff --git a/scripts/misspelling.py b/scripts/misspelling.py
index e976620..212a169 100755
--- a/scripts/misspelling.py
+++ b/scripts/misspelling.py
@@ -62,11 +62,20 @@
# Optional: if there is a category, one can use the -start parameter
misspelling_categories = ('Q8644265', 'Q9195708')
- update_options = {'start': None}
+ update_options = {'start': None, 'page': None}
@property
def generator(self) -> Generator[pywikibot.Page]:
"""Generator to retrieve misspelling pages or misspelling redirects."""
+ # If a single page is specified, yield that page directly
+ if self.opt.page:
+ page = pywikibot.Page(self.site, self.opt.page)
+ if page.exists():
+ yield page
+ else:
+ pywikibot.error(f"Page '{self.opt.page}' does not exist.")
+ return
+
templates = self.misspelling_templates.get(self.site.sitename)
categories = [cat for cat in (self.site.page_from_repository(item)
for item in self.misspelling_categories)
@@ -173,6 +182,9 @@
'At which page do you want to start?')
elif opt == 'main':
options[opt] = True
+ elif opt == 'page':
+ options[opt] = value or pywikibot.input(
+ 'Which page do you want to process?')
bot = MisspellingRobot(**options)
bot.run()
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1193409?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ia83f08577ee49d5867689ae945b3280e4ad8f7f6
Gerrit-Change-Number: 1193409
Gerrit-PatchSet: 4
Gerrit-Owner: Tejashxv <tejashyadavcr7(a)gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: Kavaljeet Singh <kavaljeetsingh.dev(a)gmail.com>