Modul:Cycling race/lang

Vun Wikipedia

Die Dokumentation für dieses Modul kann unter Modul:Cycling race/lang/Doku erstellt werden

local translations = {}
function translations.list(item)
--[[
Using country items to get the name of a country is very slow. Expand and translate this list to your needs, for example to all Scandinavian items or 
South-Amercon items if this is your main topic. The information for rarely used countries is taken from Wikidata. Maybe adding 300+ country names is to much 
and it is to much work to insert them all by hand, but 30 or 40 should be OK.
]]	
local list = {}
list={ ["Q16"]="Kanada", ["Q17"]="Japan", ["Q20"]="Noorwegen", ["Q28"]="Ungarn", ["Q29"]="Spanien", ["Q30"]="Vereenigte Staaten", ["Q31"]="Belgien", 
	["Q32"]="Luxemborg", 
	["Q33"]="Finnland", ["Q34"]="Sweden", ["Q35"]="Däänmark", ["Q36"]="Polen", ["Q37"]="Litauen", ["Q38"]="Italien", ["Q39"]="Swiez", 
	["Q40"]="Ööstriek",["Q41"]="Grekenland",["Q43"]="Törkie",["Q45"]="Portugal",
	["Q55"]="Nedderland", ["Q77"]="Uruguay", ["Q96"]="Mexiko", ["Q114"]="Kenia", ["Q115"]="Äthiopien", ["Q142"]="Frankriek", 
	["Q145"]="Vereenigt Königriek", ["Q148"]="China", ["Q155"]="Brasilien", ["Q159"]="Russland", 
	["Q183"]="Düütschland", ["Q184"]="Wittrussland", ["Q211"]="Lettland",["Q212"]="Ukraine",["Q213"]="Tschechien",
	['Q214']='Slowakei', ["Q215"]="Slowenien",["Q218"]="Rumänien",["Q219"]="Bulgarien",
	["Q222"]="Albanien", ["Q227"]="Aserbaidschan",["Q232"]="Kasachstan", ["Q241"]="Kuba",["Q252"]="Indonesien",["Q258"]="Süüdafrika",
	["Q262"]="Algerien", ["Q265"]="Usbekistan",["Q298"]="Chile",["Q334"]="Singapur",["Q403"]="Serbien",
	["Q408"]="Australien", ["Q414"]="Argentinien",	["Q664"]="Neeseeland", ["Q717"]="Venezuela", 
	["Q736"]="Ecuador",["Q739"]="Kolumbien",["Q750"]="Bolivien",["Q794"]="Iran",["Q800"]="Costa Rica",
	["Q801"]="Israel",["Q833"]="Malaysia",["Q846"]="Katar",["Q865"]="Taiwan",["Q869 "]="Thailand",
	["Q884"]="Süüdkorea", ["Q928 "]="Philippinen",["Q948"]="Tunesien",
	["Q986"]="Eritrea", ["Q1028"]="Marokko", ["Q1037"]="Ruanda", ["Q29999"]="Nedderland",
	["Q8646"]="Hongkong"
} 
local value = list[item]
if value ~= nil then return value else return '' end
end

--[[
This is for the data in "official name" - qualifiers in team items. The first element in the list lang_priority has the highest priority. 
The code looks first in Wikidata team items if there is a translation in this language. If there is no such translation, the next language is taken. 
In case no matching "official name" - qualifier is available, the standard "official name" is printed, that is the one that is the value in that statement. 

If a wiki doesn´t have the lang module or this variable is not inserted into the lang module , the "official name" - qualifiers are ignored. 

It is used to print non latin team names in the cycling race tables and local team names, for example "Team Sky" instead of "Sky".
]]        

translations.lang_priority = {'fr'} 

return translations