Módulo:Wikidades/i18n
Aparencia
[ máis información | ver o historial | | | ver as instrucións ]
Aínda non se redactaron as instrucións sobre como usar este módulo.
[ máis información | ver o historial | | | ver as instrucións ]
Os editores poden probar cambios no mesmo en Módulo:Wikidades/i18n/probas.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste módulo.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste módulo.
local i18n = {
["errors"] = {
["property-not-found"] = "Propiedade non atopada.",
["qualifier-not-found"] = "Cualificador non atopado.",
},
["datetime"] =
{
-- $1 is a placeholder for the actual number, or use the format of #time parser function
["beforenow"] = "hai $1", -- how to format negative numbers for precisions 0 to 5
["afternow"] = "de aquí $1", -- how to format positive numbers for precisions 0 to 5
["bc"] = '$1 a. C.', -- how print negative years
["ad"] = "$1", -- how print 1st century AD date
[0] = "$1 mil millóns de anos", -- precision: billion years
[1] = "$100 millóns de anos", -- precision: hundred million years
[2] = "$10 millóns de anos", -- precision: ten million years
[3] = "$1 millóns de anos", -- precision: million years
[4] = "$100000 anos", -- precision: hundred thousand years; thousand separators added afterwards
[5] = "$10000 anos", -- precision: ten thousand years; thousand separators added afterwards
[6] = 'xrY "milenio"', -- precision: millennium
[7] = '"século" xrY', -- precision: century
[8] = "década de $1", -- precision: decade
[9] = "Y", -- precision: year
[10] = 'F "de" Y', -- precision: month
[11] = 'j "de" F "de" Y', -- precision: day
["hms"] = {["hours"] = "h", ["minutes"] = "m", ["seconds"] = "s"}, -- duration: xh xm xs
},
["years-old"] = {"($1 ano)", "($1 anos)"}, -- year(s) old, as in {{PLURAL:$1|singular|plural}}
["cite"] = { -- cite parameters of local templates
["title"] = "título",
["author"] = "autor",
["date"] = "data",
["pages"] = "páxina",
["language"] = "lingua",
-- cite web parameters
["url"] = "url",
["website"] = "obra",
["access-date"] = "consulta",
["archive-url"] = "arquivourl",
["archive-date"]= "arquivodata",
["publisher"] = "editor",
["quote"] = "cita",
-- cite journal parameters
["work"] = "work",
["issue"] = "issue",
["issn"] = "issn",
["doi"] = "doi"
},
-- local wiki settings
["addpencil"] = true, -- adds a pencil icon linked to Wikidata statement, planned to overwrite by Wikidata Bridge
["categorylabels"] = "", -- Category:Pages with Wikidata labels not translated (void for no local category)
["categoryprop"] = "", -- Category:Pages using Wikidata property $1 (void for no local category)
["categoryref"] = "", -- Category:Pages with references from Wikidata (void for no local category)
["addfallback"] = {}, -- additional fallback language codes, i.e. {'sv', 'de'}
["suppressids"] = {}, -- list of Qid values to suppress, i.e. {'Q22282939'} for no linguistic content
["qidlabels"] = true -- show labels as Qid if no fallback translation is available (true or false)
}
-- Functions for local fixes and local grammatical cases
local cases = {
-- general
["fraction"] = function(value) return require("Module:Wikidades/Units").fraction1(value) end,
-- local fixes
["infoboxlabel"] = function(word) return require("Module:Wikidades/labels").fixInfoboxLabel(word, "adm") end,
["infoboxlabelplain"] = function(word) return require("Module:Wikidades/labels").fixInfoboxLabel(word, "plain") end,
["infoboxdata"] = function(word) return require("Module:Wikidades/labels").infoboxdata[word] or word end,
-- naming locations with a referent
-- arg[1]=actual lang, arg[2]=requested lang, arg[3]=location Qid, arg[4]=article Qid
["location"] = function(label, ...) return require("Module:Location_Wikidades").naming(label, arg[2], arg[3]) end,
["locationcontext"] = function(label, ...) return require("Module:Location_Wikidades").naming(label, arg[2], arg[3], arg[4]) end,
-- local grammatical cases
["plural"] = function(word, ...) if arg[1] == "gl" then return require("Module:gl-flexión").plural(word) end return word end,
["ordinal"] = function(number, ...) if arg[1] == "gl" then return require("Module:gl-flexión").ordinal(number, arg[2]) end return number end,
}
return {
i18n = i18n,
cases = cases
}