error message to cfg.i18n_t.errors.missing_name
This commit is contained in:
parent
31303f54ab
commit
b45a3cba82
2 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ local _getPropOfProp = wdib._getPropOfProp
|
|||
local followQid = wdib._followQid
|
||||
--local getPropertyIDs = wdib._getPropertyIDs
|
||||
local cite_cfg = mw.loadData ('Module:Cite/config')
|
||||
local cfg = mw.loadData ('Module:Cite_Q/config')
|
||||
local cfg = mw.loadData ('Module:Cite Q/config')
|
||||
local cs1_module = 'Module:Citation/CS1' -- don't load the module yet, may not be needed
|
||||
local cs1_cfg = mw.loadData('Module:Citation/CS1/Configuration')
|
||||
local opt_cat = {}
|
||||
|
|
@ -865,7 +865,7 @@ local function _cite_q (citeq_args)
|
|||
if author.qid then
|
||||
-- ignore anonymous or non-humans
|
||||
if author.human then
|
||||
table.insert(missing_names, author.label .. " <span title='edit author in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:" .. author.qid .. "]] ]]</span>")
|
||||
table.insert(missing_names, string.format (cfg.i18n_t.errors.missing_name, author.label, 'author', author.qid));
|
||||
end
|
||||
else
|
||||
table.insert(missing_names, author.label)
|
||||
|
|
@ -877,7 +877,7 @@ local function _cite_q (citeq_args)
|
|||
if editor.qid then
|
||||
-- ignore anonymous or non-humans
|
||||
if editor.human then
|
||||
table.insert(missing_names, editor.label .. " <span title='edit editor in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:" .. editor.qid .. "]] ]]</span>")
|
||||
table.insert(missing_names, string.format (cfg.i18n_t.errors.missing_name, editor.label, 'editor', editor.qid));
|
||||
end
|
||||
else
|
||||
table.insert(missing_names, editor.label)
|
||||
|
|
@ -889,7 +889,7 @@ local function _cite_q (citeq_args)
|
|||
if translator.qid then
|
||||
-- ignore anonymous or non-humans
|
||||
if translator.human then
|
||||
table.insert(missing_names, translator.label .. " <span title='edit translator in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:" .. translator.qid .. "]] ]]</span>")
|
||||
table.insert(missing_names, string.format (cfg.i18n_t.errors.missing_name, translator.label, 'translator', translator.qid));
|
||||
end
|
||||
else
|
||||
table.insert(missing_names, translator.label)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ local i18n_t = {
|
|||
["errors"] = {
|
||||
["local-article-not-found"] = "Local article not found.",
|
||||
["no-label-or-title"] = "No label or title -- debug: ",
|
||||
missing_name = '%s <span title="edit %s in Wikidata">[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:%s]] ]]</span>'; -- %s: <name>.label, '<name>', <name>.qid
|
||||
},
|
||||
["months"] = {
|
||||
"January", "February", "March", "April", "May", "June",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue