Modul:Sprache

aus Memory Alpha, der freien deutschen Star-Trek-Datenbank
Version vom 18. Januar 2019, 21:36 Uhr von Phoenixclaw (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „local p = {} local languageNamesDe = { {"en","Englisch"}, {"de","Deutsch"}, {"fr","Französisch"}, {"tr","Türkisch"}, {"pl","Polnisch"}, {"ur","U…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version ansehen (Unterschied) | Nächstjüngere Version → (Unterschied)
Spring zu: Navigation, suche

Die Dokumentation für dieses Modul kann unter Modul:Sprache/Doku erstellt werden

local p = {}

local languageNamesDe = {
  {"en","Englisch"},
  {"de","Deutsch"},
  {"fr","Französisch"},
  {"tr","Türkisch"},
  {"pl","Polnisch"},
  {"ur","Urdu"},
  {"pt","Portugiesisch"},
  {"qu","Quechua"},
  {"ta","Tamil"},
  {"nl","Niederländisch"},
  {"ru","Russisch"},
  {"sw","Swahili"},
  {"zh","chinesische Sprachen"},
  {"ro","Rumänisch"},
  {"te","Telugu"},
  {"yi","Jiddisch"},
  {"sq","Albanisch"},
  {"uk","Ukrainisch"},
  {"sv","Schwedisch"},
  {"no","Norwegisch"},
  {"sk","Slowakisch"},
  {"sl","Slowenisch"},
  {"mt","Maltesisch"},
  {"vi","Vietnamesisch"},
  {"th","Thailändisch"},
  {"my","Birmanisch"},
  {"ms","Malaiisch"},
  {"tg","Tadschikische Sprache"},
  {"uz","Usbekisch"},
  {"tk","Turkmenische Sprache"},
  {"sr","Serbisch"},
  {"zu","IsiZulu"},
  {"sa","Sanskrit"},
  {"rm","Rätoromanisch"},
  {"za","Zhuang"},
  {"xh","IsiXhosa"},
  {"ug","Uigurisch"},
  {"si","Singhalesische Sprache"},
  {"so","Somali"},
  {"na","Nauruische Sprache"},
  {"nv","Navajo"},
  {"oc","Okzitanische Sprache"},
  {"nn","Nynorsk"},
  {"nb","Bokmål"},
  {"tt","Tatarisch"},
  {"aa","Afar"},
  {"ae","Avestische Sprache"},
  {"ve","Tshivenda"},
  {"ny","Chichewa"},
  {"hz","Otjiherero"},
  {"rw","Kinyarwanda"},
  {"rn","Kirundi"},
  {"ho","Hiri Motu"},
  {"or","Oriya"},
  {"ne","Nepali"},
  {"om","Oromo"},
  {"oj","Ojibwe"},
  {"ng","Ndonga"},
  {"se","nordsamische Sprache"},
  {"sg","Sango"},
  {"os","Ossetische Sprache"},
  {"sc","Sardische Sprache"},
  {"sd","Sindhi"},
  {"su","Sundanesisch"},
  {"sn","Shona"},
  {"sm","Samoanische Sprache"},
  {"ss","Siswati"},
  {"tl","Tagalog"},
  {"to","Tongaische Sprache"},
  {"ti","Tigrinya"},
  {"ty","Tahitianische Sprache"},
  {"tn","Setswana"},
  {"wa","Wallonische Sprache"},
  {"ii","Q34235"},
  {"wo","Wolof"},
  {"yo","Yoruba"},
  {"ts","Xitsonga"},
  {"st","Sesotho"},
  {"nd","Nord-Ndebele"},
  {"kr","Kanuri"},
  {"lu","Kiluba"},
  {"mh","Marshallesische Sprache"},
  {"pi","Pali"},
  {"nr","Süd-Ndebele"},
  {"tw","Twi"},
  {"vo","Volapük"},
  {"pa","Panjabi"},
  {"ps","Paschtunische Sprache"},
  {"bh","Bihari"},
  {"kj","Kwanyama"},
  {"eo","Esperanto"},
  {"is","Isländisch"},
  {"la","Latein"},
  {"it","Italienisch"},
  {"es","Spanisch"},
  {"fi","Finnisch"},
  {"hi","Hindi"},
  {"mr","Marathi"},
  {"ay","Aymara"},
  {"ab","Abchasisch"},
  {"gu","Gujarati"},
  {"ja","Japanisch"},
  {"hr","Kroatisch"},
  {"ca","Katalanisch"},
  {"bg","Bulgarisch"},
  {"mg","Malagasy"},
  {"ka","Georgisch"},
  {"eu","Baskisch"},
  {"an","Aragonesisch"},
  {"hy","Armenisch"},
  {"da","Dänisch"},
  {"lb","Luxemburgisch"},
  {"cs","Tschechisch"},
  {"hu","Ungarisch"},
  {"et","Estnisch"},
  {"lv","lettische Sprache"},
  {"lt","Litauische Sprache"},
  {"be","Weißrussisch"},
  {"el","Griechisch"},
  {"ga","Irisch"},
  {"fa","Persisch"},
  {"ko","Koreanisch"},
  {"km","Khmer-Sprache"},
  {"lo","laotische Sprache"},
  {"id","Indonesisch"},
  {"mn","Mongolische Sprache"},
  {"kk","Kasachisch"},
  {"ky","kirgisische Sprache"},
  {"he","Hebräisch"},
  {"az","Aserbaidschanische Sprache"},
  {"mk","mazedonische Sprache"},
  {"bs","Bosnisch"},
  {"gl","galicische Sprache"},
  {"cy","Walisisch"},
  {"gd","Schottisch-Gälisch"},
  {"bn","Bengali"},
  {"br","Bretonisch"},
  {"gv","Manx"},
  {"ba","Baschkirische Sprache"},
  {"ar","Arabisch"},
  {"af","Afrikaans"},
  {"fo","färöische Sprache"},
  {"kw","Kornisch"},
  {"kl","Grönländisch"},
  {"fy","Westfriesisch"},
  {"ik","Inupiaq"},
  {"ak","Akan"},
  {"am","Amharisch"},
  {"as","Assamesisch"},
  {"av","Awarisch"},
  {"iu","Inuktitut"},
  {"ee","Ewe"},
  {"dv","Dhivehi"},
  {"dz","Dzongkha"},
  {"co","Korsisch"},
  {"bm","Bambara"},
  {"cu","Kirchenslawisch"},
  {"ch","Chamorro"},
  {"fj","Fidschi"},
  {"cv","Tschuwaschische Sprache"},
  {"ce","Tschetschenisch"},
  {"lg","Luganda"},
  {"cr","Cree"},
  {"ff","Fulfulde"},
  {"ht","haitianische Sprache"},
  {"jv","javanische Sprache"},
  {"ks","Kashmiri"},
  {"ig","Igbo"},
  {"ki","Kikuyu"},
  {"kn","Kannada"},
  {"kg","Kikongo"},
  {"bo","Tibetisch"},
  {"io","Ido"},
  {"bi","Bislama"},
  {"cu","Altkirchenslawisch"},
  {"ie","Interlingue"},
  {"gn","Guaraní"},
  {"ia","Interlingua"},
  {"kv","Komi"},
  {"ln","Lingála"},
  {"ml","Malayalam"},
  {"ku","Kurdisch"},
  {"mo","Moldawisch"},
  {"mi","Maorische Sprache"},
  {"el","Neugriechisch"},
  {"ha","Hausa"},
  {"li","Limburgisch"}
}

function p.toNameDe(frame)
  local abbr = frame.args[1]
  for key,region in pairs(languageNamesDe) do
    if languageNamesDe[key][1] == abbr then
      return languageNamesDe[key][2]
    end
  end
  return "Sprache unbekannt"
end
return p