jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/480040 )

Change subject: Add localisation i.e. templates of Urdu language for Urdu wikis.
......................................................................

Add localisation i.e. templates of Urdu language for Urdu wikis.

Change-Id: I0645074da822691cf3ad4e98aa617fcdfdd13a0e
---
M scripts/blockpageschecker.py
1 file changed, 5 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py
index e72b70d..72bf4cd 100755
--- a/scripts/blockpageschecker.py
+++ b/scripts/blockpageschecker.py
@@ -87,6 +87,7 @@
     'ja': [r'(?<!\<nowiki\>)\{\{(?:[Tt]emplate:|)半保護'
            r'(?:[Ss]|)(?:\|.+|)\}\}(?!\<\/nowiki\>)\s*'],
     'sr': [r'\{\{(?:[Tt]emplate:|[Зз]акључано-анон)\}\}'],
+    'ur': [r'\{\{(?:[Tt]emplate:|سانچہ:|)(نیم\sمحفوظ)\}\}']
 }
 # Regex to get the total-protection template
 templateTotalProtection = {
@@ -102,7 +103,8 @@
            r'[Qq]uesta pagina'],
     'ja': [r'(?<!\<nowiki\>)\{\{(?:[Tt]emplate:|)保護(?:性急|)'
            r'(?:[Ss]|)(?:\|.+|)\}\}(?!\<\/nowiki\>)\s*'],
-    'sr': [r'\{\{(?:[Tt]emplate:|[Зз]акључано)\}\}']
+    'sr': [r'\{\{(?:[Tt]emplate:|[Зз]акључано)\}\}'],
+    'ur': [r'\{\{(?:[Tt]emplate:|سانچہ:|)(محفوظ)\}\}']
 }

 # Regex to get the semi-protection move template
@@ -137,6 +139,7 @@
            '{{Protetta}}'],
     'ja': ['{{半保護}}', '{{保護}}', '{{移動半保護}}', '{{移動保護}}', None],
     'sr': ['{{Закључано-анон}}', '{{Закључано}}', None, None, None],
+    'ur': ['{{نیم محفوظ}}', '{{محفوظ}}', None, None, None],
 }

 # Category where the bot will check
@@ -165,7 +168,7 @@
 }

 # Check list to block the users that haven't set their preferences
-project_inserted = ['cs', 'fr', 'it', 'ja', 'pt', 'sr', 'zh']
+project_inserted = ['cs', 'fr', 'it', 'ja', 'pt', 'sr', 'ur', 'zh']

 # END PREFERENCES


--
To view, visit https://gerrit.wikimedia.org/r/480040
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I0645074da822691cf3ad4e98aa617fcdfdd13a0e
Gerrit-Change-Number: 480040
Gerrit-PatchSet: 3
Gerrit-Owner: محمد شعیب <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-Reviewer: محمد شعیب <[email protected]>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to