Módulu:Wikidata/i18n

De Wikipedia
Saltar a navegación Saltar a la gueta

La documentación pa esti módulu pue crease'n Módulu:Wikidata/i18n/usu

local i18n = {
	["errors"] = {
		["property-not-found"] = "Nun s'alcontró la propiedá.",
		["entity-not-found"] = "Nun s'alcontró la entidá.",
		["unknown-claim-type"] = "Triba d'afirmación (claim) desconocida.",
		["unknown-entity-type"] = "Triba d'entidá desconocida.",
		["qualifier-not-found"] = "Nun s'alcontró el cualificador.",
		["site-not-found"] = "Nun s'alcontró el proyeutu de Wikimedia.",
		["unknown-datetime-format"] = "Formatu de data/hora desconocíu.",
		["local-article-not-found"] = "L'artículu inda nun ta disponible nesta wiki",
		['not-from-content-page'] = "Nun invoques a Wikidata direutamente nun artículu. Usa una plantía o Wikidata/pruebes."
	},
	["datetime"] =
	{
		-- $1 is a placeholder for the actual number
		[0] = "$1 mil millones d'años",	-- precision: billion years
		[1] = "$100 millones d'años",	-- precision: hundred million years
		[2] = "$10 millones d'años",		-- precision: ten million years
		[3] = "$1 millones d'años",		-- precision: million years
		[4] = "$100.000 años",			-- precision: hundred thousand years
		[5] = "$10.000 años",			-- precision: ten thousand years
		[8] = "década del $1",			-- precision: decade
		-- the following use the format of #time parser function
		[6] = 'xrY "mileniu"',		-- precision: millennium
		[7] = '"sieglu" xrY',			-- precision: century
		[9]  = "Y",						-- precision: year
		[10] = "F Y",					-- precision: month
		[11] = "j F Y",					-- 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"] = "hai $1",		-- how to format negative numbers for precisions 0 to 5
		["afternow"] = "d'equí a $1",	-- how to format positive numbers for precisions 0 to 5
		["bc"] = '$1 e. C.',		-- how print negative years
		["ad"] = "$1",					-- how print positive years
		["bc-addon"] = " e. C.",	-- suffix for negative dates
		["ad-addon"] = "",		    	-- suffix for 1st century AD dates
	},
	["monolingualtext"] = '<span lang="%language">%text</span>',
	["warnDump"] = "[[Categoria:Función Dump del módulu Wikidata]]"
}

-- 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").infoboxdata[word] or word end,
	["smallcaps"] = function(word) return '<span style="font-variant: small-caps;">' .. word .. '</span>' end,
	-- case gender and item is female
	["feminine"] = function(word, lang) if lang == nil or lang == "ast" then return require("Module:ast-flexón").fem(word) end return word end,
	-- case infoboxlabel and itemgender is female
	["labelfeminine"] = function(word, lang) if lang == nil or lang == "ast" then return require("Module:Wikidata/labels").fixInfoboxLabel(require("Module:ast-flexón").fem(word)) end return word end
}

return {
	i18n = i18n,
	cases = cases
}