FANDOM


local tLang = {
["ar"]="Arabic",
["as"]="Assamese",
["av"]="Avaric",
["ae"]="Avestan",
["ay"]="Aymara",
["az"]="Azerbaijani",
["bm"]="Bambara",
["ba"]="Bashkir",
["eu"]="Basque",
["be"]="Belarusian",
["bn"]="Bengali, Bangla",
["bh"]="Bihari",
["bi"]="Bislama",
["bs"]="Bosnian",
["br"]="Breton",
["bg"]="Bulgarian",
["my"]="Burmese",
["ca"]="Catalan, Valencian",
["ch"]="Chamorro",
["ce"]="Chechen",
["ny"]="Chichewa, Chewa, Nyanja",
["zh"]="Chinese",
["zh-cn"]="Chinese",
["cv"]="Chuvash",
["kw"]="Cornish",
["co"]="Corsican",
["cr"]="Cree",
["hr"]="Croatian",
["cs"]="Czech",
["da"]="Danish",
["dv"]="Divehi, Dhivehi, Maldivian",
["nl"]="Dutch",
["nl-nl"]="Dutch (Netherlands)",
["dz"]="Dzongkha",
["en"]="English",
["eo"]="Esperanto",
["et"]="Estonian",
["ee"]="Ewe",
["fo"]="Faroese",
["fj"]="Fijian",
["fi"]="Finnish",
["fr"]="French",
["ff"]="Fula, Fulah, Pulaar, Pular",
["gl"]="Galician",
["ka"]="Georgian",
["de"]="German",
["el"]="Greek (modern)",
["gn"]="Guaraní",
["gu"]="Gujarati",
["ht"]="Haitian, Haitian Creole",
["ha"]="Hausa",
["he"]="Hebrew (modern)",
["hz"]="Herero",
["hi"]="Hindi",
["ho"]="Hiri Motu",
["hu"]="Hungarian",
["ia"]="Interlingua",
["id"]="Indonesian",
["ie"]="Interlingue",
["ga"]="Irish",
["ig"]="Igbo",
["ik"]="Inupiaq",
["io"]="Ido",
["is"]="Icelandic",
["it"]="Italian",
["iu"]="Inuktitut",
["ja"]="Japanese",
["jv"]="Javanese",
["kl"]="Kalaallisut, Greenlandic",
["kn"]="Kannada",
["kr"]="Kanuri",
["ks"]="Kashmiri",
["kk"]="Kazakh",
["km"]="Khmer",
["ki"]="Kikuyu, Gikuyu",
["rw"]="Kinyarwanda",
["ky"]="Kyrgyz",
["kv"]="Komi",
["kg"]="Kongo",
["ko"]="Korean",
["ku"]="Kurdish",
["kj"]="Kwanyama, Kuanyama",
["la"]="Latin",
["lb"]="Luxembourgish, Letzeburgesch",
["lg"]="Ganda",
["li"]="Limburgish, Limburgan, Limburger",
["ln"]="Lingala",
["lo"]="Lao",
["lt"]="Lithuanian",
["lu"]="Luba-Katanga",
["lv"]="Latvian",
["gv"]="Manx",
["mk"]="Macedonian",
["mg"]="Malagasy",
["ms"]="Malay",
["ml"]="Malayalam",
["mt"]="Maltese",
["mi"]="Māori",
["mr"]="Marathi (Marāṭhī)",
["mh"]="Marshallese",
["mn"]="Mongolian",
["na"]="Nauru",
["nv"]="Navajo, Navaho",
["nd"]="Northern Ndebele",
["ne"]="Nepali",
["ng"]="Ndonga",
["nb"]="Norwegian Bokmål",
["nn"]="Norwegian Nynorsk",
["no"]="Norwegian",
["ii"]="Nuosu",
["nr"]="Southern Ndebele",
["oc"]="Occitan",
["oj"]="Ojibwe, Ojibwa",
["cu"]="Old Church Slavonic, Church Slavonic, Old Bulgarian",
["om"]="Oromo",
["or"]="Oriya",
["os"]="Ossetian, Ossetic",
["pa"]="Panjabi, Punjabi",
["pi"]="Pāli",
["fa"]="Persian (Farsi)",
["pl"]="Polish",
["ps"]="Pashto, Pushto",
["pt"]="Portuguese",
["qu"]="Quechua",
["rm"]="Romansh",
["rn"]="Kirundi",
["ro"]="Romanian",
["ru"]="Russian",
["sa"]="Sanskrit (Saṁskṛta)",
["sc"]="Sardinian",
["sd"]="Sindhi",
["se"]="Northern Sami",
["sm"]="Samoan",
["sg"]="Sango",
["sr"]="Serbian",
["gd"]="Scottish Gaelic, Gaelic",
["sn"]="Shona",
["si"]="Sinhala, Sinhalese",
["sk"]="Slovak",
["sl"]="Slovene",
["so"]="Somali",
["st"]="Southern Sotho",
["es"]="Spanish",
["su"]="Sundanese",
["sw"]="Swahili",
["ss"]="Swati",
["sv"]="Swedish",
["ta"]="Tamil",
["te"]="Telugu",
["tg"]="Tajik",
["th"]="Thai",
["ti"]="Tigrinya",
["bo"]="Tibetan Standard, Tibetan, Central",
["tk"]="Turkmen",
["tl"]="Tagalog",
["tn"]="Tswana",
["to"]="Tonga (Tonga Islands)",
["tr"]="Turkish",
["ts"]="Tsonga",
["tt"]="Tatar",
["tw"]="Twi",
["ty"]="Tahitian",
["ug"]="Uyghur, Uighur",
["uk"]="Ukrainian",
["ur"]="Urdu",
["uz"]="Uzbek",
["ve"]="Venda",
["vi"]="Vietnamese",
["vo"]="Volapük",
["wa"]="Walloon",
["cy"]="Welsh",
["wo"]="Wolof",
["fy"]="Western Frisian",
["xh"]="Xhosa",
["yi"]="Yiddish",
["yo"]="Yoruba",
["za"]="Zhuang, Chuang",
["zu"]="Zulu"
}
 
local p = {}
function p.getLang(code)
    if code then
      code = trim(string.lower(code))
      if (tLang[code]) then 
         code = tLang[code]
      end
    end
    return code
end
function p.lang(frame)
   local code = string.lower(frame:getParent().args[1])
   return p.getLang(code)
end
 
function p.getcode(frame) 
   local sArgLang = string.lower(frame:getParent().args[1])
   sArgLang = trim(sArgLang)
   for code, sLang in  pairs( tLang ) do
      if string.lower(sArgLang) == string.lower(sLang) then 
         return code
      end
   end
   return "unknown"
end
 
 
function trim (s)
      return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
return p

Interferência de bloqueador de anúncios detectada!


A Wikia é um site grátis que ganha dinheiro com publicidade. Nós temos uma experiência modificada para leitores usando bloqueadores de anúncios

A Wikia não é acessível se você fez outras modificações. Remova o bloqueador de anúncios personalizado para que a página carregue como esperado.

Também no FANDOM

Wiki aleatória