Modul:WikidataIB/i18n: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
(Ny side: local cdate -- initialise as nil and only load _complex_date function if needed -- Module:Complex date is loaded lazily and has the following dependencies: -- Module:I18n/complex dat…)
 
(oversetter)
Linje 1: Linje 1:

local cdate -- initialise as nil and only load _complex_date function if needed
-- [[Module:Complex date]] is loaded lazily and has the following dependencies:
-- Module:I18n/complex date, Module:ISOdate, Module:DateI18n (alternative for Module:Date),
-- Module:Formatnum, Module:I18n/date, Module:Yesno, Module:Linguistic, Module:Calendar
-- The following, taken from https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times,
-- is needed to use Module:Complex date which seemingly requires date precision as a string.
-- It would work better if only the authors of the mediawiki page could spell 'millennium'.
local dp = {
local dp = {
[6] = "millennium",
[6] = "millennium",
Linje 35: Linje 29:
["months"] =
["months"] =
{
{
"January", "February", "March", "April", "May", "June",
"Januar", "Februar", "Mars", "April", "Mai", "Juni",
"July", "August", "September", "October", "November", "December"
"Juli", "August", "September", "Oktober", "November", "Desember"
},
},
["century"] = "century",
["century"] = "århundre",
["BC"] = "BC",
["BC"] = "f.Kr",
["BCE"] = "BCE",
["BCE"] = "f.Kr",
["ordinal"] =
["ordinal"] =
{
{
[1] = "st",
["default"] = "."
[2] = "nd",
[3] = "rd",
["default"] = "th"
},
},
["filespace"] = "File",
["filespace"] = "Fil",
["Unknown"] = "Unknown",
["Unknown"] = "Ukjent",
["NaN"] = "Not a number",
["NaN"] = "Ikke et nummer",
-- set the following to the name of a tracking category,
-- set the following to the name of a tracking category,
-- e.g. "[[Category:Articles with missing Wikidata information]]", or "" to disable:
-- e.g. "[[Category:Articles with missing Wikidata information]]", or "" to disable:
["missinginfocat"] = "[[Category:Articles with missing Wikidata information]]",
["missinginfocat"] = "[[Category:Articles with missing Wikidata information]]",
["editonwikidata"] = "Edit this on Wikidata",
["editonwikidata"] = "Rediger Wikidata",
["latestdatequalifier"] = function (date) return "before " .. date end,
["latestdatequalifier"] = function (date) return "before " .. date end,
-- some languages, e.g. Bosnian use a period as a suffix after each number in a date
-- some languages, e.g. Bosnian use a period as a suffix after each number in a date
Linje 61: Linje 52:
["multipliers"] = {
["multipliers"] = {
[0] = "",
[0] = "",
[3] = " thousand",
[3] = " tusen",
[6] = " million",
[6] = " million",
[9] = " billion",
[9] = " billion",

Sideversjonen fra 1. jun. 2020 kl. 22:52

Dokumentasjon for denne modulen kan opprettes på Modul:WikidataIB/i18n/dok


local dp = {
	[6] = "millennium",
	[7] = "century",
	[8] = "decade",
	[9] = "year",
	[10] = "month",
	[11] = "day",
}

local i18n =
{
	["errors"] =
	{
		["property-not-found"] = "Property not found.",
		["No property supplied"] = "No property supplied",
		["entity-not-found"] = "Wikidata entity not found.",
		["unknown-claim-type"] = "Unknown claim type.",
		["unknown-entity-type"] = "Unknown entity type.",
		["qualifier-not-found"] = "Qualifier not found.",
		["site-not-found"] = "Wikimedia project not found.",
		["labels-not-found"] = "No labels found.",
		["descriptions-not-found"] = "No descriptions found.",
		["aliases-not-found"] = "No aliases found.",
		["unknown-datetime-format"] = "Unknown datetime format.",
		["local-article-not-found"] = "Article is available on Wikidata, but not on Wikipedia",
		["dab-page"] = " (dab)",
	},
	["months"] =
	{
		"Januar", "Februar", "Mars", "April", "Mai", "Juni",
		"Juli", "August", "September", "Oktober", "November", "Desember"
	},
	["century"] = "århundre",
	["BC"] = "f.Kr",
	["BCE"] = "f.Kr",
	["ordinal"] =
	{
		["default"] = "."
	},
	["filespace"] = "Fil",
	["Unknown"] = "Ukjent",
	["NaN"] = "Ikke et nummer",
	-- set the following to the name of a tracking category,
	-- e.g. "[[Category:Articles with missing Wikidata information]]", or "" to disable:
	["missinginfocat"] = "[[Category:Articles with missing Wikidata information]]",
	["editonwikidata"] = "Rediger på Wikidata",
	["latestdatequalifier"] = function (date) return "before " .. date end,
	-- some languages, e.g. Bosnian use a period as a suffix after each number in a date
	["datenumbersuffix"] = "",
	["list separator"] = ", ",
	["multipliers"] = {
		[0]  = "",
		[3]  = " tusen",
		[6]  = " million",
		[9]  = " billion",
		[12] = " trillion",
	}
}