John Vandenberg has uploaded a new change for review. https://gerrit.wikimedia.org/r/190429
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, 19 insertions(+), 17 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/29/190429/1 diff --git a/pywikibot/families/anarchopedia_family.py b/pywikibot/families/anarchopedia_family.py index 789ae2c..40c16da 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,35 @@ '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', 'lav': 'lv', + 'lit': 'lt', + 'kor': 'ko', + 'nob': 'no', 'nor': 'no', - 'nsh': 'sh', + 'nno': 'no', '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, + # Non-compliant mappings + 'bos': 'hr', + 'nsh': 'hr', } @deprecated('APISite.version()') -- To view, visit https://gerrit.wikimedia.org/r/190429 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I75fef66dbce80f9e7e8ee7ae2761bf491603ef6b Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jay...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits