Moodul:Wikidata2/i18n
Selle mooduli dokumentatsiooni saab kirjutada asukohta Moodul:Wikidata2/i18n/doc.
local i18n = {
["errors"] = {
["property-not-found"] = "Propietat no trobada.",
["qualifier-not-found"] = "Qualificador no trobat.",
['not-from-content-page'] = "No invoqueu Wikidata directament en un article. Useu una plantilla o bé Wikidata/proves."
},
["datetime"] =
{
-- $1 is a placeholder for the actual number
[0] = "$1 mil milions d'anys", -- precision: billion years
[1] = "$100 milions d'anys", -- precision: hundred million years
[2] = "$10 milions d'anys", -- precision: ten million years
[3] = "$1 milions d'anys", -- precision: million years
[4] = "$100000 anys", -- precision: hundred thousand years
[5] = "$10000 anys", -- precision: ten thousand years
[8] = "dècada del $1", -- precision: decade
-- the following use the format of #time parser function
[6] = 'xrY "mil·lenni"', -- precision: millennium
[7] = '"segle" xrY', -- precision: century
[9] = "Y", -- precision: year
[10] = "F Y", -- precision: month
[11] = function(ts) return mw.ustring.match(ts, "\-(%d+)T") == "01" and 'j"r" F Y' or "j F Y" end, -- precision: day
[12] = "j F Y ga", -- precision: hour
[13] = "j F Y g:ia", -- precision: minute
[14] = "j F Y g:i:sa", -- precision: second
["beforenow"] = "fa $1", -- how to format negative numbers for precisions 0 to 5
["afternow"] = "d'aquí $1", -- how to format positive numbers for precisions 0 to 5
["bc"] = '$1 aC', -- how print negative years
["ad"] = "$1", -- how print positive years
["bc-addon"] = " aC", -- suffix for negative dates
["ad-addon"] = " dC", -- suffix for 1st century AD dates
},
["monolingualtext"] = '<span lang="%language">%text</span>',
["module_planetsData"] = 'Module:Mapa cos celeste/dades',
["cite"] = { -- Cite web parameters
["url"] = "url",
["title"] = "pealkiri",
["website"] = "obra",
["access-date"] = "consulta",
["archive-url"] = "arxiuurl",
["archive-date"] = "arxiudata",
["author"] = "autor",
["publisher"] = "editor",
["quote"] = "citació",
["language"] = "keel",
["date"] = "data",
["pages"] = "lehekülg"
}
}
-- Functions for local grammatical cases
local cases = {
["infoboxlabel"] = function(word) return require("Module:Wikidata/labels").fixInfoboxLabel(word) end,
["infoboxdata"] = function(word) return require("Module:Wikidata/labels").fixInfoboxData(word) end,
["smallcaps"] = function(word) return '<span style="font-variant: small-caps;">' .. word .. '</span>' end,
-- plurals with rules in Catalan
["plural"] = function(word, lang) if lang == nil or lang == "ca" then return require("Module:ca-flexió").plural(word) end return word end
}
return {
i18n = i18n,
cases = cases
}