Module:CS1 translator/data: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
--[[--------------------------< P A R A M S _ M A PI N _ T >------------------------------------------------------
 
tables of k/v pairs where k is the non-English parameter name and v is the directly translatable cs1|2 equivalent
Line 12:
]]
 
local params_map_tparams_main_t = {
da = { -- Danish from :da:Modul:Citation/CS1/Whitelist
['hentningsdato'] = nil, -- access-date
Line 1,840:
 
 
--[[--------------------------< DP A TR EA _M PS A_ RD A MT E S _ T >----------------------------------------------------
 
<date_params_t> is a k/v_t table where k is the ISO 639-1 language code and v_t is a k/v_t table where k identifies
Line 1,846:
 
non-English parameter names are normalized to lowercase.
 
TODO: move to a data module with data from other translatable citation templates
 
]]
 
local date_params_tparams_dates_t = {
da = { -- Danish
date_t = {'dato', 'datum', 'dag'},
Line 1,936 ⟶ 1,934:
 
 
--[[--------------------------< P A R A M S _ M I S C _ D A T E S _ T >------------------------------------------------------
 
German other date-holding parameters that are not |date= or |year=
 
All key values (German parameter names) normalized to lowercase.
 
TODO: move to a data module with data from other translatable citation templates
 
]]
 
local misc_dates_tparams_misc_dates_t = {
da = { -- Danish
['accessdate'] = 'access-date',
Line 2,110 ⟶ 2,106:
 
 
--[[--------------------------< P A R A M S _ I D E N T I F I E R S _ X X _ T >----------------------------------------------
 
miscellaneous identifiers that, at en.wiki, are grouped together in |id=
Line 2,121 ⟶ 2,117:
parameter names are normalized to lowercase.
 
TODO: move to a data module with data from other translatable citation templates
 
]]
 
local identifiers_tparams_identifiers_t = { -- identifier parameters (|ID=, |URN=, etc) and their associated labels for inclusion in |id=
de = { -- German
{'id'}, -- |id= does not get a label so nil
Line 2,150 ⟶ 2,144:
{'libris', '[[LIBRIS]]', 'http://libris.kb.se/bib/'},
},
}
 
 
--[[--------------------------< P A R A M S _ L A N G U A G E _ T >--------------------------------------------
 
table of sequence tables of language parameter names
 
]]
 
local params_language_t = {
da = {'sprog', 'på', 'språk', 'langue', 'lang'}, -- Danish
de = {'originalsprache', 'sprache'}, -- German
es = {'idioma', 'language'}, -- Spanish
fi = {'kieli', 'language'}, -- Finnish
fr = {'langue', 'language'}, -- French
it = {'lingua'}, -- Italian
nb = {'på', 'språk'}, -- Norwegian
nl = {'språk', 'language'}, -- Dutch
ru = {'язык'}, -- Russian
sv = {'språk', 'language'}, -- Swedish
tr = {'dil', 'language'}, -- Turkish
}
 
Line 2,157 ⟶ 2,172:
 
return {
params_dates_t = params_dates_t,
params_map_t = params_map_t,
params_identifiers_t = params_identifiers_t,
misc_dates_t = misc_dates_t,
params_language_t = params_language_t,
date_params_t = date_params_t,
params_main_t = params_main_t,
identifiers_t = identifiers_t,
params_misc_dates_t = params_misc_dates_t,
}