Matěj Suchánek has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/338375 )
Change subject: Localize blockpageschecker.py to Czech
......................................................................
Localize blockpageschecker.py to Czech
Change-Id: I3d42ed69fd3250f3b1bd3f47b719e430735bccbd
---
M scripts/blockpageschecker.py
1 file changed, 15 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/75/338375/2
diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py
index 0e9bd35..69c4cb8 100755
--- a/scripts/blockpageschecker.py
+++ b/scripts/blockpageschecker.py
@@ -79,22 +79,24 @@
# PREFERENCES
templateSemiProtection = {
+ 'cs': [r'\{\{(?:[Tt]emplate:|[Šš]ablona:|)([Dd]louhodobě[ _]p|[Pp])'
+ r'olozamčeno(|[^\}]*)\}\}(?:\r\n|)*'],
+ 'fr': [r'\{\{(?:[Tt]emplate:|[Mm]odèle:|)[Ss]emi[-
]?protection(|[^\}]*)\}\}'],
'it': [r'\{\{(?:[Tt]emplate:|)[Aa]vvisobloccoparziale(?:|[
_]scad\|.*?|\|.*?)\}\}',
r'\{\{(?:[Tt]emplate:|)[Aa]bp(?:|[ _]scad\|(?:.*?))\}\}'],
- 'fr': [r'\{\{(?:[Tt]emplate:|' + u'[Mm]odèle:' +
- r'|)[Ss]emi[- ]?protection(|[^\}]*)\}\}'],
'ja': [r'(?<!\<nowiki\>)\{\{(?:[Tt]emplate:|)' +
u'半保護' + r'(?:[Ss]|)(?:\|.+|)\}\}(?!\<\/nowiki\>)\s*(?:\r\n|)*'],
}
# Regex to get the total-protection template
templateTotalProtection = {
+ 'cs': [r'\{\{(?:[Tt]emplate:|[Šš]ablona:|)([Dd]louhodobě[ _]z|[Zz])'
+ r'amčeno(|[^\}]*)\}\}(?:\r\n|)*'],
+ 'fr': [r'\{\{(?:[Tt]emplate:|[Mm]odèle:|)[Pp]rotection(|[^\}]*)\}\}',
+ r'\{\{(?:[Tt]emplate:|[Mm]odèle:|)(?:[Pp]age|[Aa]rchive|'
+ r'[Mm]odèle) protégée?(|[^\}]*)\}\}'],
'it': [r'\{\{(?:[Tt]emplate:|)[Aa]vvisoblocco(?:|[
_]scad\|(?:.*?)|minaccia|cancellata)\}\}',
r'\{\{(?:[Tt]emplate:|)(?:[Cc][Tt]|[Cc]anc fatte|[Cc][Ee])\}\}',
r'<div class="toccolours[ _]itwiki[ _]template[
_]avviso">(?:\s|\n)*?[Qq]uesta pagina'],
- 'fr': [r'\{\{(?:[Tt]emplate:|' + u'[Mm]odèle:' +
- r'|)[Pp]rotection(|[^\}]*)\}\}',
- r'\{\{(?:[Tt]emplate:|' + u'[Mm]odèle:' +
r'|)(?:[Pp]age|[Aa]rchive|' +
- u'[Mm]odèle) protégée' + r'?(|[^\}]*)\}\}'],
'ja': [r'(?<!\<nowiki\>)\{\{(?:[Tt]emplate:|)' + u'保護(?:性急|)' +
r'(?:[Ss]|)(?:\|.+|)\}\}(?!\<\/nowiki\>)\s*(?:\r\n|)*'],
}
@@ -123,9 +125,10 @@
# Array: 0 => Semi-block, 1 => Total Block, 2 => Semi-Move, 3 => Total-Move,
# 4 => template-unique
templateNoRegex = {
+ 'cs': ['{{Polozamčeno}}', '{{Zamčeno}}', None, None, None],
+ 'fr': ['{{Semi-protection}}', '{{Protection}}', None, None, None],
'it': ['{{Avvisobloccoparziale}}', '{{Avvisoblocco}}', None, None,
'{{Protetta}}'],
- 'fr': ['{{Semi-protection}}', '{{Protection}}', None, None, None],
'ja': [u'{{半保護}}', u'{{保護}}', u'{{移動半保護}}', u'{{移動保護}}', None],
}
@@ -133,6 +136,10 @@
categoryToCheck = {
'en': [u'Category:Wikipedia protected pages'],
'ar': [u'تصنيف:محتويات محمية'],
+ 'cs': ['Kategorie:Wikipedie:Zamčené stránky',
+ 'Kategorie:Wikipedie:Polozamčené stránky',
+ 'Kategorie:Wikipedie:Dlouhodobě zamčené stránky',
+ '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é'],
'he': [u'קטגוריה:ויקיפדיה: דפים מוגנים',
@@ -148,7 +155,7 @@
}
# Check list to block the users that haven't set their preferences
-project_inserted = ['fr', 'it', 'ja', 'pt', 'zh']
+project_inserted = ['cs', 'fr', 'it', 'ja', 'pt', 'zh']
# END PREFERENCES
--
To view, visit https://gerrit.wikimedia.org/r/338375
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d42ed69fd3250f3b1bd3f47b719e430735bccbd
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits