Skip to content

Commit

Permalink
L10n: update cross_allowed lists
Browse files Browse the repository at this point in the history
Change-Id: Ic07b720d05be339f75af842320ddd3d1a24d67ad
  • Loading branch information
xqt committed Jan 18, 2025
1 parent d43ece3 commit f7ebccd
Showing 8 changed files with 70 additions and 60 deletions.
10 changes: 7 additions & 3 deletions pywikibot/families/wikibooks_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikibooks."""
#
# (C) Pywikibot team, 2005-2024
# (C) Pywikibot team, 2005-2025
#
# Distributed under the terms of the MIT license.
#
@@ -53,8 +53,12 @@ class Family(family.SubdomainFamily, family.WikimediaFamily):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'af', 'ar', 'ba', 'ca', 'eu', 'fa', 'fy', 'gl', 'it', 'ko', 'ky', 'nl',
'ru', 'sk', 'th', 'zh',
'af', 'ar', 'az', 'ba', 'be', 'bg', 'bs', 'ca', 'cv', 'cy', 'da', 'de',
'el', 'eo', 'et', 'eu', 'fa', 'fi', 'gl', 'hi', 'hy', 'ia', 'id', 'is',
'it', 'ka', 'kk', 'km', 'ko', 'ku', 'ky', 'la', 'li', 'lt', 'mg', 'mk',
'ml', 'mr', 'ms', 'ne', 'nl', 'no', 'oc', 'pa', 'pl', 'ro', 'ru', 'sa',
'shn', 'si', 'sk', 'sl', 'sq', 'sv', 'ta', 'te', 'tg', 'th', 'tl',
'tr', 'tt', 'uk', 'ur', 'vi', 'zh',
]

# Subpages for documentation.
6 changes: 3 additions & 3 deletions pywikibot/families/wikinews_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikinews."""
#
# (C) Pywikibot team, 2005-2024
# (C) Pywikibot team, 2005-2025
#
# Distributed under the terms of the MIT license.
#
@@ -43,8 +43,8 @@ class Family(family.SubdomainFamily, family.WikimediaFamily):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'ar', 'bg', 'bs', 'ca', 'cs', 'el', 'en', 'eo', 'fa', 'fi', 'he', 'ja',
'ko', 'li', 'nl', 'no', 'pt', 'ro', 'sq', 'sr', 'sv', 'ta', 'tr', 'uk',
'ar', 'bs', 'ca', 'cs', 'el', 'en', 'eo', 'fa', 'fi', 'he', 'ja', 'ko',
'li', 'nl', 'no', 'pl', 'pt', 'ro', 'sq', 'sr', 'sv', 'ta', 'tr', 'uk',
'zh',
]

