Jump to content

Module:Lang/data: Difference between revisions

m 1 revision imported
Template>Uzume
m remove ambiguous references to "transl"
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 -> iana registered variant tags
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 colsole:
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 exisiting name with the name from MediaWiki
lang_name_table_t.lang[tag] = name; -- overwrite existing name with the name from MediaWiki
end
end
end
end
Line 233: 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 335: 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
["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 378: Line 382:
["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 385: Line 391:
["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 433: Line 440:
by some of the {{lang-??}} templates.
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
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.