mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Remove Irrlicht documentation URL from key settings (#13010)
This commit is contained in:
parent
37386b9c3c
commit
504e43e0da
2 changed files with 8 additions and 72 deletions
|
@ -18,7 +18,7 @@ local minetest_example_header = [[
|
|||
# to the program, eg. "minetest.exe --config ../minetest.conf.example".
|
||||
|
||||
# Further documentation:
|
||||
# http://wiki.minetest.net/
|
||||
# https://wiki.minetest.net/
|
||||
|
||||
]]
|
||||
|
||||
|
@ -62,6 +62,10 @@ local function create_minetest_conf_example()
|
|||
end
|
||||
end
|
||||
end
|
||||
if entry.type == "key" then
|
||||
local line = "See https://github.com/minetest/irrlicht/blob/master/include/Keycodes.h"
|
||||
insert(result, "# " .. line .. "\n")
|
||||
end
|
||||
insert(result, "# type: " .. entry.type)
|
||||
if entry.min then
|
||||
insert(result, " min: " .. entry.min)
|
||||
|
@ -109,6 +113,9 @@ local function create_translation_file()
|
|||
for _, entry in ipairs(settings) do
|
||||
if entry.type == "category" then
|
||||
insert(result, sprintf("\tgettext(%q);", entry.name))
|
||||
elseif entry.type == "key" then --luacheck: ignore
|
||||
-- Neither names nor descriptions of keys are used since we have a
|
||||
-- dedicated menu for them.
|
||||
else
|
||||
if entry.readable_name then
|
||||
insert(result, sprintf("\tgettext(%q);", entry.readable_name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue