تضامنًا مع حق الشعب الفلسطيني |
وحدة:Wikidata.Ca/i18n
اذهب إلى التنقل
اذهب إلى البحث
صفحة ترجمة للإعدادات التي نستملها وحدة:Wikidata.Ca. تضم:
- القائمة
i18n["errors"]
لترجمة الرسائل. - القائمة
i18n["datetime"]
for default settings of date formats in local language. For each precision it accepts either:- A placeholder $1 for the value.
- The syntax of parser function #time (see mw:Help:Extension:ParserFunctions##time).
- A function, for complex cases, returning any of the previous formats (see for example the Basque version).
- Input value is a number for precision 0 to 9, and a timestamp with ISO 8601 format for precision 10 and 11 (i.ex. +1582-10-04T00:00:00Z)
- القائمة
i18n["datetime"]["hms"]
for abbreviated hours, minutes and seconds, as in 1h 23m 45shms. It is used with formatting=durationhms.
- القائمة
i18n["years-old"]
for singular and plural expression for age, as 'year old' and 'years old', used by function yearsOld according to PLURAL magic word. It can include up to six values for some languages, from version 20210517. See the documentation of PLURAL magic word in your language, i.e. at m:Help:Magic words#Language-dependent word conversions, mw:Help:Magic words#Localization or translatewiki:Plural/Mediawiki plural rules, more detailed in base rules from CLDR and additional rules for Mediawiki. For example, Slavic languages as Russian use nominative singular, genitive singular and genitive plural; Arabic language use: zero, one, two, few 3-10, many 11-99, other 100-102. Default output format is "$1 ["years-old"]". Table values can include a pattern for formatting, i.e. "($1 years old)". This is used from version 20191204. - القائمة
i18n["cite"]
with parameter names of local templates (Q5637226) and (Q5624899). Those templates are used with optionreferences=
of functionclaim
. - Variable
i18n["addpencil"]
(true/false) habilitates the pencil icon linked to corresponding Wikidata statement. Planned to overwrite by mw:Wikidata Bridge with a pop-up editing interface. See also parameterediticon
in main module. By default it is false. This is used from version 20200129. If enabled with templates using prior versions of the module, check first that templates are not broken. See Module:Wikidata/addpencil/en/ús for some tips. - Variable
i18n["categorylabels"]
: category title populated with pages that have labels not found in the local language. By default it is void with no categorization. This is used from version 20200210. - Variable
i18n["categoryprop"]
: tracking categories of pages by property used. Value $1 is the Pid used. If void then no category is added. This is used from version 20200810. - Variable
i18n["categoryref"]
: category title populated with pages that use references from Wikidata. By default it is void with no categorization. This is used from version 20210304. - Table
i18n["addfallback"]
for additional fallback language codes added to default fallbacks defined in MediaWiki for the local language. Wikidata's labels are fetched by default in local language, its default fallback languages and the additional ones. Check default fallback languages defined in MediaWiki previewing{{#invoke:Wikidata.Ca/debug|getFallbacks|<code>}}
. Please, avoid duplicating language codes. By default it is an empty table {}. This is used from version 20200303. - القائمة
i18n["suppressids"]
: list of Qids, comma separated, with values to be suppressed. For example, {'Q22282939'} will suppress (Q22282939) in all queries. By default it is an empty table {}. Statement definition «no value» is not any Qid, for this case see parametershownovalue
. - Variable
i18n["qidlabels"]
: (true/false) shows labels with numerical identifier Qid if no translation is found in local language or fallback languages. True by default, false optional. - القائمة
cases
for changes in labels needed in local wiki. See parametercase=
of functionclaim
. General purpose cases are:case=infoboxlabel
fix labels in local language to a more suitable form for an infobox (label parameter of infobox template). This is defined at Module:Wikidata.Ca/labels withfunction fixInfoboxLabel
or tableinfoboxlabels
.case=infoboxdata
fix label values in local language to a more suitable form for an infobox (data parameter of infobox template). This is defined at Module:Wikidata.Ca/labels withfunction fixInfoboxData
or tableinfoboxdata
. For example, it can be used for a short alias or abbreviation.
- Genitive, plural and ordinal are examples or other potential grammatical cases that are language dependent. They can be defined here with a simple function or a more complex function calling another module. If necessary ask for help at ca:Module talk:Wikidades.
-- Translate and set up for your language
-- Please contact [[:ca:Module talk:Wikidades]] if you need any help
local i18n = {
["errors"] = {
["property-not-found"] = "الخاصية مفقودة.",
["qualifier-not-found"] = "التصفية مفقودة.",
},
["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 "ق.م"', -- how print negative years
["ad"] = "$1", -- how print 1st century AD dates
[0] = "$1 مليار سنة", -- precision: billion years
[1] = "$100 مليون سنة", -- precision: hundred million years
[2] = "$10 مليون سنة", -- precision: ten million years
[3] = "$1 مليون سنة", -- precision: million years
[4] = "$100000 سنة", -- precision: hundred thousand years; thousand separators added afterwards
[5] = "$10000 سنة", -- precision: ten thousand years; thousand separators added afterwards
[6] = "$1 ألفية", -- precision: millennium
[7] = " القرن $1", -- precision: century
[8] = "عقد $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"] = { -- in Arabic {"zero", "one", "two", "few 3-10", "many 11-99", "other 100-102"}
"أقل من سنة",
"سنة",
"سنتان",
"$1 سنوات",
"$1 سنة",
"$1 سنة"
},
["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"] = 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"] = "تصنيف:صفحات تستخدم خاصية $1", -- Category:Pages using Wikidata property $1
["categoryref"] = "تصنيف:صفحات بها مراجع ويكي بيانات", -- Category:Pages with references from Wikidata
["addfallback"] = {'fa','fr', 'it', 'es', 'de', 'pt'}, -- additional fallback language codes, i.e. {'sv', 'de'}
["suppressids"] = { -- list of Qid values to suppress,
'Q22282939' -- for no 'linguistic content'
},
["qidlabels"] = false -- show labels as Qid if no fallback translation is available (default true)
}
-- Functions for local grammatical cases (as ordinal) and local fixes (if used)
local cases = {
-- local fixes
-- ["infoboxlabel"] = function(word) return require("Module:Wikidades/labels").fixInfoboxLabel(word) end,
-- ["infoboxdata"] = function(word) return require("Module:Wikidades/labels").fixInfoboxData(word) end,
-- other local cases
}
return {
i18n = i18n,
cases = cases
}