Module:Lang/data: Difference between revisions
fr-ca → Canadian French; +fr-x-quebec → Quebec French;
m (1 revision imported) |
(fr-ca → Canadian French; +fr-x-quebec → Quebec French;) |
||
| Line 9: | Line 9: | ||
script -> ISO 15924 script tags | script -> ISO 15924 script tags | ||
region -> ISO 3166 region tags | region -> ISO 3166 region tags | ||
variant -> | variant -> IANA registered variant tags | ||
suppressed -> map of scripts tags and their associated language tags | suppressed -> map of scripts tags and their associated language tags | ||
| Line 88: | Line 88: | ||
use the override table to override language names that are incorrect for your project | use the override table to override language names that are incorrect for your project | ||
To see the list of names that MediaWiki has for your language, enter this in the Debug | To see the list of names that MediaWiki has for your language, enter this in the Debug console: | ||
=mw.dumpObject (mw.language.fetchLanguageNames ('<tag>', 'all')) | =mw.dumpObject (mw.language.fetchLanguageNames ('<tag>', 'all')) | ||
(replacing <tag> with the language tag for your language) | (replacing <tag> with the language tag for your language) | ||
| Line 102: | Line 102: | ||
for tag, name in pairs (mw_languages_by_tag_t) do -- loop through each tag/name pair in the MediaWiki list | for tag, name in pairs (mw_languages_by_tag_t) do -- loop through each tag/name pair in the MediaWiki list | ||
if lang_name_table_t.lang[tag] then -- if the tag is in the main list | if lang_name_table_t.lang[tag] then -- if the tag is in the main list | ||
lang_name_table_t.lang[tag] = name; -- overwrite | lang_name_table_t.lang[tag] = name; -- overwrite existing name with the name from MediaWiki | ||
end | end | ||
end | end | ||
| Line 133: | Line 133: | ||
["en-us"] = "American English", | ["en-us"] = "American English", | ||
["en-za"] = "South African English", | ["en-za"] = "South African English", | ||
["fr-ca"] = " | ["fr-ca"] = "Canadian French", | ||
["fr-gallo"] = "Gallo", | ["fr-gallo"] = "Gallo", | ||
["fy"] = "West Frisian", -- Western Frisian | ["fy"] = "West Frisian", -- Western Frisian | ||
| Line 185: | Line 185: | ||
["arc"] = "Imperial Aramaic (700-300 BCE)", -- Official Aramaic (700-300 BCE), Imperial Aramaic (700-300 BCE); to match en.wiki article title uses ISO639-2 'preferred' name | ["arc"] = "Imperial Aramaic (700-300 BCE)", -- Official Aramaic (700-300 BCE), Imperial Aramaic (700-300 BCE); to match en.wiki article title uses ISO639-2 'preferred' name | ||
["art"] = "constructed", -- to match en.wiki article; lowercase for category name | ["art"] = "constructed", -- to match en.wiki article; lowercase for category name | ||
["ast-es"] = "Leonese", -- ast in IANA is Asturian; Leonese is a dialect | |||
["bea"] = "Dane-zaa", -- Beaver; to match en.wiki article title | ["bea"] = "Dane-zaa", -- Beaver; to match en.wiki article title | ||
["bha"] = "Bhariati", -- Bharia; to match en.wiki article title | |||
["bhd"] = "Bhadarwahi", -- Bhadrawahi; to match en.wiki article title | ["bhd"] = "Bhadarwahi", -- Bhadrawahi; to match en.wiki article title | ||
["bla"] = "Blackfoot", -- Siksika; to match en.wiki article title | ["bla"] = "Blackfoot", -- Siksika; to match en.wiki article title | ||
| Line 231: | Line 233: | ||
['qwm'] = "Cuman", -- Kuman (Russia); to match en.wiki article name | ['qwm'] = "Cuman", -- Kuman (Russia); to match en.wiki article name | ||
["rop"] = "Australian Kriol", -- Kriol; en.wiki article is a dab; point to correct en.wiki article | ["rop"] = "Australian Kriol", -- Kriol; en.wiki article is a dab; point to correct en.wiki article | ||
["rsk"] = "Pannonian Rusyn", -- Ruthenian; en.wiki preferred name | |||
["sco-ulster"] = "Ulster Scots", | ["sco-ulster"] = "Ulster Scots", | ||
["sdo"] = "Bukar–Sadong", -- Bukar-Sadung Bidayuh; to match en.wiki article title | ["sdo"] = "Bukar–Sadong", -- Bukar-Sadung Bidayuh; to match en.wiki article title | ||
| Line 240: | Line 243: | ||
["xgf"] = "Tongva", -- ISO 639-3 is Gabrielino-Fernandeño | ["xgf"] = "Tongva", -- ISO 639-3 is Gabrielino-Fernandeño | ||
["yuf"] = "Havasupai–Hualapai", -- Havasupai-Walapai-Yavapai; to match en.wiki article title | ["yuf"] = "Havasupai–Hualapai", -- Havasupai-Walapai-Yavapai; to match en.wiki article title | ||
["zkt"] = "Khitan", -- Kitan; to match en.wiki article title | |||
["zxx"] = "no linguistic content", -- capitalization | ["zxx"] = "no linguistic content", -- capitalization | ||
| Line 332: | Line 336: | ||
["cel-x-combrit"] = "Common Brittonic", -- cel in IANA is Celtic languages | ["cel-x-combrit"] = "Common Brittonic", -- cel in IANA is Celtic languages | ||
["cel-x-proto"] = "Proto-Celtic", | ["cel-x-proto"] = "Proto-Celtic", | ||
["ccs-x-proto"] = "Proto-Kartvelian", -- ccs in IANA is Kartvelian languages | |||
["egy-x-demotic"] = "Demotic Egyptian", | ["egy-x-demotic"] = "Demotic Egyptian", | ||
["egy-x-late"] = "Late Egyptian", | ["egy-x-late"] = "Late Egyptian", | ||
["egy-x-middle"] = "Middle Egyptian", | ["egy-x-middle"] = "Middle Egyptian", | ||
["egy-x-old"] = "Old Egyptian", | ["egy-x-old"] = "Old Egyptian", | ||
["fiu-x-proto"] = "Proto-Finno-Ugric", -- fiu in IANA is Finno-Ugric languages | |||
["fr-x-quebec"] = "Quebec French", | |||
["gem-x-proto"] = "Proto-Germanic", -- gem in IANA is Germanic languages | ["gem-x-proto"] = "Proto-Germanic", -- gem in IANA is Germanic languages | ||
["gmw-x-ecg"] = "East Central German", | ["gmw-x-ecg"] = "East Central German", | ||
["grc-x-aeolic"] = "Aeolic Greek", -- these grc-x-... codes are preferred alternates to the non-standard catchall code grc-gre | ["grc-x-aeolic"] = "Aeolic Greek", -- these grc-x-... codes are preferred alternates to the non-standard catchall code grc-gre | ||
["grc-x-arcadcyp"] = "Arcadocypriot Greek", | |||
["grc-x-attic"] = "Attic Greek", | ["grc-x-attic"] = "Attic Greek", | ||
["grc-x-biblical"] = "Biblical Greek", | ["grc-x-biblical"] = "Biblical Greek", | ||
| Line 360: | Line 368: | ||
["la-x-medieval"] = "Medieval Latin", | ["la-x-medieval"] = "Medieval Latin", | ||
["la-x-new"] = "New Latin", | ["la-x-new"] = "New Latin", | ||
["lmo-x-berg"] = "Bergamasque", -- lmo in IANA is Lombard; Bergamasque is a dialect | |||
["lmo-x-cremish"] = "Cremish", -- lmo in IANA is Lombard; Cremish is a dialect | |||
["lmo-x-milanese"] = "Milanese", -- lmo in IANA is Lombard; Milanese is a dialect | ["lmo-x-milanese"] = "Milanese", -- lmo in IANA is Lombard; Milanese is a dialect | ||
["mis-x-ripuar"] = "Ripuarian", -- replaces improper use of ksh in wp_languages | ["mis-x-ripuar"] = "Ripuarian", -- replaces improper use of ksh in wp_languages | ||
| Line 373: | Line 383: | ||
["sem-x-proto"] = "Proto-Semitic", | ["sem-x-proto"] = "Proto-Semitic", | ||
["sem-x-taymanit"] = "Taymanitic", | ["sem-x-taymanit"] = "Taymanitic", | ||
["smi-x-proto"] = "Proto-Samic", -- smi in IANA is Samic languages | |||
["sla-x-proto"] = "Proto-Slavic", -- sla in IANA is Slavic languages | ["sla-x-proto"] = "Proto-Slavic", -- sla in IANA is Slavic languages | ||
["urj-x-proto"] = "Proto-Uralic", -- urj in IANA is Uralic languages | |||
["yuf-x-hav"] = "Havasupai", -- IANA name for these three is Havasupai-Walapai-Yavapai | ["yuf-x-hav"] = "Havasupai", -- IANA name for these three is Havasupai-Walapai-Yavapai | ||
["yuf-x-wal"] = "Walapai", | ["yuf-x-wal"] = "Walapai", | ||
| Line 380: | Line 392: | ||
["xsc-x-saka"] = "Saka", | ["xsc-x-saka"] = "Saka", | ||
["xsc-x-sarmat"] = "Sarmatian", | ["xsc-x-sarmat"] = "Sarmatian", | ||
["zle-x-ruthenia"] = "Ruthenian", -- zle in IANA is East Slavic languages collective; moved to allow rsk for Pannonian Rusyn | |||
} | } | ||
| Line 428: | Line 441: | ||
by some of the {{lang-??}} templates. | by some of the {{lang-??}} templates. | ||
These tables are more-or-less copied directly from {{ | These tables are more-or-less copied directly from {{special|PermaLink/680078354}}. The standard 'NO_STD' is a construct to allow for | ||
the cases when no |std= parameter value is provided. | the cases when no |std= parameter value is provided. | ||
| Line 499: | Line 512: | ||
['xal'] = 'ISO 9 Cyrillic', | ['xal'] = 'ISO 9 Cyrillic', | ||
['cyrl'] = 'ISO 9 Cyrillic', | ['cyrl'] = 'ISO 9 Cyrillic', | ||
['cyrs'] = 'ISO 9 Cyrillic', | |||
['ar'] = 'ISO 233 Arabic', | ['ar'] = 'ISO 233 Arabic', | ||