Moduuli:Cycling race/lang
Siirry navigaatioon
Siirry hakuun
Tämän moduulin ohjeistuksen voi tehdä sivulle Moduuli:Cycling race/lang/ohje
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"]="Japani", ["Q20"]="Norja", ["Q29"]="Espanja", ["Q30"]="Yhdysvallat", ["Q31"]="Belgia", ["Q32"]="Luxemburg",
["Q33"]="Suomi", ["Q34"]="Ruotsi", ["Q35"]="Tanska", ["Q36"]="Puola", ["Q37"]="Liettua", ["Q38"]="Italia", ["Q39"]="Sveitsi",
["Q55"]="Alankomaat", ["Q77"]="Uruguay", ["Q96"]="Meksiko", ["Q142"]="Ranska", ["Q145"]="Yhdistynyt kuningaskunta", ["Q159"]="Venäjä",
["Q183"]="Saksa", ['Q214']='Slovakia', ["Q408"]="Australia", ["Q414"]="Argentiina", ["Q664"]="Uusi-Seelanti", ["Q717"]="Venezuela",
["Q739"]="Kolumbia", ["Q29999"]="Alankomaat" }
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 = {'ja', 'mk', 'ru'}
return translations