Modul:ISO15924/translate
Erscheinungsbild
Vorlagenprogrammierung | Diskussionen | Lua | Test | Unterseiten | |||
Modul | Deutsch | English
|
Modul: | Dokumentation |
Diese Seite enthält Code in der Programmiersprache Lua. Einbindungszahl Cirrus
Weiterleitung der Diskussionsseite fehlt
local ISO15924 = { suite = "ISO15924",
sub = "translate",
serial = "2021-06-14",
item = 71838614,
main = 71584769 }
--[=[
Create ISO 15924 mw.loadData() to translate names of scripting systems
]=]
local Failsafe = ISO15924
ISO15924.translate = {
de = { Afak = "Afaka-Schrift",
Aghb = { "alwanisch", "alwanischer Schrift" },
Ahom = "Ahom",
Arab = { "arabisch", "arabischer Schrift" },
Aran = "Nastaʿlīq",
Armi = { "reichsaramäisch", "reichsaramäischer Schrift" },
Armn = { "armenisch", "armenischer Schrift" },
Avst = { "avestisch", "avestischer Schrift" },
Bali = { "balinesisch", "balinesischer Schrift" },
Bamu = "Bamun-Schrift",
Bass = "Bassa-Schrift",
Batk = { "Batak", "Batak-Schrift" },
Beng = { "bengalisch", "bengalischer Schrift" },
Bhks = "Bhaiksuki",
Blis = "Bliss-Symbol",
Bopo = { "Zhuyin", "Zhuyin-Schrift" },
Brah = "Brahmi-Schrift",
Brai = "Brailleschrift",
Bugi = "Lontara",
Buhd = "Buid-Schrift",
Cakm = "Chakma-Schrift",
Cans = { "kanadische Silbenschrift", "kanadischer Silbenschrift" },
Cari = { "karisch", "karischer Schrift" },
Cham = "Cham-Schrift",
Cher = "Cherokee-Silbenschrift",
Cirt = "Cirth",
Copt = { "koptisch", "koptischer Schrift" },
Cpmn = { "minoisch", "minoischer Schrift" },
Cprt = { "kyprisch", "kyprischer Schrift" },
Cyrl = { "kyrillisch", "kyrillischer Schrift" },
Cyrs = { "altkyrillisch", "altkyrillischer Schrift" },
Deva = "Devanagari-Schrift",
Dogr = "Dogra",
Dsrt = "Deseret-Schrift",
Dupl = "Duployé-Kurzschrift",
Egyd = { "demotisch", "demotischer Schrift" },
Egyh = { "hieratisch", "hieratischer Schrift" },
Egyp = { "ägyptische Hieroglyphen", "ägyptischen Hieroglyphen" },
Elba = "Elbasan",
Elym = "Elymais",
Ethi = { "äthiopisch", "äthiopischer Schrift" },
Geok = "Chutsuri",
Geor = { "georgisch", "georgischer Schrift" },
Glag = { "glagolitisch", "glagolitischer Schrift" },
Gong = "Gondi Gunjala",
Gonm = "Gondi Masaram",
Goth = { "gotisch", "gotischer Schrift" },
Gran = "Grantha-Schrift",
Grek = { "griechisch", "griechischer Schrift" },
Gujr = "Gujarati-Schrift",
Guru = "Gurmukhi-Schrift",
Hanb = "Han mit Bopomofo",
Hang = { "koreanisch (Hangul)", "koreanischer Schrift (Hangul)" },
Hani = "Kanji/Hán",
Hano = "Hanunó'o-Schrift",
Hans = { "chinesisch vereinfacht", "vereinfachter chinesischer Schrift (Kurzzeichen)" },
Hant = { "chinesisch traditionell", "traditioneller chinesischer Schrift (Langzeichen)" },
Hatr = "Hatra-Schrift",
Hebr = { "hebräisch", "hebräischer Schrift" },
Hira = "Hiragana-Schrift",
Hluw = "Luwisch",
Hmng = "Hmong-Schrift",
Hrkt = { "japanische Silbenschriften", "japanischen Silbenschriften (Hiragana, Katakana)" },
Hung = { "altungarisch", "altungarischer Schrift" },
Inds = "Indus-Schrift",
Ital = { "altitalisch", "altitalischer Schrift" },
Jamo = "Jamo",
Java = { "javanisch", "javanischer Schrift" },
Jpan = { "japanisch", "japanischer Schrift" },
Jurc = "Jurchen",
Kali = "Kayah Li",
Kana = "Katakana-Schrift",
Khar = "Kharoshthi-Schrift",
Khmr = "Khmer-Schrift",
Khoj = "Khojki-Schrift",
Kitl = "Chitan-Schrift (groß)",
Kits = "Chitan-Schrift (klein)",
Knda = "Kannada-Schrift",
Kore = { "koreanisch (Hangul/Han)", "koreanischer Schrift" },
Kpel = "Kpelle-Schrift",
Kthi = "Kaithi-Schrift",
Lana = "Lanna",
Laoo = { "laotisch", "laotischer Schrift" },
Latf = { "Frakturschrift", "lateinischer Schrift (Fraktur)" },
Latg = { "irisch-gälisch", "irischer Schrift (gälisch)" },
Latn = { "lateinisch", "lateinischer Schrift" },
Leke = "Leke",
Lepc = "Lepcha-Schrift",
Limb = "Limbu-Schrift",
Lina = "Linearschrift A",
Linb = "Linearschrift B",
Lisu = "Lisu",
Loma = "Loma",
Lyci = "Lykisch",
Lydi = "Lydisch",
Mahj = "Mahajani",
Maka = "Makasar",
Mand = { "mandäisch", "mandäischer Schrift" },
Mani = { "manichäisch", "manichäischer Schrift" },
Marc = "Marchen",
Maya = "Maya-Schrift",
Medf = "Medefaidrin",
Mend = "Mende-Schrift",
Merc = "Meroitische Kursivschrift",
Mero = "Meroitische Hieroglyphen",
Mlym = "Malayalam-Schrift",
Modi = "Moḍī",
Mong = { "mongolisch", "mongolischer Schrift" },
Moon = "Moon-Schrift",
Mroo = "Mro",
Mtei = "Meitei-Mayek",
Mult = "Multani",
Mymr = { "birmanisch", "birmanischer Schrift" },
Nand = "Nandinagari",
Narb = { "alt-nordarabisch", "alt-nordarabischer Schrift" },
Nbat = { "nabatäisch", "nabatäischer Schrift" },
Newa = "Newari",
Nkdb = "Naxi Dongba",
Nkgb = "Naxi Geba",
Nkoo = "N’Ko-Schrift",
Nshu = { "Frauenschrift", "Frauenschrift (Nüshu)" },
Ogam = { "Ogham-Schrift", "Ogham-Schrift (gälisch)" },
Olck = "Ol-Chiki-Schrift",
Orkh = { "Orchon-Runen", "Orchon-Runen (alttürkisch)" },
Orya = "Oriya-Schrift",
Osge = "Osage",
Osma = "Osmaniya-Schrift",
Palm = { "palmyrenisches Aramäisch", "palmyrenischem Aramäisch" },
Pauc = "Pau Cin Hau",
Perm = { "altpermisch", "altpermischer Schrift" },
Phag = "Phagpa-Schrift",
Phli = "Inschriften-Pahlavi",
Phli = "Inschriften-Pahlavi",
Phlp = "Psalterschrift",
Phlv = "Buch-Pahlavi",
Phnx = { "phönizisch", "phönizischer Schrift" },
Piqd = "klingonisch",
Plrd = "Pollard-Schrift",
Prti = "Inschriften-Parthisch",
-- Qaaa ... Qabx
Rjng = "Rejang-Schrift",
Rohg = "Rohingya",
Roro = "Rongorongo-Schrift",
Runr = { "Runen", "Runenschrift" },
Samr = { "samaritanisch", "samaritanischer Schrift" },
Sara = "Sarati",
Sarb = { "alt-südarabisch", "alt-südarabischer Schrift" },
Saur = "Saurashtri",
Sgnw = "Gebärdenschrift",
Shaw = { "Shaw-Alphabet", "Shaw-Alphabet", "im" },
Shrd = "Sharada",
Shui = "Shuishu",
Sidd = "Siddham",
Sind = "Sindhi",
Sinh = { "singhalesisch", "singhalesischer Schrift" },
Sogd = "sogdisch",
Sogo = "altsogdisch",
Sora = "Sora Sompeng",
Soyo = "Sojombo-Schrift",
Sund = { "sundanesisch", "sundanesischer Schrift" },
Sylo = "Sylheti-Nagari-Schrift",
Syrc = { "syrisch", "syrischer Schrift" },
Syre = { "syrisch", "syrischer Schrift (Estrangelo)" },
Syrj = { "syrisch", "syrischer Schrift (westlich)" },
Syrn = { "syrisch", "syrischer Schrift (östlich)" },
Tagb = "Tagbanuwa-Schrift",
Takr = "Takri-Schrift",
Tale = "Tai Lue",
Talu = "neues Tai Lue",
Taml = { "tamilisch", "tamilischer Schrift" },
Tang = "Xixia-Schrift",
Tavt = "Tai Viet",
Telu = "Telugu-Schrift",
Teng = "Tengwar-Schrift",
Tfng = "Tifinagh-Schrift",
Tglg = "Tagalog-Schrift",
Thaa = "Thaana-Schrift",
Thai = { "thailändisch", "thailändischer Schrift" },
Tibt = { "tibetisch", "tibetischer Schrift" },
Tirh = "Mithilakshar-Schrift",
Ugar = { "ugaritisch", "ugaritischer Schrift" },
Vaii = "Vai-Schrift",
Visp = "Visible Speech",
Wara = "Warang Citi",
Wcho = "Wancho",
Wole = "Woleai",
Xpeo = { "persische Keilschrift", "persischer Keilschrift" },
Xsux = { "sumero-akkadische Keilschrift", "sumero-akkadischer Keilschrift" },
Yiii = "Yi-Schrift",
Zanb = "Zanabazarin Dörböljin Useg",
Zinh = "Code für geerbtes Schriftsystem",
Zmth = "Mathematische Notation",
Zsye = "Emoji",
Zsym = "Symbole",
Zxxx = "Code für ungeschriebene Dokumente",
Zyyy = "Code für unbestimmtes Schriftsystem",
Zzzz = "Code für unkodiertes Schriftsystem"
}, -- de
en = { Adlm = "Adlam",
Afak = "Afaka",
Aghb = "Caucasian Albanian",
Ahom = "Tai Ahom",
Arab = "Arabic",
Aran = "Nastaliq Arabic",
Armi = "Imperial Aramaic",
Armn = "Armenian",
Avst = "Avestan",
Bali = "Balinese",
Bamu = "Bamum",
Bass = "Bassa Vah",
Batk = "Batak",
Beng = "Bengali",
Bhks = "Bhaiksuki",
Blis = "Blissymbols",
Bopo = "Bopomofo",
Brah = "Brahmi",
Brai = "Braille",
Bugi = "Buginese",
Buhd = "Buhid",
Cakm = "Chakma",
Cans = "Unified Canadian Aboriginal Syllabics",
Cari = "Carian",
Cham = "Cham",
Cher = "Cherokee",
Cirt = "Cirth",
Copt = "Coptic",
Cpmn = "Cypro-Minoan",
Cprt = "Cypriot syllabary",
Cyrl = "Cyrillic",
Cyrs = "Cyrillic slavonic",
Deva = "Devanagari",
Dogr = "Dogra",
Dsrt = "Deseret",
Dupl = "Duployan stenography",
Egyd = "Egyptian demotic",
Egyh = "Egyptian hieratic",
Egyp = "Egyptian hieroglyphs",
Elba = "Elbasan",
Elym = "Elymaic",
Ethi = "Ethiopic",
Geok = "Khutsuri",
Geor = "Georgian",
Glag = "Glagolitic",
Gong = "Gunjala Gondi",
Gonm = "Masaram Gondi",
Goth = "Gothic",
Gran = "Grantha",
Grek = "Greek",
Gujr = "Gujarati",
Guru = "Gurmukhi",
Hanb = "Han with Bopomofo",
Hang = "Hangul",
Hani = "Han",
Hano = "Hanunoo",
Hans = "Han simplified",
Hant = "Han traditional",
Hatr = "Hatran",
Hebr = "Hebrew",
Hira = "Hiragana",
Hluw = "Anatolian Hieroglyphs",
Hmng = "Pahawh Hmong",
Hmnp = "Nyiakeng Puachue Hmong",
Hrkt = "Japanese syllabaries",
Hung = "Old Hungarian",
Inds = "Indus",
Ital = "Old Italic",
Jamo = "Jamo",
Java = "Javanese",
Jpan = "Japanese",
Jurc = "Jurchen",
Kali = "Kayah Li",
Kana = "Katakana",
Khar = "Kharoshthi",
Khmr = "Khmer",
Khoj = "Khojki",
Kitl = "Khitan large script",
Kits = "Khitan small script",
Knda = "Kannada",
Kore = "Korean",
Kpel = "Kpelle",
Kthi = "Kaithi",
Lana = "Tai Tham",
Laoo = "Lao",
Latf = "Latin fraktur",
Latg = "Latin gaelic",
Latn = "Latin",
Leke = "Leke",
Lepc = "Lepcha",
Limb = "Limbu",
Lina = "Linear A",
Linb = "Linear B",
Lisu = "Lisu",
Loma = "Loma",
Lyci = "Lycian",
Lydi = "Lydian",
Mahj = "Mahajani",
Maka = "Makasar",
Mand = "Mandaic",
Mani = "Manichaean",
Marc = "Marchen",
Maya = "Mayan hieroglyphs",
Medf = "Medefaidrin",
Mend = "Mende Kikakui",
Merc = "Meroitic Cursive",
Mero = "Meroitic Hieroglyphs",
Mlym = "Malayalam",
Modi = "Modi, Moḍī",
Mong = "Mongolian",
Moon = "Moon",
Mroo = "Mro, Mru",
Mtei = "Meitei Mayek",
Mult = "Multani",
Mymr = "Myanmar",
Nand = "Nandinagari",
Narb = "Old North Arabian",
Nbat = "Nabataean",
Newa = "Newa",
Nkdb = "Naxi Dongba",
Nkgb = "Naxi Geba",
Nkoo = "N’Ko",
Nshu = "Nüshu",
Ogam = "Ogham",
Olck = "Ol Chiki",
Orkh = "Old Turkic",
Orya = "Oriya",
Osge = "Osage",
Osma = "Osmanya",
Palm = "Palmyrene",
Pauc = "Pau Cin Hau",
Perm = "Old Permic",
Phag = "Phags-pa",
Phli = "Inscriptional Pahlavi",
Phlp = "Psalter Pahlavi",
Phlv = "Book Pahlavi",
Phnx = "Phoenician",
Plrd = "Miao",
Piqd = "Klingon",
Prti = "Inscriptional Parthian",
-- Qaaa ... Qabx "Reserved for private use"
Rjng = "Rejang",
Rohg = "Hanifi Rohingya",
Roro = "Rongorongo",
Runr = "Runic",
Samr = "Samaritan",
Sara = "Sarati",
Sarb = "Old South Arabian",
Saur = "Saurashtra",
Sgnw = "SignWriting",
Shaw = "Shavian",
Shrd = "Sharada",
Shui = "Shuishu",
Sidd = "Siddham",
Sind = "Sindhi",
Sinh = "Sinhala",
Sogd = "Sogdian",
Sogo = "Old Sogdian",
Sora = "Sora Sompeng",
Soyo = "Soyombo",
Sund = "Sundanese",
Sylo = "Syloti Nagri",
Syrc = "Syriac",
Syre = "Syriac",
Syrj = "Syriac",
Syrn = "Syriac",
Tagb = "Tagbanwa",
Takr = "Takri",
Tale = "Tai Le",
Talu = "Tai Lue",
Taml = "Tamil",
Tang = "Tangut",
Tavt = "Tai Viet",
Telu = "Telugu",
Teng = "Tengwar",
Tfng = "Tifinagh",
Tglg = "Tagalog",
Thaa = "Thaana",
Thai = "Thai",
Tibt = "Tibetan",
Tirh = "Tirhuta",
Ugar = "Ugaritic",
Vaii = "Vai",
Visp = "Visible Speech",
Wara = "Warang Citi",
Wcho = "Wancho",
Wole = "Woleai",
Xpeo = "Old Persian",
Xsux = "Sumero-Akkadian",
Yiii = "Yi",
Zanb = "Zanabazar Square",
Zinh = "Code for inherited script",
Zmth = "Mathematical notation",
Zsye = "Emoji",
Zsym = "Symbols",
Zxxx = "Code for unwritten documents",
Zyyy = "Code for undetermined script",
Zzzz = "Code for uncoded script"
}, -- en
fr = { Adlm = "adlam",
Afak = "afaka",
Aghb = "aghbanien",
Ahom = "âhom",
Arab = "arabe",
Aran = "arabe nastalique",
Armi = "araméen impérial",
Armn = "arménien",
Avst = "avestique",
Bali = "balinais",
Bamu = "bamoum",
Bass = "bassa",
Batk = "batik",
Beng = "bengalî",
Bhks = "bhaïksukî",
Blis = "symboles Bliss",
Bopo = "bopomofo",
Brah = "brahma",
Brai = "braille",
Bugi = "bouguis",
Buhd = "bouhide",
Cakm = "chakma",
Cans = "syllabaire autochtone canadien unifié",
Cari = "carien",
Cham = "cham",
Cher = "tchérokî",
Cirt = "cirth",
Copt = "copte",
Cpmn = "syllabaire chypro-minoen",
Cprt = "syllabaire chypriote",
Cyrl = "cyrillique",
Cyrs = "cyrillique slavonne",
Deva = "dévanâgarî",
Dogr = "dogra",
Dsrt = "déseret",
Dupl = "sténographie Duployé",
Egyd = "démotique égyptien",
Egyh = "hiératique égyptien",
Egyp = "hiéroglyphes égyptiens",
Elba = "elbasan",
Elym = "élymaïque",
Ethi = "éthiopien",
Geok = "khoutsouri",
Geor = "géorgien",
Glag = "glagolitique",
Gong = "gunjala gondî",
Gonm = "masaram gondî",
Goth = "gotique",
Gran = "grantha",
Grek = "grec",
Gujr = "goudjarâtî",
Guru = "gourmoukhî",
Hanb = "han avec bopomofo",
Hang = "hangûl",
Hani = "idéogrammes han",
Hano = "hanounóo",
Hans = "idéogrammes han",
Hant = "idéogrammes han",
Hatr = "hatrénien",
Hebr = "hébreu",
Hira = "hiragana",
Hluw = "hiéroglyphes anatoliens",
Hmng = "pahawh hmong",
Hmnp = "nyiakeng puachue hmong",
Hrkt = "syllabaires japonais",
Hung = "runes hongroises",
Inds = "indus",
Ital = "ancien italique",
Jamo = "jamo",
Java = "javanais",
Jpan = "japonais",
Jurc = "jurchen",
Kali = "kayah li",
Kana = "katakana",
Khar = "kharochthî",
Khmr = "khmer",
Khoj = "khojkî",
Kitl = "grande écriture khitan",
Kits = "petite écriture khitan",
Knda = "kannara",
Kore = "coréen",
Kpel = "kpèllé",
Kthi = "kaithî",
Lana = "taï tham",
Laoo = "laotien",
Latf = "latin brisée",
Latg = "latin gaélique",
Latn = "latin",
Leke = "léké",
Lepc = "lepcha",
Limb = "limbou",
Lina = "linéaire A",
Linb = "linéaire B",
Lisu = "lisu",
Loma = "loma",
Lyci = "lycien",
Lydi = "lydien",
Mahj = "mahâjanî",
Maka = "makassar",
Mand = "mandéen",
Mani = "manichéen",
Marc = "marchen",
Maya = "hiéroglyphes mayas",
Medf = "médéfaïdrine",
Mend = "mendé kikakui",
Merc = "cursif méroïtique",
Mero = "hiéroglyphes méroïtiques",
Mlym = "malayâlam",
Modi = "modî",
Mong = "mongol",
Moon = "écriture Moon",
Mroo = "mro",
Mtei = "meitei mayek",
Mult = "multanî",
Mymr = "birman",
Nand = "nandinâgarî",
Narb = "nord-arabique",
Nbat = "nabatéen",
Newa = "néwa",
Nkdb = "naxi dongba",
Nkgb = "naxi geba",
Nkoo = "n’ko",
Nshu = "nüshu",
Ogam = "ogam",
Olck = "ol tchiki",
Orkh = "orkhon",
Orya = "oriyâ",
Osge = "osage",
Osma = "osmanais",
Palm = "palmyrénien",
Pauc = "paou chin haou",
Perm = "ancien permien",
Phag = "’phags pa",
Phli = "pehlevi des inscriptions",
Phlp = "pehlevi des psautiers",
Phlv = "pehlevi des livres",
Phnx = "phénicien",
Plrd = "miao",
Piqd = "klingon",
Prti = "parthe des inscriptions",
-- Qaaa ... Qabx "réservé à l’usage privé",
Rjng = "redjang",
Rohg = "hanifi rohingya",
Roro = "rongorongo",
Runr = "runique",
Samr = "samaritain",
Sara = "sarati",
Sarb = "sud-arabique",
Saur = "saurachtra",
Sgnw = "SignÉcriture",
Shaw = "shavien",
Shrd = "charada",
Shui = "shuishu",
Sidd = "siddham",
Sind = "sindhî",
Sinh = "singhalais",
Sogd = "sogdien",
Sogo = "ancien sogdien",
Sora = "sora sompeng",
Soyo = "soyombo",
Sund = "sundanais",
Sylo = "sylotî nâgrî",
Syrc = "syriaque",
Syre = "syriaque",
Syrj = "syriaque",
Syrn = "syriaque",
Tagb = "tagbanoua",
Takr = "tâkrî",
Tale = "taï-le",
Talu = "nouveau taï-lue",
Taml = "tamoul",
Tang = "tangoute",
Tavt = "taï viêt",
Telu = "télougou",
Teng = "tengwar",
Tfng = "tifinagh",
Tglg = "tagal",
Thaa = "thâna",
Thai = "thaï",
Tibt = "tibétain",
Tirh = "tirhouta",
Ugar = "ougaritique",
Vaii = "vaï",
Visp = "parole visible",
Wara = "warang citi",
Wcho = "wantcho",
Wole = "woléaï",
Xpeo = "cunéiforme persépolitain",
Xsux = "cunéiforme suméro-akkadien",
Yiii = "yi",
Zanb = "zanabazar quadratique",
Zinh = "codet pour écriture héritée",
Zmth = "notation mathématique",
Zsye = "symboles",
Zsym = "symboles",
Zxxx = "codet pour les documents non écrits",
Zyyy = "codet pour écriture indéterminée",
Zzzz = "codet pour écriture non codée"
} -- fr
}
local further = function ()
-- Add item numbers from commons:Data:ISO15924/items.tab
-- Returns: table
local storage = ISO15924.suite
local r = { }
local data, lucky
storage = string.format( "%s/%s.tab", storage, "items" )
lucky, data = pcall( mw.ext.data.get, storage )
if type( data ) == "table" and
type( data.data ) == "table" then
local entry
data = data.data
for i = 1, #data do
entry = data[ i ]
r[ entry[ 1 ] ] = entry[ 2 ]
end -- for i
end
return r
end -- further()
local fresh = function ()
-- Check for global update
-- Returns: true, if matching global version; false, if not
-- 2019-10-15
local r
if type( Failsafe.item ) == "number" and Failsafe.item > 0 then
local storage = string.format( "Q%d", Failsafe.item )
local entity = mw.wikibase.getEntity( storage )
if type( entity ) == "table" then
local seek = Failsafe.serialProperty or "P348"
local vsn = entity:formatPropertyValues( seek )
if type( vsn ) == "table" and
vsn.value == Failsafe.serial then
r = true
end
end
end
return r or false
end -- fresh()
ISO15924.translate.wikidata = further()
ISO15924.failsafe = ISO15924.serial
ISO15924.last = fresh()
return ISO15924