summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-10-30 20:46:25 +0100
committerWuzzy <almikes@aol.com>2016-10-30 20:46:25 +0100
commit19c272bce505b394413a4ee0396ca028324fc48f (patch)
tree2ee10f3fd9fc044b6f8008484572374d5d708040
parent1924155d11f324ed11b04212c00e1d59a70dd638 (diff)
Add entry ID to nameless entry info
-rw-r--r--init.lua4
-rw-r--r--locale/de.txt2
-rw-r--r--locale/template.txt2
3 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 1071db4..b4f4660 100644
--- a/init.lua
+++ b/init.lua
@@ -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)
diff --git a/locale/de.txt b/locale/de.txt
index 73d9717..2f0524e 100644
--- a/locale/de.txt
+++ b/locale/de.txt
@@ -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.
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.
-(Nameless entry) = (Namenloser Eintrag)
+Nameless entry (%s) = Namenloser Eintrag (%s)
diff --git a/locale/template.txt b/locale/template.txt
index 15fed74..4862725 100644
--- a/locale/template.txt
+++ b/locale/template.txt
@@ -31,4 +31,4 @@ This category is empty. =
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 an entry yet. Please choose one in the entry list first. =
-(Nameless entry) =
+Nameless entry (%s) =