jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/721954 )
Change subject: Updates for Arabic (ar) ......................................................................
Updates for Arabic (ar)
Change-Id: Id4f110922ada41cf6ea7f54ed508cd2e203f8b05 --- M scripts/blockpageschecker.py 1 file changed, 5 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py index a710424..4516561 100755 --- a/scripts/blockpageschecker.py +++ b/scripts/blockpageschecker.py @@ -72,6 +72,7 @@ # PREFERENCES
templateSemiProtection = { + 'ar': [r'{{(?:[Tt]emplate:|قالب:|)(حماية\sجزئية)}}'], 'cs': [r'{{(?:[Tt]emplate:|[Šš]ablona:|)([Dd]louhodobě[ _]p|[Pp])' r'olozamčeno(|[^}]*)}}\s*'], 'fr': [r'{{(?:[Tt]emplate:|[Mm]odèle:|)[Ss]emi[- ]?' @@ -86,6 +87,7 @@ } # Regex to get the total-protection template templateTotalProtection = { + 'ar': [r'{{(?:[Tt]emplate:|قالب:|)(حماية\sكاملة)}}'], 'cs': [r'{{(?:[Tt]emplate:|[Šš]ablona:|)([Dd]louhodobě[ _]z|[Zz])' r'amčeno(|[^}]*)}}\s*'], 'fr': [r'{{(?:[Tt]emplate:|[Mm]odèle:|)[Pp]rotection(|[^}]*)}}', @@ -122,12 +124,14 @@ # You may use only one template or an unique template and some other "old" # template that the script should still check (as on it.wikipedia) templateUnique = { + 'ar': [r'{{(?:[Tt]emplate:|قالب:|)(محمية)}}'], 'it': [r'{{(?:[Tt]emplate:|)[Pp]rotetta}}'], }
# Array: 0 => Semi-block, 1 => Total Block, 2 => Semi-Move, 3 => Total-Move, # 4 => template-unique templateNoRegex = { + 'ar': ['{{حماية جزئية}}', '{{حماية كاملة}}', None, None, '{{محمية}}'], 'cs': ['{{Polozamčeno}}', '{{Zamčeno}}', None, None, None], 'fr': ['{{Semi-protection}}', '{{Protection}}', None, None, None], 'it': ['{{Avvisobloccoparziale}}', '{{Avvisoblocco}}', None, None, @@ -163,7 +167,7 @@ }
# Check list to block the users that haven't set their preferences -project_inserted = ['cs', 'fr', 'it', 'ja', 'pt', 'sr', 'ur', 'zh'] +project_inserted = ['ar', 'cs', 'fr', 'it', 'ja', 'pt', 'sr', 'ur', 'zh']
# END PREFERENCES
pywikibot-commits@lists.wikimedia.org