Modiwl:Lang/data
Gwedd
Documentation for this module may be created at Modiwl:Lang/data/doc
local lang_data = {};
--[[--------------------------< O V E R R I D E >--------------------------------------------------------------
Language codes and names in this table override the BCP47 names in Module:Language/name/data.
code indexes in this table shall always be lower case
]]
local override = {
-- ISO 639-1 codes
["ab"] = {"Abkhazianeg"}, -- IANA name is Abkhazian; override wp_languages {"Abkhaz"}; to achieve this, use |label=
["bh"] = {"Ieithoedd Bihari"}, -- only ISO 639-1 collective; defined here to override improper redefinition (Bihari) in wp_languages
["cu"] = {"Slafoneg Eglwysig"}, -- 2nd IANA name;
["de-at"] = {"Almaeneg Awstria"}, -- these code-region and code-variant to match en.wiki article names
["de-ch"] = {"Almaeneg y Swistir"},
["en-au"] = {"Saesneg Awstralia"},
["en-ca"] = {"Saesneg Canadia"},
["en-emodeng"] = {"Saesneg Mordern Cynnar"},
["en-gb"] = {"Saesneg Prydain"},
["en-ie"] = {"Saesneg Iwerddon"},
["en-nz"] = {"Saesneg Seland Newydd"},
["en-us"] = {"Saesneg Americanaidd"},
["en-za"] = {"Saesneg De Affrica"},
["fy"] = {"Gorllewin Ffriseg"}, -- IANA name is Western Frisian
["ps"] = {"Pashto"}, -- IANA name is Pushto
["sr-cyrl"] = {"Serbeg"}, -- override wp_languages Serbian Cyrillic; to achieve this, use |label=
-- ISO 639-2, -3 codes
["arc"] = {"Aramaeg"}, -- IANA names are: Official Aramaic (700-300 BCE), Imperial Aramaic (700-300 BCE);
["ber"] = {"Ieithoedd Berber"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["bua"] = {"Buryat"}, -- IANA name Buriat; this is a macro language; these four use wp preferred transliteration;
["bxm"] = {"Buryat Mongolia"}, -- IANA name Mongolia Buriat; these three all redirect to Buryat
["bxr"] = {"Buryat Rwsia"}, -- IANA name Russia Buriat;
["bxu"] = {"Buryat Tsieina"}, -- IANA name China Buriat;
["cel"] = {"Yr Ieithoedd Celtaidd"}, -- ISO 639-2 collective; defined here to override improper redefinition ('Proto-Celtic') in wp_languages; use cel-x-proto instead
["egy"] = {"Eiffteg Hynafol"}, -- IANA name is Egyptian (Ancient); distinguish from contemporary arz: Egyptian Arabic
["frr"] = {"Gogledd Ffriseg"}, -- IANA name is Northern Frisian
["frs"] = {"Dwyrain Ffrisieg, Sacson Isel"}, -- IANA name is Eastern Frisian
["gem"] = {"Ieithoedd Germanaidd"}, -- ISO 639-2 collective; defined here to override improper redefinition ('Proto-Germanic') in wp_languages; use gem-x-proto instead
["jam"] = {"TAfodiaith Jamaica"}, -- IANA name is Jamaican Creole English
["mhr"] = {"Meadow Mari"}, -- IANA name is Eastern Mari
["mid"] = {"Mandaeg Modern"}, -- IANA name is Mandaic
["mla"] = {"Tamambo"}, -- wp_languages name is Medieval Latin; IANA and ISO 639-1 name is Malo
["myn"] = {"Ieithoedd Mayan"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["nah"] = {"Ieithoedd Nahuatl"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["nrf"] = {"Norman"}, -- not quite a collective - IANA name: Jèrriais; categorizes to Norman-language text
["orv"] = {"Hen Slaveg y Dwyrain"}, -- IANA name is Old Russian
["pra"] = {"Ieithoedd Prakrit"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["roa"] = {"Ieithoedd Romáwns"}, -- ISO 639-2 collective; defined here to override improper redefinition (Jèrriais) in wp_language; IANA name is "Romance languages"
["sal"] = {"Ieithoedd Salisheg"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["sla"] = {"Ieithoedd Slafonaidd"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["son"] = {"Ieithoedd Songhai"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["stq"] = {"Ffrisieg Saterland"}, -- IANA name is Saterfriesisch
["und"] = {"answyddogol"}, -- capitalization to match existing category
["wen"] = {"Ieithoedd Sorbeg"}, -- ISO 639-2 collective; defined here to override redefinition in wp_languages
["wrg"] = {"Warrongo"}, -- IANA name is Warungu
["xal-ru"] = {"Kalmyk"}, -- to match en.wiki article title
-- private use codes
["cel-x-proto"] = {"Proto-Celteg"}, -- cel in IANA is Celtic languages
["gem-x-proto"] = {"Proto-Germaneg"}, -- gem in IANA is Germanic languages
["grc-x-aeolic"] = {"Groeg Aeolig"}, -- these grc-x-... codes are preferred alternates to the non-standard catchall code grc-gre
["grc-x-attic"] = {"Aticeg"},
["grc-x-biblical"] = {"Groeg y Beibl"},
["grc-x-byzant"] = {"Groeg Caergystennin"},
["grc-x-classic"] = {"Groeg Clasurol"},
["grc-x-doric"] = {"Groeg Dorig"},
["grc-x-hellen"] = {"Groeg Helenistaidd"},
["grc-x-ionic"] = {"Groeg Ionig"},
["grc-x-koine"] = {"Groeg Koinē"},
["grc-x-medieval"] = {"Groeg yr Oesoedd Canol"},
["grc-x-patris"] = {"Patristeg"},
["yuf-x-hav"] = {"Havasupai"}, -- IANA name for these three is Havasupai-Walapai-Yavapai
["yuf-x-wal"] = {"Walapai"},
["yuf-x-yav"] = {"Yavapai"},
}
--[=[-------------------------< R T L _ S C R I P T S >--------------------------------------------------------
ISO 15924 scripts that are written right-to-left. Data in this table taken from [[ISO 15924#List of codes]]
last update to this list: 2017-12-24
]=]
local rtl_scripts = {
'adlm', 'arab', 'aran', 'armi', 'avst', 'cprt', 'egyd', 'egyh', 'hatr', 'hebr',
'hung', 'inds', 'khar', 'lydi', 'mand', 'mani', 'mend', 'merc', 'mero', 'narb',
'nbat', 'nkoo', 'orkh', 'palm', 'phli', 'phlp', 'phlv', 'phnx', 'prti', 'rohg',
'samr', 'sarb', 'sogd', 'sogo', 'syrc', 'syre', 'syrj', 'syrn', 'thaa', 'wole',
};
--[[--------------------------< T R A N S L I T T I T L E S >------------------------------------------------
This is a table of tables of transliteration standards and the language codes or language scripts that apply to
those standards. This table is used to create the tool-tip text associated with the transliterated text displayed
by some of the {{lang-??}} templates.
These tables are more-or-less copied directly from {{transl}}. The standard 'NO_STD' is a construct to allow for
the cases when no |std= parameter value is provided.
]]
local translit_title_table = {
['ahl'] = {
['default'] = 'Trawslythreniad Academi yr Hebraeg',
},
['ala'] = {
['default'] = 'Trawslythreniad yr American Library Association',
},
['ala-lc'] = {
['default'] = 'Trawslythreniad yr American Library Association',
},
['batr'] = {
['default'] = 'Trawslythreniad Rheolau Arabeg Bikdash',
},
['bgn/pcgn'] = {
['default'] = 'Trawslythreniad Board on Geographic Names',
},
['din'] = {
['ar'] = 'DIN 31635 Arabeg',
['fa'] = 'DIN 31635 Arabeg',
['ku'] = 'DIN 31635 Arabeg',
['ps'] = 'DIN 31635 Arabeg',
['tg'] = 'DIN 31635 Arabeg',
['ug'] = 'DIN 31635 Arabeg',
['ur'] = 'DIN 31635 Arabeg',
['arab'] = 'DIN 31635 Arabeg',
['default'] = 'Trawslythreniad DIN',
},
['eae'] = {
['default'] = 'Trawslythreniad Encyclopaedia Aethiopica',
},
['hepburn'] = {
['default'] = 'Trawslythreniad Hepburn',
},
['iast'] = {
['default'] = 'Trawslythreniad Gwyddor Rhyngwladol Sanskrit',
},
['iso'] = { -- when a transliteration standard is supplied
['ab'] = 'ISO 9 Cyrileg',
['ba'] = 'ISO 9 Cyrileg',
['be'] = 'ISO 9 Cyrileg',
['bg'] = 'ISO 9 Cyrileg',
['kk'] = 'ISO 9 Cyrileg',
['ky'] = 'ISO 9 Cyrileg',
['mn'] = 'ISO 9 Cyrileg',
['ru'] = 'ISO 9 Cyrileg',
['tg'] = 'ISO 9 Cyrileg',
['uk'] = 'ISO 9 Cyrileg',
['bua'] = 'ISO 9 Cyrileg',
['sah'] = 'ISO 9 Cyrileg',
['tut'] = 'ISO 9 Cyrileg',
['xal'] = 'ISO 9 Cyrileg',
['cyrl'] = 'ISO 9 Cyrileg',
['ar'] = 'ISO 233 Arabeg',
['ku'] = 'ISO 233 Arabeg',
['ps'] = 'ISO 233 Arabeg',
['ug'] = 'ISO 233 Arabeg',
['ur'] = 'ISO 233 Arabeg',
['arab'] = 'ISO 233 Arabeg',
['he'] = 'ISO 259 Hebraeg',
['yi'] = 'ISO 259 Hebraeg',
['hebr'] = 'ISO 259 Hebraeg',
['el'] = 'ISO 843 Groeg',
['grc'] = 'ISO 843 Groeg',
['ja'] = 'ISO 3602 Japaneg',
['hira'] = 'ISO 3602 Japaneg',
['hrkt'] = 'ISO 3602 Japaneg',
['jpan'] = 'ISO 3602 Japaneg',
['kana'] = 'ISO 3602 Japaneg',
['zh'] = 'ISO 7098 Tsieineeg',
['chi'] = 'ISO 7098 Tsieineeg',
['pny'] = 'ISO 7098 Tsieineeg',
['zho'] = 'ISO 7098 Tsieineeg',
-- ['han'] = 'ISO 7098 Tsieineeg', -- unicode alias of Hani? doesn't belong here? should be Hani?
['hans'] = 'ISO 7098 Tsieineeg',
['hant'] = 'ISO 7098 Tsieineeg',
['ka'] = 'ISO 9984 Georgeg',
['kat'] = 'ISO 9984 Georgeg',
['arm'] = 'ISO 9985 Armeneg',
['hy'] = 'ISO 9985 Armeneg',
['th'] = 'ISO 11940 Thai',
['tha'] = 'ISO 11940 Thai',
['ko'] = 'ISO 11941 Coreeg',
['kor'] = 'ISO 11941 Coreeg',
['bn'] = 'ISO 15919 Indo-AriaiddIndic',
['dra'] = 'ISO 15919 Indo-AriaiddIndic',
['gu'] = 'ISO 15919 Indo-AriaiddIndic',
['hi'] = 'ISO 15919 Indo-AriaiddIndic',
['inc'] = 'ISO 15919 Indo-AriaiddIndic',
['kn'] = 'ISO 15919 Indo-AriaiddIndic',
['ml'] = 'ISO 15919 Indo-AriaiddIndic',
['mr'] = 'ISO 15919 Indo-AriaiddIndic',
['sa'] = 'ISO 15919 Indo-AriaiddIndic',
['ta'] = 'ISO 15919 Indo-AriaiddIndic',
['te'] = 'ISO 15919 Indo-AriaiddIndic',
['beng'] = 'ISO 15919 Indo-AriaiddIndic',
['brah'] = 'ISO 15919 Indo-AriaiddIndic',
['deva'] = 'ISO 15919 Indo-AriaiddIndic',
['default'] = 'ISO trawslythreniad',
},
['nihon-shiki'] = {
['defailt'] = 'trawslythreniad Nihon-shiki',
},
['no_std'] = { -- when no transliteration standard is supplied
['akk'] = 'trawslythreniad Semitic',
['sem'] = 'trawslythreniad Semitic',
['phnx'] = 'trawslythreniad Semitic',
['xsux'] = 'trawslythreniad Cuneiform',
},
['pinyin'] = {
['default'] = 'trawslythreniad Pinyin',
},
['rr'] = {
['default'] = 'Revised Romanization of Korean transliteration',
},
['satts'] = {
['default'] = 'Standard Arabic Technical Transliteration System transliteration',
},
['ungegn'] = {
['default'] = 'United Nations Group of Experts on Geographical Names transliteration',
},
['wehr'] = {
['default'] = 'Hans Wehr transliteration',
},
};
return
{
override = override,
rtl_scripts = rtl_scripts,
is_rtl_script = is_rtl_script,
translit_title_table = translit_title_table,
};