51 changes: 26 additions & 25 deletions pywikibot/families/wikipedia_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikipedia."""
#
# (C) Pywikibot team, 2004-2024
# (C) Pywikibot team, 2004-2025
#
# Distributed under the terms of the MIT license.
#
@@ -119,31 +119,32 @@ class Family(family.SubdomainFamily, family.WikimediaFamily):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'ab', 'ace', 'ady', 'af', 'als', 'am', 'an', 'ang', 'ar', 'arc', 'arz',
'as', 'ast', 'atj', 'av', 'ay', 'az', 'ba', 'bar', 'bat-smg', 'bcl',
'be', 'be-tarask', 'bg', 'bh', 'bi', 'bjn', 'bm', 'bo', 'bpy', 'bug',
'bxr', 'ca', 'cbk-zam', 'cdo', 'ce', 'ceb', 'ch', 'chr', 'chy', 'ckb',
'co', 'cr', 'crh', 'cs', 'csb', 'cu', 'cv', 'cy', 'da', 'diq', 'dsb',
'dty', 'dz', 'ee', 'el', 'eml', 'en', 'eo', 'et', 'eu', 'ext', 'fa',
'ff', 'fi', 'fj', 'fo', 'frp', 'frr', 'fur', 'ga', 'gag', 'gan', 'gd',
'glk', 'gn', 'gom', 'gor', 'got', 'gu', 'gv', 'ha', 'hak', 'haw', 'he',
'hi', 'hif', 'hr', 'hsb', 'ht', 'hu', 'hy', 'ia', 'ie', 'ig', 'ik',
'ilo', 'inh', 'io', 'iu', 'ja', 'jam', 'jbo', 'jv', 'ka', 'kaa', 'kab',
'kbd', 'kg', 'ki', 'kk', 'kl', 'km', 'kn', 'ko', 'koi', 'krc', 'ks',
'ku', 'kv', 'kw', 'ky', 'la', 'lad', 'lb', 'lbe', 'lez', 'lfn', 'lg',
'li', 'lij', 'lmo', 'ln', 'lo', 'lt', 'ltg', 'lv', 'map-bms', 'mdf',
'meta', 'mg', 'mhr', 'mi', 'mk', 'ml', 'mn', 'mrj', 'ms', 'mwl', 'my',
'myv', 'mzn', 'nah', 'nap', 'nds-nl', 'ne', 'new', 'nl', 'no', 'nov',
'ab', 'ace', 'ady', 'af', 'als', 'am', 'ami', 'an', 'ang', 'ar', 'arc',
'arz', 'as', 'ast', 'atj', 'av', 'avk', 'awa', 'ay', 'az', 'azb', 'ba',
'ban', 'bar', 'bat-smg', 'bcl', 'be', 'be-tarask', 'bh', 'bi', 'bjn',
'blk', 'bm', 'bo', 'bpy', 'bug', 'bxr', 'ca', 'cbk-zam', 'cdo', 'ce',
'ceb', 'ch', 'chr', 'chy', 'ckb', 'co', 'cr', 'crh', 'cs', 'csb', 'cu',
'cv', 'cy', 'dag', 'diq', 'dsb', 'dty', 'dz', 'ee', 'eml', 'eo', 'et',
'eu', 'ext', 'fa', 'ff', 'fj', 'fo', 'frp', 'frr', 'fur', 'ga', 'gag',
'gan', 'gcr', 'gd', 'glk', 'gn', 'gom', 'gor', 'got', 'gu', 'guc',
'gur', 'guw', 'gv', 'ha', 'hak', 'haw', 'hi', 'hif', 'hr', 'hsb', 'ht',
'hu', 'hy', 'hyw', 'ia', 'ie', 'ig', 'ik', 'ilo', 'inh', 'io', 'iu',
'jam', 'jbo', 'jv', 'ka', 'kaa', 'kab', 'kbd', 'kbp', 'kcg', 'kg',
'ki', 'kk', 'kl', 'km', 'kn', 'ko', 'koi', 'krc', 'ks', 'ku', 'kv',
'kw', 'ky', 'la', 'lad', 'lbe', 'lez', 'lfn', 'lg', 'li', 'lij', 'lld',
'lmo', 'ln', 'lo', 'lt', 'ltg', 'lv', 'mad', 'mai', 'map-bms', 'mdf',
'mg', 'mi', 'min', 'mk', 'mn', 'mni', 'mrj', 'mwl', 'my', 'myv', 'mzn',
'na', 'nah', 'nap', 'nds-nl', 'ne', 'new', 'nia', 'nl', 'nov', 'nqo',
'nrm', 'nso', 'nv', 'ny', 'oc', 'olo', 'om', 'or', 'os', 'pa', 'pag',
'pam', 'pap', 'pdc', 'pfl', 'pi', 'pih', 'pms', 'pnb', 'pnt', 'ps',
'qu', 'rm', 'rmy', 'rn', 'roa-rup', 'roa-tara', 'ru', 'rue', 'rw',
'sa', 'sah', 'sc', 'scn', 'sco', 'sd', 'se', 'sg', 'sh', 'shn', 'si',
'simple', 'sk', 'sm', 'sn', 'so', 'srn', 'ss', 'st', 'stq', 'su', 'sv',
'sw', 'szl', 'ta', 'tcy', 'te', 'tet', 'tg', 'th', 'ti', 'tk', 'tl',
'tn', 'to', 'tpi', 'tr', 'ts', 'tt', 'tum', 'tw', 'ty', 'tyv', 'udm',
'ug', 'uz', 've', 'vec', 'vep', 'vls', 'vo', 'wa', 'war', 'wo', 'xal',
'xh', 'xmf', 'yi', 'yo', 'za', 'zea', 'zh', 'zh-classical',
'zh-min-nan', 'zh-yue', 'zu',
'pam', 'pap', 'pcd', 'pcm', 'pdc', 'pfl', 'pi', 'pih', 'pms', 'pnb',
'pnt', 'ps', 'pwn', 'qu', 'rm', 'rmy', 'rn', 'roa-rup', 'roa-tara',
'rue', 'rw', 'sa', 'sah', 'sat', 'sc', 'scn', 'sco', 'sd', 'se', 'sg',
'sh', 'shi', 'shn', 'si', 'simple', 'sk', 'skr', 'sm', 'smn', 'sn',
'so', 'srn', 'st', 'stq', 'su', 'sw', 'szl', 'szy', 'ta', 'tay', 'tcy',
'te', 'tet', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tpi', 'trv',
'ts', 'tt', 'tum', 'tw', 'ty', 'tyv', 'udm', 'ug', 'uz', 've', 'vec',
'vep', 'vls', 'vo', 'wa', 'war', 'wo', 'xal', 'xh', 'xmf', 'yi', 'yo',
'za', 'zea', 'zh', 'zh-classical', 'zh-min-nan', 'zh-yue', 'zu',
]

# Languages that used to be coded in iso-8859-1
14 changes: 7 additions & 7 deletions pywikibot/families/wikiquote_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikiquote."""
#
# (C) Pywikibot team, 2005-2024
# (C) Pywikibot team, 2005-2025
#
# Distributed under the terms of the MIT license.
#
@@ -51,12 +51,12 @@ class Family(family.SubdomainFamily, family.WikimediaFamily):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'af', 'ar', 'az', 'be', 'bg', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'el',
'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'gu', 'he', 'hi', 'hu',
'hy', 'id', 'is', 'it', 'ja', 'ka', 'kn', 'ko', 'ku', 'ky', 'la', 'li',
'lt', 'ml', 'mr', 'nl', 'nn', 'no', 'pt', 'ro', 'ru', 'sa', 'sah',
'sk', 'sl', 'sq', 'sr', 'su', 'sv', 'ta', 'te', 'th', 'tr', 'uk', 'ur',
'uz', 'vi', 'wo', 'zh',
'af', 'ar', 'as', 'az', 'bcl', 'be', 'bg', 'bn', 'br', 'bs', 'ca',
'cs', 'cy', 'da', 'el', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'gl',
'gu', 'he', 'hi', 'hu', 'hy', 'id', 'ig', 'is', 'it', 'ja', 'ka', 'kn',
'ko', 'ku', 'ky', 'la', 'li', 'lt', 'ml', 'mr', 'nl', 'nn', 'no', 'pt',
'ro', 'ru', 'sa', 'sah', 'sk', 'sl', 'sq', 'sr', 'su', 'sv', 'ta',
'te', 'th', 'tl', 'tr', 'uk', 'ur', 'uz', 'vi', 'wo', 'wq', 'zh',
]

