Add entry ID to nameless entry info
This commit is contained in:
parent
1924155d11
commit
19c272bce5
4
init.lua
4
init.lua
@ -552,7 +552,7 @@ function doc.generate_entry_list(cid, playername)
|
|||||||
local viewedprefix = "#00FFFF"
|
local viewedprefix = "#00FFFF"
|
||||||
local name = edata.name
|
local name = edata.name
|
||||||
if name == nil or name == "" then
|
if name == nil or name == "" then
|
||||||
name = S("(Nameless entry)")
|
name = string.format(S("Nameless entry (%s)"), eid)
|
||||||
if doc.entry_viewed(playername, cid, eid) then
|
if doc.entry_viewed(playername, cid, eid) then
|
||||||
viewedprefix = "#FF4444"
|
viewedprefix = "#FF4444"
|
||||||
else
|
else
|
||||||
@ -716,7 +716,7 @@ function doc.formspec_entry(category_id, entry_id)
|
|||||||
local entry = doc.get_entry(category_id, entry_id)
|
local entry = doc.get_entry(category_id, entry_id)
|
||||||
local ename = entry.name
|
local ename = entry.name
|
||||||
if ename == nil or ename == "" then
|
if ename == nil or ename == "" then
|
||||||
ename = S("(Nameless entry)")
|
ename = string.format(S("Nameless entry (%s)"), entry_id)
|
||||||
end
|
end
|
||||||
formstring = "label[0,0;"..minetest.formspec_escape(string.format(S("Help > %s > %s"), category.def.name, ename)).."]"
|
formstring = "label[0,0;"..minetest.formspec_escape(string.format(S("Help > %s > %s"), category.def.name, ename)).."]"
|
||||||
formstring = formstring .. category.def.build_formspec(entry.data)
|
formstring = formstring .. category.def.build_formspec(entry.data)
|
||||||
|
@ -31,4 +31,4 @@ This category is empty. = Diese Kategorie ist leer.
|
|||||||
This is the Documentation System, Version %s. = Dies ist das Dokumentationssystem, Version %s.
|
This is the Documentation System, Version %s. = Dies ist das Dokumentationssystem, Version %s.
|
||||||
You haven't chosen a category yet. Please choose one in the category list first. = Sie haben noch keine Kategorie gewählt. Bitte wählen Sie zuerst eine Kategorie in der Kategorienliste aus.
|
You haven't chosen a category yet. Please choose one in the category list first. = Sie haben noch keine Kategorie gewählt. Bitte wählen Sie zuerst eine Kategorie in der Kategorienliste aus.
|
||||||
You haven't chosen an entry yet. Please choose one in the entry list first. = Sie haben noch keinen Eintrag gewählt. Bitte wählen Sie zuerst einen Eintrag in der Eintragsliste aus.
|
You haven't chosen an entry yet. Please choose one in the entry list first. = Sie haben noch keinen Eintrag gewählt. Bitte wählen Sie zuerst einen Eintrag in der Eintragsliste aus.
|
||||||
(Nameless entry) = (Namenloser Eintrag)
|
Nameless entry (%s) = Namenloser Eintrag (%s)
|
||||||
|
@ -31,4 +31,4 @@ This category is empty. =
|
|||||||
This is the Documentation System, Version %s. =
|
This is the Documentation System, Version %s. =
|
||||||
You haven't chosen a category yet. Please choose one in the category list first. =
|
You haven't chosen a category yet. Please choose one in the category list first. =
|
||||||
You haven't chosen an entry yet. Please choose one in the entry list first. =
|
You haven't chosen an entry yet. Please choose one in the entry list first. =
|
||||||
(Nameless entry) =
|
Nameless entry (%s) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user