diff options
author | Wuzzy <almikes@aol.com> | 2016-10-30 20:46:25 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-10-30 20:46:25 +0100 |
commit | 19c272bce505b394413a4ee0396ca028324fc48f (patch) | |
tree | 2ee10f3fd9fc044b6f8008484572374d5d708040 /init.lua | |
parent | 1924155d11f324ed11b04212c00e1d59a70dd638 (diff) |
Add entry ID to nameless entry info
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -552,7 +552,7 @@ function doc.generate_entry_list(cid, playername) local viewedprefix = "#00FFFF" local name = edata.name 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 viewedprefix = "#FF4444" else @@ -716,7 +716,7 @@ function doc.formspec_entry(category_id, entry_id) local entry = doc.get_entry(category_id, entry_id) local ename = entry.name if ename == nil or ename == "" then - ename = S("(Nameless entry)") + ename = string.format(S("Nameless entry (%s)"), entry_id) end 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) |