jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/358241 )
Change subject: blockpageschecker: Add serbian translation
......................................................................
blockpageschecker: Add serbian translation
Bug: T167599
Change-Id: Idaf721d31d65a8ddf8b905c4faa3ef420a848da5
---
M scripts/blockpageschecker.py
1 file changed, 6 insertions(+), 2 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
Zoranzoki21: Looks good to me, but someone else must approve
diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py
index 91af606..2756042 100755
--- a/scripts/blockpageschecker.py
+++ b/scripts/blockpageschecker.py
@@ -86,6 +86,7 @@
r'\{\{(?:[Tt]emplate:|)[Aa]bp(?:|[ _]scad\|(?:.*?))\}\}'],
'ja': [r'(?<!\<nowiki\>)\{\{(?:[Tt]emplate:|)半保護'
r'(?:[Ss]|)(?:\|.+|)\}\}(?!\<\/nowiki\>)\s*'],
+ 'sr': [r'\{\{(?:[Tt]emplate:|[Зз]акључано-анон)\}\}'],
}
# Regex to get the total-protection template
templateTotalProtection = {
@@ -99,6 +100,7 @@
r'<div class="toccolours[ _]itwiki[ _]template[
_]avviso">\s*?[Qq]uesta pagina'],
'ja': [r'(?<!\<nowiki\>)\{\{(?:[Tt]emplate:|)保護(?:性急|)'
r'(?:[Ss]|)(?:\|.+|)\}\}(?!\<\/nowiki\>)\s*'],
+ 'sr': [r'\{\{(?:[Tt]emplate:|[Зз]акључано)\}\}']
}
# Regex to get the semi-protection move template
@@ -130,11 +132,11 @@
'it': ['{{Avvisobloccoparziale}}', '{{Avvisoblocco}}', None,
None,
'{{Protetta}}'],
'ja': [u'{{半保護}}', u'{{保護}}', u'{{移動半保護}}',
u'{{移動保護}}', None],
+ 'sr': ['{{Закључано-анон}}', '{{Закључано}}', None, None,
None],
}
# Category where the bot will check
categoryToCheck = {
- 'en': [u'Category:Wikipedia protected pages'],
'ar': [u'تصنيف:محتويات محمية'],
'cs': ['Kategorie:Wikipedie:Zamčené stránky',
'Kategorie:Wikipedie:Polozamčené stránky',
@@ -142,6 +144,7 @@
'Kategorie:Wikipedie:Dlouhodobě polozamčené stránky'],
'fr': [u'Category:Page semi-protégée', u'Category:Page
protégée',
u'Catégorie:Article protégé'],
+ 'en': [u'Category:Wikipedia protected pages'],
'he': [u'קטגוריה:ויקיפדיה: דפים מוגנים',
u'קטגוריה:ויקיפדיה: דפים מוגנים חלקית'],
'it': [u'Categoria:Pagine protette - scadute',
@@ -150,12 +153,13 @@
u'Category:移動保護中の記事'],
'pt': [u'Category:!Páginas protegidas',
u'Category:!Páginas semiprotegidas'],
+ 'sr': [u'Category:Странице закључане за анонимне кориснике',
u'Category:Закључане странице'],
'zh': [u'Category:被保护的页面', u'Category:被保護的模板',
u'Category:暂时不能移动的页面', u'Category:被半保护的页面'],
}
# Check list to block the users that haven't set their preferences
-project_inserted = ['cs', 'fr', 'it', 'ja', 'pt',
'zh']
+project_inserted = ['cs', 'fr', 'it', 'ja', 'pt',
'sr', 'zh']
# END PREFERENCES
--
To view, visit
https://gerrit.wikimedia.org/r/358241
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idaf721d31d65a8ddf8b905c4faa3ef420a848da5
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>