Module:CS1 translator/data: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 491:
 
-- non-enumerated forms of enumerated parameters; TODO: is there a better way to do this?
-- ['auteur'] = 'author', -- non-enumerated forms
-- ['directeur'] = nil, -- no cs1|2 equivalent; "If the author assumes the responsibility of director of publication, indicate yes; otherwise, do not use this parameter"
-- ['lien auteur'] = 'author-link',
-- ['nom'] = 'last',
-- ['postnom'] = 'last',
-- ['prenom'] = 'first',
-- ['prénom'] = 'first',
-- ['responsabilité'] = nil, -- no cs1|2 equivalent; "Possible additional liability assumed by the author; if he is a publication directeur1, prefer the directeur1 parameter."
 
-- enumerated parameters
Line 2,171:
tr = {'dil', 'language'}, -- Turkish
}
 
 
local function build_params_main_t ()
local out_t = {};
for lang, v_t in pairs (params_main_t) do -- for each language table
for k, v in pairs (v_t) do -- for each parameter in the language table
if k:find ('#', 1, true) then -- does the parmeter have the enumerator character '#'
out_t[lang][k:gsub('#', '')] = v:gsub('#', ''); -- add a non-enumerate version of the parameter to the output
else
out_t[lang][k] = v;
end
end
end
return out_t;
end
 
 
Line 2,180 ⟶ 2,195:
params_identifiers_t = params_identifiers_t,
params_language_t = params_language_t,
params_main_t = build_params_main_t(), --params_main_t,
params_misc_dates_t = params_misc_dates_t,
}