Modul:Lang/data
Videz
Predloga se uporablja na številnih straneh, zato bo vsaka njena sprememba takoj zelo opazna. Prosimo, da vse spremembe, ki jih želite uvesti, pred uvedbo preizkusite na podstraneh predloge (/peskovnik in /testniprimeri) ali na svojih lastnih podstraneh. Pred spreminjanjem te predloge se o želenih spremembah rajši pogovorite na pogovorni strani. |
Uporablja Lua: |
This module holds various support tables used by Module:Lang
lang_name_table
– this table provides language name data used in the creation of categories and, for the{{lang-??}}
templates, the language name annotationoverride
– this table overrides data inlang_name_table
; commonly used when an en.wiki article title differs from the name for the standard's languagertl_scripts
– a list of ISO 15924 scripts that are written right-to-left; data taken from the table at ISO 15924#List of codestranslit_title_table
– a table of tables that is used in the creation of thetitle=
attribute of the<i>...</i>
tags that wrap transliterated text; data adapted from{{transl}}
article_name
– this table overrideslang_name_table
andoverride
for (typically) disambiguated en.wiki article names
Zgornja dokumentacija je vključena iz Modul:Lang/data/dok. (uredi | zgodovina) Urejevalci lahko preizkušate ta modul v peskovniku (uredi | primerjava) in testnihprimerih (ustvari). Prosimo, da dodate kategorije v /dok podstran. Podstrani te predloge. |
local lang_obj = mw.language.getContentLanguage();
local this_wiki_lang_tag = lang_obj.code; -- get this wiki's language tag
--[[--------------------------< L A N G _ N A M E _ T A B L E >------------------------------------------------
primary table of tables that decode:
lang -> language tags and names
script -> ISO 15924 script tags
region -> ISO 3166 region tags
variant -> iana registered variant tags
suppressed -> map of scripts tags and their associated language tags
all of these data come from separate modules that are derived from the IANA language-subtag-registry file
key_to_lower() avoids the metatable trap and sets all keys in the subtables to lowercase. Many language codes
have multiple associated names; Module:lang is only concerned with the first name so key_to_lower() only fetches
the first name.
]]
local function key_to_lower (module, src_type)
local out = {};
local source_t = (('var_sup' == src_type) and require (module)) or mw.loadData (module); -- fetch data from this module; require() avoids metatable trap for variant data
if 'var_sup' == src_type then
for k, v in pairs (source_t) do
out[k:lower()] = v; -- for variant and suppressed everything is needed
end
elseif 'lang' == src_type and source_t.active then -- for ~/iana_languages (active)
for k, v in pairs (source_t.active) do
out[k:lower()] = v[1]; -- ignore multiple names; take first name only
end
elseif 'lang_dep' == src_type and source_t.deprecated then -- for ~/iana_languages (deprecated)
for k, v in pairs (source_t.deprecated) do
out[k:lower()] = v[1]; -- ignore multiple names; take first name only
end
else -- here for all other sources
for k, v in pairs (source_t) do
out[k:lower()] = v[1]; -- ignore multiple names; take first name only
end
end
return out;
end
local lang_name_table_t = {
lang = key_to_lower ('Modul:Language/data/iana languages', 'lang'),
lang_dep = key_to_lower ('Modul:Language/data/iana languages', 'lang_dep'),
script = key_to_lower ('Modul:Language/data/iana scripts'), -- script keys are capitalized; set to lower
region = key_to_lower ('Modul:Language/data/iana regions'), -- region keys are uppercase; set to lower
variant = key_to_lower ('Modul:Language/data/iana variants', 'var_sup'),
suppressed = key_to_lower ('Modul:Language/data/iana suppressed scripts', 'var_sup'), -- script keys are capitalized; set to lower
}
--[[--------------------------< I 1 8 N M E D I A W I K I O V E R R I D E >--------------------------------
For internationalization; not used at en.wiki
The language names taken from the IANA language-subtag-registry file are given in English. That may not be ideal.
Translating ~8,000 language names is also not ideal. MediaWiki maintains (much) shorter lists of language names
in most languages for which there is a Wikipedia edition. When desired, Module:Lang can use the MediaWiki
language list for the local language.
Caveat lector: the list of MediaWiki language names for your language may not be complete or may not exist at all.
When incomplete, MediaWiki's list will 'fall back' to another language (typically English). When that happens
add an appropriate entry to the override table below.
Caveat lector: the list of MediaWiki language names for your language may not be correct. At en.wiki, the
MediaWiki language names do not agree with the IANA language names for these ISO 639-1 tags. Often it is simply
spelling differences:
bh: IANA: Bihari languages MW: Bhojpuri – the ISO 639-3 tag for Bhojpuri is bho
bn: IANA: Bengali MW: Bangla – Bengali is the exonym, Bangla is the endonym
dv: IANA: Dhivehi MW: Divehi
el: IANA: Modern Greek MW: Greek
ht: IANA: Haitian MW: Haitian Creole
ky: IANA: Kirghiz MW: Kyrgyz
li: IANA: Limburgan MW: Limburgish
or: IANA: Oriya MW: Odia
os: IANA: Ossetian MW: Ossetic
"pa: IANA: Panjabi MW: Punjabi
"ps: IANA: Pushto MW: Pashto
"to: IANA: Tonga MW: Tongan
"ug: IANA: Uighur MW: Uyghur
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:
=mw.dumpObject (mw.language.fetchLanguageNames ('<tag>', 'all'))
(replacing <tag> with the language tag for your language)
Use of the MediaWiki language names lists is enabled when media_wiki_override_enable is set to boolean true.
]]
local media_wiki_override_enable = false; -- set to true to override IANA names with MediaWiki names; always false at en.wiki
-- caveat lector: the list of MediaWiki language names for your language may not be complete or may not exist at all
if true == media_wiki_override_enable then
local mw_languages_by_tag_t = mw.language.fetchLanguageNames (this_wiki_lang_tag, 'all'); -- get a table of language tag/name pairs known to MediaWiki
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
lang_name_table_t.lang[tag] = name; -- overwrite exisiting name with the name from MediaWiki
end
end
end
--[[--------------------------< O V E R R I D E >--------------------------------------------------------------
Language codes and names in this table override the BCP47 names in lang_name_table.
indexes in this table shall always be lower case
]]
local override = {
------------------------------< I S O _ 6 3 9 - 1 >------------------------------------------------------------
["ab"] = "abhaško", -- to match en.wiki article name
["ca-valencia"] = "valencijsko",
["cu"] = "starocerkvenoslovansko", -- 2nd IANA name;
["de-at"] = "avstrijskonemško", -- these code-region and code-variant tags to match en.wiki article names
["de-ch"] = "standardno švicarsko nemško",
["en-au"] = "avstralskoangleško",
["en-ca"] = "kanadskoangleško",
["en-emodeng"] = "zgodnjesodobno angleško",
["en-gb"] = "britanskoangleško",
["en-ie"] = "irskoangleško",
["en-in"] = "indijskoangleško",
["en-nz"] = "novozelandskoangleško",
["en-us"] = "ameriškoangleško",
["en-za"] = "južnoafriškoangleško",
["fr-ca"] = "quebeškofrancosko",
["fr-gallo"] = "galeško",
["fy"] = "zahodnofrizijsko", -- Western Frisian
["mo"] = "moldavsko", -- Moldavian (deprecated code); to match en.wiki article title
["nl-be"] = "flamsko",
["oc-gascon"] = "geskonjsko",
["oc-provenc"] = "provansalsko",
["ps"] = "paštunsko", -- Pushto
["pt-br"] = "brazilskoportugalsko", -- match MediaWiki
["ro-md"] = "moldavsko", -- 'not deprecated' form
["ro-cyrl-md"] = "moldavsko", -- 'not deprecated' form
["tw-asante"] = "asantsko tvi",
["ug"] = "ujgursko", -- 2nd IANA name; to match en.wiki article name
-- these ISO 639-1 language-name overrides imported from Module:Language/data/wp_languages
--<begin do-not-edit except to comment out>--
["av"] = "avarsko", -- Avaric
["bo"] = "standardnotibetansko", -- Tibetan
["el"] = "grško", -- Modern Greek
-- ["en-SA"] = "South African English", -- English; no; SA is not South Africa it Saudi Arabia; ZA is South Africa
["ff"] = "fulsko", -- Fulah
["ht"] = "haitskokreolsko", -- Haitian
["hz"] = "otdžiherersko", -- Herero
["ii"] = "nuoško", -- Sichuan Yi
["ki"] = "kikujsko", -- Kikuyu
["kl"] = "grenlandsko", -- Kalaallisut
["ky"] = "kirgiško", -- Kirghiz
["lg"] = "lugandsko", -- Ganda
["li"] = "limburško", -- Limburgan
["mi"] = "maorsko", -- Maori
["na"] = "naurujsko", -- Nauru
["nb"] = "bokmalsko", -- Norwegian Bokmål
["nd"] = "severnondbelejsko", -- North Ndebele
["nn"] = "novonorveško", -- Norwegian Nynorsk
["nr"] = "južnondbelejsko", -- South Ndebele
["ny"] = "čevsko", -- Nyanja
["oj"] = "očipvejsko", -- Ojibwa
["or"] = "orijsko", -- Oriya
["pa"] = "pandžabsko", -- Panjabi
["rn"] = "rundško", -- Rundi
["sl"] = "slovensko", -- Slovenian
["ss"] = "svazijsko", -- Swati
["st"] = "sotojsko", -- Southern Sotho
["to"] = "tongovsko", -- Tonga
--<end do-not-edit except to comment out>--
------------------------------< I S O _ 6 3 9 - 2, - 3, - 5 >----------------------------------------------
["alv"] = "atlantskokongovsko", -- to match en.wiki article title (endash)
["arc"] = "cesarskoaramejsko (700–300 pr. n. št.)", -- Official Aramaic (700-300 BCE), Imperial Aramaic (700-300 BCE); to match en.wiki article title uses ISO639-2 'preferred' name
["art"] = "umetno", -- to match en.wiki article; lowercase for category name
["ast-es"] = "leoneško", -- ast in IANA is Asturian; Leonese is a dialect
["bea"] = "biversko", -- Beaver; to match en.wiki article title
["bha"] = "barijsko", -- Bharia; to match en.wiki article title
["bhd"] = "bhadarvajsko", -- Bhadrawahi; to match en.wiki article title
["bla"] = "blackfootsko", -- Siksika; to match en.wiki article title
["blc"] = "nuksalsko", -- Bella Coola; to match en.wiki article title
["bua"] = "burjatsko", -- Buriat; this is a macro language; these four use wp preferred transliteration;
["bxm"] = "mongolsko burjatsko", -- Mongolia Buriat; these three all redirect to Buryat
["bxr"] = "rusko burjatsko", -- Russia Buriat;
["bxu"] = "kitajsko burjatsko", -- China Buriat;
["byr"] = "jipmansko", -- Baruya, Yipma
["clm"] = "klalamsko", -- Clallam; to match en.wiki article title
["egy"] = "starodavnoegipčansko", -- Egyptian (Ancient); distinguish from contemporary arz: Egyptian Arabic
["ems"] = "alutiiško", -- Pacific Gulf Yupik; to match en.wiki article title
["esx"] = "eskimskoaleutsko", -- to match en.wiki article title (endash)
["frr"] = "severnofrizijsko", -- Northern Frisian
["frs"] = "vzhodnofrizijsko spodnjesaško", -- Eastern Frisian
["gsw-fr"] = "alzacijsko", -- match MediaWiki
["haa"] = "hansko", -- Han; to match en.wiki article title
["hei"] = "heiltsuško", -- Heiltsuk; to match en.wiki article title
["hmx"] = "hmongmienško", -- to match en.wiki article title (endash)
["ilo"] = "ilokansko", -- Iloko; to match en.wiki article title
["jam"] = "jamajškopatojsko", -- Jamaican Creole English
["lij-mc"] = "monegaško", -- Ligurian as spoken in Monaco
["luo"] = "Dholuo", -- IANA (primary) /ISO 639-3: Luo (Kenya and Tanzania); IANA (secondary): Dholuo
["mhr"] = "Meadow Mari", -- Eastern Mari
["mid"] = "sodobno mandajsko", -- Mandaic
['mis'] = "neoznačeno", -- Uncoded languages; capitalization; special scope, not collective scope;
["mkh"] = "mon–kmersko", -- to match en.wiki article title (endash)
["mla"] = "tamambsko", -- Malo
['mte'] = "mono-alujsko", -- Mono (Solomon Islands)
['mul'] = "več", -- Multiple languages; capitalization; special scope, not collective scope;
["nan-tw"] = "Taiwanese Hokkien", -- make room for IANA / 639-3 nan Min Nan Chinese; match en.wiki article title
["new"] = "nevarsko", -- Newari, Nepal Bhasa; to match en,wiki article title
["ngf"] = "Trans–New Guinea languages", -- to match en.wiki article title (endash)
["nic"] = "niger-kongovsko", -- Niger-Kordofanian languages; to match en,wiki article title
["nrf"] = "normansko", -- not quite a collective - IANA name: Jèrriais + Guernésiais; categorizes to Norman-language text
["nrf-gg"] = "guerneyjsko", -- match MediaWiki
["nrf-je"] = "jerseyjsko", -- match MediaWiki
["nzi"] = "Nzema", -- Nzima; to match en.wiki article title
["oma"] = "Omaha–Ponca", -- to match en.wiki article title (endash)
["orv"] = "starovzhodnoslovansko", -- Old Russian
["pfl"] = "Palatine German", -- Pfaelzisch; to match en.wiki article
["pie"] = "Piro Pueblo", -- Piro; to match en.wiki article
["pms"] = "piemontsko", -- Piemontese; to match en.wiki article title
["pnb"] = "(zahodno)pandžabsko", -- Western Panjabi; dab added to override import from ~/wp languages and distinguish pnb from pa in reverse look up tag_from_name()
['qwm'] = "Cuman", -- Kuman (Russia); to match en.wiki article name
["rop"] = "avstralsko kreolsko", -- Kriol; en.wiki article is a dab; point to correct en.wiki article
["sco-ulster"] = "Ulster Scots",
["sdo"] = "Bukar–Sadong", -- Bukar-Sadung Bidayuh; to match en.wiki article title
["smp"] = "Samaritan Hebrew", -- to match en.wiki article title
["stq"] = "Saterland Frisian", -- Saterfriesisch
["und"] = "nedoločeno", -- capitalization to match existing category
["wrg"] = "Warrongo", -- Warungu
["xal-ru"] = "Kalmyk", -- to match en.wiki article title
["xgf"] = "Tongva", -- ISO 639-3 is Gabrielino-Fernandeño
["yuf"] = "Havasupai–Hualapai", -- Havasupai-Walapai-Yavapai; to match en.wiki article title
["zxx"] = "ni jezikovne vsebine", -- capitalization
-- these ISO 639-2, -3 language-name overrides imported from Module:Language/data/wp_languages
--<begin do-not-edit except to comment out>--
["ace"] = "Acehnese", -- Achinese
["aec"] = "Sa'idi Arabic", -- Saidi Arabic
["akl"] = "Aklan", -- Aklanon
["alt"] = "Altay", -- Southern Altai
["apm"] = "Mescalero-Chiricahua", -- Mescalero-Chiricahua Apache
["bal"] = "Balochi", -- Baluchi
-- ["bcl"] = "Central Bicolano", -- Central Bikol
["bin"] = "Edo", -- Bini
["bpy"] = "Bishnupriya Manipuri", -- Bishnupriya
["chg"] = "Chagatay", -- Chagatai
["ckb"] = "Sorani Kurdish", -- Central Kurdish
["cnu"] = "Shenwa", -- Chenoua
["coc"] = "Cocopah", -- Cocopa
["diq"] = "Zazaki", -- Dimli
["fit"] = "Meänkieli", -- Tornedalen Finnish
["fkv"] = "Kven", -- Kven Finnish
["frk"] = "Old Frankish", -- Frankish
["gez"] = "Ge'ez", -- Geez
["gju"] = "Gujari", -- Gujari
["gsw"] = "Alemannic German", -- Swiss German
["gul"] = "Gullah", -- Sea Island Creole English
["hak"] = "Hakka", -- Hakka Chinese
["hbo"] = "biblijskohebrejsko", -- Ancient Hebrew
["hnd"] = "Hindko", -- Southern Hindko
-- ["ikt"] = "Inuvialuk", -- Inuinnaqtun
["kaa"] = "karakalpaško", -- Kara-Kalpak
["khb"] = "Tai Lü", -- Lü
["kmr"] = "Kurmanji Kurdish", -- Northern Kurdish
["kpo"] = "Kposo", -- Ikposo
["krj"] = "Kinaray-a", -- Kinaray-A
["ktz"] = "Juǀ'hoan", -- Juǀʼhoan
["lez"] = "lezginsko", -- Lezghian
["liv"] = "livonsko", -- Liv
["lng"] = "lombardsko", -- Langobardic
["mia"] = "Miami-Illinois", -- Miami
["miq"] = "Miskito", -- Mískito
["mix"] = "Mixtec", -- Mixtepec Mixtec
["mni"] = "Meitei", -- Manipuri
["mrj"] = "Hill Mari", -- Western Mari
["mww"] = "White Hmong", -- Hmong Daw
["nds-nl"] = "nizozemsko nizkosaško", -- Low German
-- ["new"] = "Nepal Bhasa", -- Newari
["nso"] = "Northern Sotho", -- Pedi
-- ["nwc"] = "Classical Nepal Bhasa", -- Classical Newari, Classical Nepal Bhasa, Old Newari
["ood"] = "O'odham", -- Tohono O'odham
["otk"] = "staroturško", -- Old Turkish
["pal"] = "srednjeperzijsko", -- Pahlavi
["pam"] = "Kapampangan", -- Pampanga
["phr"] = "Potwari", -- Pahari-Potwari
["pka"] = "Jain Prakrit", -- Ardhamāgadhī Prākrit
-- ["pnb"] = "Punjabi", -- Western Panjabi
["psu"] = "Shauraseni", -- Sauraseni Prākrit
["rap"] = "Rapa Nui", -- Rapanui
["rar"] = "Cook Islands Māori", -- Rarotongan
["rmu"] = "Scandoromani", -- Tavringer Romani
["rom"] = "romsko", -- Romany
["rup"] = "vlaško", -- Macedo-Romanian
["ryu"] = "Okinawan", -- Central Okinawan
["sdc"] = "sasarsko", -- Sassarese Sardinian
["sdn"] = "galureško", -- Gallurese Sardinian
["shp"] = "Shipibo", -- Shipibo-Conibo
["src"] = "Logudorese", -- Logudorese Sardinian
["sro"] = "Campidanese", -- Campidanese Sardinian
["tkl"] = "tokelavsko", -- Tokelau
["tvl"] = "tuvalujsko", -- Tuvalu
["tyv"] = "tuvaško", -- Tuvinian
["vls"] = "West Flemish", -- Vlaams
["wep"] = "Westphalian", -- Westphalien
["xal"] = "Oirat", -- Kalmyk
["xcl"] = "staroarmensko", -- Classical Armenian
["yua"] = "Yucatec Maya", -- Yucateco
--<end do-not-edit except to comment out>--
------------------------------< P R I V A T E _ U S E _ T A G S >----------------------------------------------
["akk-x-latbabyl"] = "poznobabilonsko",
["akk-x-midassyr"] = "srednjeasirsko akadsko",
["akk-x-midbabyl"] = "srednjebabilonsko akadsko",
["akk-x-neoassyr"] = "novoasirsko akadsko",
["akk-x-neobabyl"] = "novobabilonsko akadsko",
["akk-x-old"] = "staroakadsko",
["akk-x-oldassyr"] = "staroasirsko akadsko",
["akk-x-oldbabyl"] = "starobabilonsko akadsko",
["alg-x-proto"] = "praalgonkijsko", -- alg in IANA is Algonquian languages
["ca-x-old"] = "starokatalonsko",
["cel-x-combrit"] = "navadnobritonsko", -- cel in IANA is Celtic languages
["cel-x-proto"] = "prakeltsko",
["egy-x-demotic"] = "demotskoegipčansko",
["egy-x-late"] = "poznoegipčansko",
["egy-x-middle"] = "srednjeegiščansko",
["egy-x-old"] = "staroegipčansko",
["gem-x-proto"] = "pragermansko", -- gem in IANA is Germanic languages
["gmw-x-ecg"] = "vzhodnoosrednjenemško",
["grc-x-aeolic"] = "eolskogrško", -- these grc-x-... codes are preferred alternates to the non-standard catchall code grc-gre
["grc-x-attic"] = "atiškogrško",
["grc-x-biblical"] = "biblijskogrško",
["grc-x-byzant"] = "bizantinskogrško",
["grc-x-classic"] = "klasičnogrško",
["grc-x-doric"] = "dorskogrško",
["grc-x-hellen"] = "helenističnogrško",
["grc-x-ionic"] = "jonskogrško",
["grc-x-koine"] = "koinskogrško",
["grc-x-medieval"] = "srednjeveškogrško",
["grc-x-patris"] = "patritskogrško",
["grk-x-proto"] = "pragrško", -- grk in IANA is Greek languages
["iir-x-proto"] = "praindoiransko", -- iir in IANA is Indo-Iranian Languages
["inc-x-mitanni"] = "mitanskoarisko", -- inc in IANA is Indic languages
["inc-x-proto"] = "praindoarisko",
["ine-x-anatolia"] = "anatolsko",
["ine-x-proto"] = "praindoevropsko",
["ira-x-proto"] = "prairansko", -- ira in IANA is Iranian languages
["itc-x-proto"] = "praitalijansko", -- itc in IANA is Italic languages
["ksh-x-colog"] = "kölnsko", -- en.wiki article is Colognian; ksh (Kölsch) redirects there
["la-x-medieval"] = "srednjeveškolatinsko",
["la-x-new"] = "novolatinsko",
["lmo-x-berg"] = "bergamaško", -- lmo in IANA is Lombard; Bergamasque is a dialect
["lmo-x-cremish"] = "kremsko", -- lmo in IANA is Lombard; Cremish is a dialect
["lmo-x-milanese"] = "milansko", -- lmo in IANA is Lombard; Milanese is a dialect
["mis-x-ripuar"] = "ripuarsko", -- replaces improper use of ksh in wp_languages
["prg-x-old"] = "staropruško",
["sem-x-ammonite"] = "amonitsko",
["sem-x-aramaic"] = "aramajsko",
["sem-x-canaan"] = "kanaansko",
["sem-x-dumaitic"] = "dumajsko",
["sem-x-egurage"] = "vzhodnoguraško",
["sem-x-hatran"] = "hatranskoaramajsko",
["sem-x-oldsoara"] = "starojužnoarabsko",
["sem-x-palmyren"] = "palmirskoaramajsko",
["sem-x-proto"] = "prasemitsko",
["sem-x-taymanit"] = "tajmansko",
["sla-x-proto"] = "praslovansko", -- sla in IANA is Slavic languages
["yuf-x-hav"] = "havasupajsko", -- IANA name for these three is Havasupai-Walapai-Yavapai
["yuf-x-wal"] = "valapajsko",
["yuf-x-yav"] = "javapajsko",
["xsc-x-pontic"] = "pontskoskitsko", -- xsc in IANA is Scythian
["xsc-x-saka"] = "sakajsko",
["xsc-x-sarmat"] = "sarmatsko",
}
--[[--------------------------< A R T I C L E _ L I N K >------------------------------------------------------
for those rare occasions when article titles don't fit with the normal '<language name> language', this table
maps language code to article title. Use of this table should be avoided and the use of redirects preferred as
that is the long-standing method of handling article names that don't fit with the normal pattern
]]
local article_name = {
['kue'] = "Kumanščina (Nova Gvineja)", -- Kuman (Papua New Guinea); to avoid Kuman dab page
["lij-mc"] = "Monegaški dialekt", -- Ligurian as spoken in Monaco
['mbo'] = "Mbojščina (Kamerun)", -- Mbo (Cameroon)
['mnh'] = "Monojščina (Kongo)", -- Mono (Democratic Republic of Congo); see Template_talk:Lang#Mono_languages
['mnr'] = "Monojščina (Kalifornija)", -- Mono (USA)
['mru'] = "Monojščina (Kamerun)", -- Mono (Cameroon)
["snq"] = "Sangujščina (Gabon)", -- Sangu (Gabon)
["toi"] = "Tongščina (Zambija in Zimbabve)", -- Tonga (Zambia and Zimbabwe); to avoid Tonga language dab page
["vwa"] = "Avajščina (Kitajska)", -- Awa (China); to avoid Awa dab page
["xlg"] = "Ligurščina (predromanska)", -- see Template_talk:Lang#Ligurian_dab
["zmw"] = "Mbojščina (Kongo)", -- Mbo (Democratic Republic of Congo)
}
--[=[-------------------------< 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'] = 'Akademija za prečrkovanje hebrejskega jezika',
},
['ala'] = {
['default'] = 'Ameriška knjižničarska zveza – prečrkovanje Kongresne knjižnice',
},
['ala-lc'] = {
['default'] = 'Ameriška knjižničarska zveza – prečrkovanje Kongresne knjižnice',
},
['batr'] = {
['default'] = 'Pravila Bikdaša za arabsko transkripcijo',
},
['bgn/pcgn'] = {
['default'] = 'Odbor za zemljepisna imena / Stalni odbor za prečrkovanje zemljepisnih imen',
},
['din'] = {
['ar'] = 'DIN 31635 arabsko',
['fa'] = 'DIN 31635 arabsko',
['ku'] = 'DIN 31635 arabsko',
['ps'] = 'DIN 31635 arabsko',
['tg'] = 'DIN 31635 arabsko',
['ug'] = 'DIN 31635 arabsko',
['ur'] = 'DIN 31635 arabsko',
['arab'] = 'DIN 31635 arabsko',
['default'] = 'DIN transliteracija',
},
['eae'] = {
['default'] = 'Transkripcija Enciklopedije Aethiopice',
},
['hepburn'] = {
['default'] = 'Hepburnovo prečrkovanje',
},
['hunterian'] = {
['default'] = 'Huntersko prečrkovanje',
},
['iast'] = {
['default'] = 'Mednarodna abeceda transkripcije sanskrta',
},
['iso'] = { -- when a transliteration standard is supplied
['ab'] = 'ISO 9 cirilsko',
['ba'] = 'ISO 9 cirilsko',
['be'] = 'ISO 9 cirilsko',
['bg'] = 'ISO 9 cirilsko',
['kk'] = 'ISO 9 cirilsko',
['ky'] = 'ISO 9 cirilsko',
['mn'] = 'ISO 9 cirilsko',
['ru'] = 'ISO 9 cirilsko',
['tg'] = 'ISO 9 cirilsko',
['uk'] = 'ISO 9 cirilsko',
['bua'] = 'ISO 9 cirilsko',
['sah'] = 'ISO 9 cirilsko',
['tut'] = 'ISO 9 cirilsko',
['xal'] = 'ISO 9 cirilsko',
['cyrl'] = 'ISO 9 cirilsko',
['ar'] = 'ISO 233 arabsko',
['ku'] = 'ISO 233 arabsko',
['ps'] = 'ISO 233 arabsko',
['ug'] = 'ISO 233 arabsko',
['ur'] = 'ISO 233 arabsko',
['arab'] = 'ISO 233 arabsko',
['he'] = 'ISO 259 hebrejsko',
['yi'] = 'ISO 259 hebrejsko',
['hebr'] = 'ISO 259 hebrejsko',
['el'] = 'ISO 843 grško',
['grc'] = 'ISO 843 grško',
['ja'] = 'ISO 3602 japonsko',
['hira'] = 'ISO 3602 japonsko',
['hrkt'] = 'ISO 3602 japonsko',
['jpan'] = 'ISO 3602 japonsko',
['kana'] = 'ISO 3602 japonsko',
['zh'] = 'ISO 7098 kitajsko',
['chi'] = 'ISO 7098 kitajsko',
['cmn'] = 'ISO 7098 kitajsko',
['zho'] = 'ISO 7098 kitajsko',
-- ['han'] = 'ISO 7098 kitajsko', -- unicode alias of Hani? doesn't belong here? should be Hani?
['hans'] = 'ISO 7098 kitajsko',
['hant'] = 'ISO 7098 kitajsko',
['ka'] = 'ISO 9984 gruzijsko',
['kat'] = 'ISO 9984 gruzijsko',
['arm'] = 'ISO 9985 armensko',
['hy'] = 'ISO 9985 armensko',
['th'] = 'ISO 11940 tajsko',
['tha'] = 'ISO 11940 tajsko',
['ko'] = 'ISO 11941 korejsko',
['kor'] = 'ISO 11941 korejsko',
['awa'] = 'ISO 15919 indijsko',
['bho'] = 'ISO 15919 indijsko',
['bn'] = 'ISO 15919 indijsko',
['bra'] = 'ISO 15919 indijsko',
['doi'] = 'ISO 15919 indijsko',
['dra'] = 'ISO 15919 indijsko',
['gon'] = 'ISO 15919 indijsko',
['gu'] = 'ISO 15919 indijsko',
['hi'] = 'ISO 15919 indijsko',
['hno'] = 'ISO 15919 indijsko',
['inc'] = 'ISO 15919 indijsko',
['kn'] = 'ISO 15919 indijsko',
['kok'] = 'ISO 15919 indijsko',
['ks'] = 'ISO 15919 indijsko',
['mag'] = 'ISO 15919 indijsko',
['mai'] = 'ISO 15919 indijsko',
['ml'] = 'ISO 15919 indijsko',
['mr'] = 'ISO 15919 indijsko',
['ne'] = 'ISO 15919 indijsko',
['new'] = 'ISO 15919 indijsko',
['or'] = 'ISO 15919 indijsko',
['pa'] = 'ISO 15919 indijsko',
['pnb'] = 'ISO 15919 indijsko',
['raj'] = 'ISO 15919 indijsko',
['sa'] = 'ISO 15919 indijsko',
['sat'] = 'ISO 15919 indijsko',
['sd'] = 'ISO 15919 indijsko',
['si'] = 'ISO 15919 indijsko',
['skr'] = 'ISO 15919 indijsko',
['ta'] = 'ISO 15919 indijsko',
['tcy'] = 'ISO 15919 indijsko',
['te'] = 'ISO 15919 indijsko',
['beng'] = 'ISO 15919 indijsko',
['brah'] = 'ISO 15919 indijsko',
['deva'] = 'ISO 15919 indijsko',
['gujr'] = 'ISO 15919 indijsko',
['guru'] = 'ISO 15919 indijsko',
['knda'] = 'ISO 15919 indijsko',
['mlym'] = 'ISO 15919 indijsko',
['orya'] = 'ISO 15919 indijsko',
['sinh'] = 'ISO 15919 indijsko',
['taml'] = 'ISO 15919 indijsko',
['telu'] = 'ISO 15919 indijsko',
['default'] = 'ISO prečrkovanje',
},
['jyutping'] = {
['default'] = 'Džjutpingsko prečrkovanje',
},
['mlcts'] = {
['default'] = 'Sistem transkripcije mjanmarske jezikovne komisije',
},
['mr'] = {
['default'] = 'McCune-Reischauerjevo prečrkovanje',
},
['nihon-shiki'] = {
['default'] = 'Nihon-šikijsko prečrkovanje',
},
['no_std'] = { -- when no transliteration standard is supplied
['akk'] = 'Semitsko prečrkovanje',
['sem'] = 'Semitsko prečrkovanje',
['phnx'] = 'Semitsko prečrkovanje',
['xsux'] = 'Klinopisno prečrkovanje',
},
['pinyin'] = {
['default'] = 'Pinjinsko prečrkovanje',
},
['rr'] = {
['default'] = 'Spremenjena latinizacija korejskega prečrkovanja',
},
['rtgs'] = {
['default'] = 'Kraljevski tajski splošni sistem za ranskripcijo',
},
['satts'] = {
['default'] = 'Prečrkovanje standardnega arabskega tehničnega sistema za prečrkovanje',
},
['scientific'] = {
['default'] = 'znanstveno prečrkovanje',
},
['ukrainian'] = {
['default'] = 'Ukrajinski nacionalni sistem latinizacije',
},
['ungegn'] = {
['default'] = 'Skupina strokovnjakov Združenih narodov za prečrkovanje zemljepisnih imen',
},
['wadegile'] = {
['default'] = 'Wade-Gilesovo prečrkovanje',
},
['wehr'] = {
['default'] = 'Hans Wehrovo prečrkovanje',
},
['yaleko'] = {
['default'] = 'Yaleska latinizacija korejščine',
}
};
--[[--------------------------< E N G _ V A R >----------------------------------------------------------------
Used at en.wiki so that spelling of 'romanized' (US, default) can be changed to 'romanised' to match the envar
specified by a {{Use xxx English}}.
This is accomplished by setting |engvar=gb; can, should be omitted in articles that use American English; no
need for the clutter.
]]
local engvar_sel_t = { -- select either UK English or US English
['au'] = 'gb_t', -- these match IANA region codes (except in lower case)
['ca'] = 'us_t',
['gb'] = 'gb_t',
['ie'] = 'gb_t',
['in'] = 'gb_t',
['nz'] = 'gb_t',
['us'] = 'us_t', -- default engvar
['za'] = 'gb_t'
};
local engvar_t = {
['gb_t'] = {
['romanisz_lc'] = 'latinizacija', -- lower case
['romanisz_uc'] = 'Latinizacija', -- upper case
['romanisz_pt'] = 'latinizirano', -- past tense
},
['us_t'] = { -- default engvar
['romanisz_lc'] = 'latinizacija', -- lower case
['romanisz_uc'] = 'Latinizacija', -- upper case
['romanisz_pt'] = 'latinizirano', -- past tense
}
}
--[[--------------------------< E X P O R T S >----------------------------------------------------------------
]]
return
{
this_wiki_lang_tag = this_wiki_lang_tag,
this_wiki_lang_dir = lang_obj:getDir(), -- wiki's language direction
article_name = article_name,
engvar_t = engvar_t,
engvar_sel_t = engvar_sel_t,
lang_name_table = lang_name_table_t,
override = override,
rtl_scripts = rtl_scripts,
special_tags_table = special_tags_table,
translit_title_table = translit_title_table,
};