Jump to content

Mòideal:Wikidata/i18n

O Uicipeid

Documentation for this module may be created at Mòideal:Wikidata/i18n/doc

-- Translate and set up for your language

local i18n = {
	["errors"] = {
		["property-not-found"] = "Cha deach a’ bhuadh a lorg.",
		["qualifier-not-found"] = "Cha deach an càilichear a lorg.",
	},
	["datetime"] =
	{
		-- $1 is a placeholder for the actual number, or use the format of #time parser function
		["beforenow"] = "$1 BCE",	-- how to format negative numbers for precisions 0 to 5
		["afternow"] = "$1 CE",		-- how to format positive numbers for precisions 0 to 5
		["bc"] = '$1 BCE',			-- how print negative years
		["ad"] = "$1",				-- how print 1st century AD dates
		
		[0] = "$1 mìle millean de bhliadhnaichean",	-- precision: billion years
		[1] = "$100 millean de bhliadhnaichean",	-- precision: hundred million years
		[2] = "$10 milleanan de bhliadhnaichean",		-- precision: ten million years
		[3] = "$1 mhillean de bhliadhnaichean",		-- precision: million years
		[4] = "$100000 bliadhna",			-- precision: hundred thousand years; thousand separators added afterwards
		[5] = "$10000 bliadhna",			-- precision: ten thousand years; thousand separators added afterwards
		[6] = 'xrY "mìle bliadhna"',		-- precision: millennium
		[7] = '"linn" xrY',			-- precision: century
		[8] = "deichead $1",			-- precision: decade
		[9]  = "Y",						-- precision: year
		[10] = "F Y",					-- precision: month
		[11] = "j F Y",					-- precision: day
		
		["hms"] = {["hours"] = "h", ["minutes"] = "m", ["seconds"] = "s"},	-- duration: xh xm xs
	},
	
	["years-old"] = {
		["singular"] = "$1 year old",	-- year old, as in {{PLURAL:$1|singular|plural}}
		["plural"] = "$1 years old",	-- years old
		["paucal"] = "",				-- for languages with 3 plural forms as in {{PLURAL:$1|singular|paucal|plural}}
	},
	
	["cite"] = {					-- cite parameters of local templates
		["title"] = "title",
		["author"] = "author",
		["date"] = "date",
		["pages"] = "pages",
		["language"] = "language",
		-- cite web parameters
		["url"] = "url",
		["website"] = "website",
		["access-date"] = "access-date",
		["archive-url"] = "archive-url",
		["archive-date"] = "archive-date",
		["publisher"] = "publisher",
		["quote"] = "quote",
		-- cite journal parameters
		["work"] = "work",
		["issue"] = "issue",
		["issn"] = "issn",
		["doi"] = "doi"
	},
	
	-- local wiki settings
	["addpencil"] = false, -- 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)
	["addfallback"] = {} -- additional fallback language codes, i.e. {'sv', 'de'}
}

-- Functions for local grammatical cases (as ordinal) and local fixes (if used)
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,
}

return {
	i18n = i18n,
	cases = cases
}