# Subpages for documentation.
12 changes: 7 additions & 5 deletions pywikibot/families/wikisource_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikisource."""
#
# (C) Pywikibot team, 2004-2024
# (C) Pywikibot team, 2004-2025
#
# Distributed under the terms of the MIT license.
#
@@ -83,10 +83,12 @@ def code_aliases(cls):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'ar', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'cy', 'da', 'el', 'et', 'eu',
'fa', 'fi', 'fo', 'gl', 'hr', 'hy', 'id', 'it', 'ja', 'kn', 'ko', 'ml',
'nap', 'no', 'or', 'pa', 'pl', 'pt', 'ro', 'sa', 'sk', 'sr', 'ta',
'te', 'th', 'uk', 'vi', 'zh',
'ar', 'as', 'az', 'ban', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'cy',
'da', 'el', 'eo', 'et', 'eu', 'fa', 'fi', 'fo', 'gl', 'gu', 'hi', 'hr',
'hy', 'id', 'it', 'ja', 'jv', 'kn', 'ko', 'lij', 'lt', 'mk', 'ml',
'nap', 'nl', 'no', 'or', 'pa', 'pl', 'pms', 'pt', 'ro', 'sa', 'sah',
'sk', 'sr', 'ta', 'te', 'th', 'tr', 'uk', 'vi', 'wa', 'yi', 'zh',
'zh-min-nan',
]

authornamespaces = {
4 changes: 2 additions & 2 deletions pywikibot/families/wikiversity_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikiversity."""
#
# (C) Pywikibot team, 2007-2024
# (C) Pywikibot team, 2007-2025
#
# Distributed under the terms of the MIT license.
#
@@ -40,5 +40,5 @@ def code_aliases(cls):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'ar', 'hi', 'ja', 'ko', 'zh',
'ar', 'el', 'es', 'fi', 'hi', 'it', 'ja', 'ko', 'pt', 'ru', 'sl', 'zh',
]
5 changes: 3 additions & 2 deletions pywikibot/families/wikivoyage_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2024
# (C) Pywikibot team, 2012-2025
#
# Distributed under the terms of the MIT license.
#
@@ -32,5 +32,6 @@ class Family(family.SubdomainFamily, family.WikimediaFamily):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'bn', 'el', 'en', 'es', 'fa', 'fi', 'hi', 'ps', 'ru',
'bn', 'el', 'en', 'eo', 'es', 'fa', 'fi', 'hi', 'ja', 'pl', 'ps', 'pt',
'ro', 'ru', 'shn', 'tr', 'uk', 'vi', 'zh',
]
28 changes: 15 additions & 13 deletions pywikibot/families/wiktionary_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Family module for Wiktionary."""
#
# (C) Pywikibot team, 2005-2024
# (C) Pywikibot team, 2005-2025
#
# Distributed under the terms of the MIT license.
#
@@ -62,18 +62,20 @@ class Family(family.SubdomainFamily, family.WikimediaFamily):
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
cross_allowed = [
'af', 'am', 'an', 'ang', 'ar', 'ast', 'ay', 'az', 'be', 'bg', 'bn',
'br', 'bs', 'ca', 'chr', 'co', 'cs', 'csb', 'cy', 'da', 'dv', 'el',
'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo', 'fy', 'ga', 'gd', 'gl',
'gn', 'gu', 'gv', 'ha', 'hsb', 'hu', 'hy', 'ia', 'id', 'ie', 'io',
'iu', 'jbo', 'jv', 'ka', 'kk', 'kl', 'km', 'kn', 'ko', 'ks', 'ku',
'kw', 'ky', 'la', 'lb', 'ln', 'lo', 'lt', 'lv', 'mg', 'mi', 'mk', 'ml',
'mn', 'ms', 'mt', 'my', 'na', 'nah', 'nds', 'ne', 'nl', 'nn', 'no',
'oc', 'om', 'or', 'pa', 'pnb', 'ps', 'pt', 'qu', 'roa-rup', 'rw', 'sa',
'scn', 'sd', 'sg', 'sh', 'si', 'simple', 'sk', 'sl', 'sm', 'so', 'sq',
'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk',
'tl', 'tn', 'tpi', 'tr', 'ts', 'tt', 'ug', 'uk', 'ur', 'uz', 'vec',
'vi', 'vo', 'wa', 'wo', 'yi', 'zh', 'zh-min-nan', 'zu',
'af', 'am', 'an', 'ang', 'ar', 'ast', 'ay', 'az', 'bcl', 'be', 'bg',
'bjn', 'bn', 'br', 'bs', 'ca', 'chr', 'co', 'cs', 'csb', 'cy', 'da',
'diq', 'dv', 'el', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo',
'ga', 'gd', 'gl', 'gn', 'gom', 'gor', 'gu', 'guv', 'gv', 'ha', 'hiv',
'hr', 'hsb', 'hu', 'hy', 'ia', 'id', 'ie', 'ig', 'io', 'iu', 'jbo',
'jv', 'ka', 'kk', 'kl', 'km', 'kn', 'ko', 'ks', 'ku', 'kw', 'ky', 'la',
'lb', 'lmo', 'ln', 'lo', 'lt', 'lv', 'mg', 'mi', 'min', 'mk', 'mn',
'mni', 'mnw', 'mr', 'ms', 'mt', 'my', 'na', 'nah', 'nds', 'ne', 'nia',
'nl', 'nn', 'no', 'oc', 'om', 'or', 'pa', 'pnb', 'ps', 'pt', 'qu',
'roa-rup', 'rw', 'sa', 'scn', 'sd', 'sg', 'sh', 'shn', 'shy', 'si',
'simple', 'sk', 'skr', 'sl', 'sm', 'so', 'sq', 'sr', 'ss', 'st', 'su',
'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'tpi',
'tr', 'ts', 'tt', 'ug', 'uk', 'ur', 'uz', 'vec', 'vi', 'vo', 'wa',
'wo', 'yi', 'zh', 'zh-min-nan', 'zu',
]

interwiki_on_one_line = ['pl']

0 comments on commit f7ebccd

Please sign in to comment.