jenkins-bot has submitted this change and it was merged.
Change subject: Fix anarchopedia family file ......................................................................
Fix anarchopedia family file
Anarchopedia wishes to use two letter codes in interwiki links, and three letter codes should be replaced when found.
To acheive this, three letter codes need to map to two letter codes, and the language subdomains need to use those two letter codes.
- Add Esperanto project which already existed in obsolete mapping - Map all ISO 639-2 Norwegian language codes to 'no' - Map Bosnian language and Serbian language to 'hr', but mark them as non-compliant with ISO 639-2->ISO 639-1 mappings
Bug: T72444 Change-Id: I75fef66dbce80f9e7e8ee7ae2761bf491603ef6b --- M pywikibot/families/anarchopedia_family.py 1 file changed, 22 insertions(+), 17 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/families/anarchopedia_family.py b/pywikibot/families/anarchopedia_family.py index 789ae2c..08ba6f3 100644 --- a/pywikibot/families/anarchopedia_family.py +++ b/pywikibot/families/anarchopedia_family.py @@ -18,10 +18,10 @@ self.name = 'anarchopedia'
self.languages_by_size = [ - 'ar', 'en', 'ger', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', - 'es', 'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lit', 'no', 'hrv', - 'pl', 'pt', 'ro', 'ru', 'sr', 'sq', 'da', 'sv', 'tr', 'zh', 'gre', - 'chi', + 'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', + 'es', 'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr', + 'pl', 'pt', 'ro', 'ru', 'sr', 'sq', 'da', 'sv', 'tr', 'zh', + 'eo', ] for l in self.languages_by_size: self.langs[l] = '%s.anarchopedia.org' % l @@ -29,9 +29,9 @@ self.nocapitalize = list(self.langs.keys())
self.obsolete = { + # ISO 639-2 -> ISO 639-1 mappings 'ara': 'ar', - 'bos': 'bs', - 'zho': 'zh', + 'chi': 'zh', 'dan': 'da', 'deu': 'de', 'dut': 'nl', @@ -39,33 +39,38 @@ 'eng': 'en', 'epo': 'eo', 'fas': 'fa', - 'fra': 'fr', 'fin': 'fi', + 'fra': 'fr', + 'ger': 'de', + 'gre': 'el', 'heb': 'he', + 'hye': 'hy', 'ind': 'id', 'ita': 'it', 'jpn': 'ja', - 'lit': 'lt', + 'kor': 'ko', 'lav': 'lv', + 'lit': 'lt', + 'nno': 'no', + 'nob': 'no', 'nor': 'no', - 'nsh': 'sh', 'pol': 'pl', 'por': 'pt', 'rum': 'ro', 'rus': 'ru', 'spa': 'es', 'srp': 'sr', - 'srp': 'hr', - 'swe': 'sv', - 'kor': 'ko', 'sqi': 'sq', - 'hye': 'hy', + 'swe': 'sv', 'tur': 'tr', + 'zho': 'zh',
- 'ell': 'gre', - 'srp': 'hrv', - 'nno': None, - 'nob': None, + # ISO 639-1 -> ISO 639-1 mappings + 'bs': 'hr', + + # Non-compliant mappings + 'bos': 'hr', + 'nsh': 'hr', }
@deprecated('APISite.version()')
pywikibot-commits@lists.wikimedia.org