Module:GAN-Cycling-race/lang
Apparence
La documentation de ce module est générée par le modèle {{Documentation module}}.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
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"]="Canada", ["Q17"]="Japon", ["Q20"]="Norvège", ["Q28"]="Hongrie", ["Q29"]="Espagne", ["Q30"]="États-Unis", ["Q31"]="Belgique", ["Q32"]="Luxembourg",
["Q33"]="Finlande", ["Q34"]="Suède", ["Q35"]="Danemark", ["Q36"]="Pologne", ["Q37"]="Lituanie", ["Q38"]="Italie", ["Q39"]="Suisse",
["Q40"]="Autriche",["Q41"]="Grèce",["Q43"]="Turquie",["Q45"]="Portugal",
["Q55"]="Pays-Bas", ["Q77"]="Uruguay", ["Q96"]="Mexique", ["Q114"]="Kenya", ["Q115"]="Éthiopie", ["Q142"]="France",
["Q145"]="Royaume-Uni", ["Q148"]="Chine", ["Q155"]="Brésil", ["Q159"]="Russie",
["Q183"]="Allemagne", ["Q184"]="Biélorussie", ["Q211"]="Lettonie",["Q212"]="Ukraine",["Q213"]="République tchèque",
['Q214']='Slovaquie', ["Q215"]="Slovénie",["Q218"]="Roumanie",["Q219"]="Bulgarie",
["Q222"]="Albanie", ["Q227"]="Azerbaijan",["Q232"]="Kazakhstan", ["Q241"]="Cuba",["Q252"]="Indonésie",["Q258"]="Afrique du Sud",
["Q262"]="Algérie", ["Q265"]="Ouzbekistan",["Q298"]="Chili",["Q334"]="Singapour",["Q403"]="Serbie",
["Q408"]="Australie", ["Q414"]="Argentine", ["Q664"]="Nouvelle-Zélande", ["Q717"]="Venezuela",
["Q736"]="Équateur",["Q739"]="Colombie",["Q750"]="Bolivie",["Q794"]="Iran",["Q800"]="Costa Rica",
["Q801"]="Israël",["Q833"]="Malaisie",["Q846"]="Qatar",["Q865"]="Taïwan",["Q869 "]="Thaïlande",
["Q884"]="Corée du Sud", ["Q928 "]="Philippines",["Q948"]="Tunisie",
["Q986"]="Érythrée", ["Q1028"]="Maroc", ["Q1037"]="Rwanda", ["Q29999"]="Pays-Bas",
["Q8646"]="Hong Kong", ["Q48663"]="UCI", ["Q3639"]="ьъы"
}
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