jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/634000 )

Change subject: Updates for ar, arz and minor changes
......................................................................

Updates for ar, arz and minor changes

* Update MonthName, Cat_DeathsAD, makeMonthNamedList formats for arz
* Update CurrEvents format for ar, arz
* arz.wiktionary does not exist. So, let's use a Wiktionary version that exists
* typo in Spanish (Articulo -> Artículo)
* english -> English

Change-Id: I2abaf7bac24028243f74e67ceab52c80a7249a8f
---
M pywikibot/cosmetic_changes.py
M pywikibot/date.py
M pywikibot/textlib.py
3 files changed, 13 insertions(+), 5 deletions(-)

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



diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 2bd8d34..b5406d6 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -377,7 +377,7 @@

     def translateAndCapitalizeNamespaces(self, text):
         """Use localized namespace names."""
-        # arz uses english stylish codes
+        # arz uses English stylish codes
         if self.site.sitename == 'wikipedia:arz':
             return text
         # wiki links aren't parsed here.
@@ -438,7 +438,7 @@
     def translateMagicWords(self, text):
         """Use localized magic words."""
         # not wanted at ru
-        # arz uses english stylish codes
+        # arz uses English stylish codes
         # no need to run on English wikis
         if self.site.code in ['arz', 'en', 'ru']:
             return text
diff --git a/pywikibot/date.py b/pywikibot/date.py
index 8b8d908..848a08e 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -527,6 +527,9 @@
         'ar': lambda v: slh(v, ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو',
                                 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر',
                                 'أكتوبر', 'نوفمبر', 'ديسمبر']),
+        'arz': lambda v: slh(v, ['يناير', 'فبراير', 'مارس', 'ابريل', 'مايو',
+                                 'يونيه', 'يوليه', 'اغسطس', 'سبتمبر',
+                                 'اكتوبر', 'نوفمبر', 'ديسمبر']),
         'ast': lambda v: slh(v, ['xineru', 'febreru', 'marzu', 'abril',
                                  'mayu', 'xunu', 'xunetu', 'agostu',
                                  'setiembre', 'ochobre', 'payares',
@@ -1648,6 +1651,7 @@
         'an': lambda v: dh_yearAD(v, '%d (muertes)'),
         'ay': lambda v: dh_yearAD(v, 'Jiwäwi %d'),
         'ar': lambda v: dh_yearAD(v, 'وفيات %d'),
+        'arz': lambda v: dh_yearAD(v, 'وفيات %d'),
         'ba': lambda v: dh_yearAD(v, '%d йылда үлгәндәр'),
         'bar': lambda v: dh_yearAD(v, 'Gestorben %d'),
         'be': lambda v: dh_yearAD(v, 'Памерлі ў %d годзе'),
@@ -1743,7 +1747,8 @@
     'CurrEvents': {
         'an': lambda v: dh_singVal(v, 'Autualidá'),
         'ang': lambda v: dh_singVal(v, 'Efenealde belimpas'),
-        'ar': lambda v: dh_singVal(v, 'الأحداث الجارية'),
+        'ar': lambda v: dh_singVal(v, 'أحداث جارية'),
+        'arz': lambda v: dh_singVal(v, 'احداث دلوقتى'),
         'be': lambda v: dh_singVal(v, 'Бягучыя падзеі'),
         'bg': lambda v: dh_singVal(v, 'Текущи събития'),
         'ca': lambda v: dh_singVal(v, 'Viquipèdia:Actualitat'),
@@ -1870,6 +1875,9 @@
 addFmt1('ar', False, ['%d يناير', '%d فبراير', '%d مارس', '%d أبريل',
                       '%d مايو', '%d يونيو', '%d يوليو', '%d أغسطس',
                       '%d سبتمبر', '%d أكتوبر', '%d نوفمبر', '%d ديسمبر'])
+addFmt1('arz', False, ['%d يناير', '%d فبراير', '%d مارس', '%d ابريل',
+                       '%d مايو', '%d يونيه', '%d يوليه', '%d اغسطس',
+                       '%d سبتمبر', '%d اكتوبر', '%d نوفمبر', '%d ديسمبر'])
 addFmt1('ast', False, ['%d de xineru', '%d de febreru', '%d de marzu',
                        "%d d'abril", '%d de mayu', '%d de xunu',
                        '%d de xunetu', "%d d'agost", '%d de setiembre',
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 9af5ee5..7d6ea80 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -913,7 +913,7 @@
 #        1 - inter-language links inside the own family.
 #            They go to a corresponding page in another language in the same
 #            family, such as from 'en.wikipedia' to 'pt.wikipedia', or from
-#            'es.wiktionary' to 'arz.wiktionary'.
+#            'es.wiktionary' to 'ar.wiktionary'.
 #            Families with this kind have several language-specific sites.
 #            They have their interwiki_forward attribute set to None
 #        2 - language links forwarding to another family.
@@ -924,7 +924,7 @@
 #            inter-language links is kept in their interwiki_forward attribute.
 #        These functions only deal with links of these two kinds only. They
 #        do not find or change links of other kinds, nor any that are formatted
-#        as in-line interwiki links (e.g., "[[:es:Articulo]]".
+#        as in-line interwiki links (e.g., "[[:es:Artículo]]".

 @deprecate_arg('pageLink', None)
 def getLanguageLinks(text: str, insite=None, template_subpage=False) -> dict:

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/634000
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2abaf7bac24028243f74e67ceab52c80a7249a8f
Gerrit-Change-Number: 634000
Gerrit-PatchSet: 4
Gerrit-Owner: Meno25 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to