יחידה:Cycling race/lang

מתוך ויקיפדיה, האנציקלופדיה החופשית

ניתן ליצור תיעוד על היחידה הזאת בדף יחידה:Cycling race/lang/תיעוד

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"]="קנדה", ["Q17"]="יפן", ["Q20"]="נורווגיה", ["Q29"]="ספרד", ["Q30"]="ארצות הברית", ["Q31"]="בלגיה", ["Q32"]="לוקסמבורג", 
	["Q33"]="פינלנד", ["Q34"]="שוודיה", ["Q35"]="דנמרק", ["Q36"]="פולין", ["Q37"]="ליטא", ["Q38"]="איטליה", ["Q39"]="שווייץ", 
	["Q55"]="הולנד", ["Q77"]="אורוגוואי", ["Q96"]="מקסיקו", ["Q114"]="קניה", ["Q115"]="אתיופיה", ["Q142"]="צרפת", ["Q145"]="הממלכה המאוחדת", ["Q159"]="רוסיה", 
	["Q183"]="גרמניה", ["Q184"]="בלארוס", ["Q211"]="לטביה", ['Q214']='סלובקיה', ["Q222"]="אלבניה", ["Q262"]="אלג'יריה", ["Q408"]="אוסטרליה", ["Q414"]="ארנגטינה", ["Q664"]="ניו זילנד", ["Q717"]="ונצואלה", 
	["Q739"]="קולומביה", ["Q948"]="תוניסיה", ["Q986"]="אריתריאה", ["Q1028"]="מרוקו", ["Q1037"]="רואנדה", ["Q29999"]="ממלכת ארצות השפלה" } 
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'} 
translations.lang_priority = {'he'} 
return translations