diff options
| author | sfan5 <sfan5@live.de> | 2022-12-04 12:35:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-04 12:35:28 +0100 |
| commit | 504e43e0dae50ad98e19db0649c9c825cf2ab7a7 (patch) | |
| tree | a2d7a22e8609571a564a40e6c7bbcf76e8d81bf9 /builtin/mainmenu | |
| parent | 37386b9c3cfc6746734f8c00fa99a44a63b8aeed (diff) | |
| download | minetest-504e43e0dae50ad98e19db0649c9c825cf2ab7a7.tar.xz | |
Remove Irrlicht documentation URL from key settings (#13010)
Diffstat (limited to 'builtin/mainmenu')
| -rw-r--r-- | builtin/mainmenu/generate_from_settingtypes.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/builtin/mainmenu/generate_from_settingtypes.lua b/builtin/mainmenu/generate_from_settingtypes.lua index 0f551fbb1..79bc94c51 100644 --- a/builtin/mainmenu/generate_from_settingtypes.lua +++ b/builtin/mainmenu/generate_from_settingtypes.lua @@ -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)) |
