diff options
author | Wuzzy <wuzzy2@mail.ru> | 2019-01-20 19:49:17 +0100 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2019-01-20 18:49:17 +0000 |
commit | df6670b28a2f4e1f6094b617a25792a70400b66d (patch) | |
tree | 3e18c5b42de5e1ab219fbab907c9d93525803cad /builtin/mainmenu/dlg_settings_advanced.lua | |
parent | 9512c2986e2d5b8388860a51cce2a75f37e67bf6 (diff) | |
download | minetest-df6670b28a2f4e1f6094b617a25792a70400b66d.tar.gz minetest-df6670b28a2f4e1f6094b617a25792a70400b66d.tar.bz2 minetest-df6670b28a2f4e1f6094b617a25792a70400b66d.zip |
Make advanced settings noiseparams strings translatable (#8062)
Various minor language improvements in settingtypes.txt.
Diffstat (limited to 'builtin/mainmenu/dlg_settings_advanced.lua')
-rw-r--r-- | builtin/mainmenu/dlg_settings_advanced.lua | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/builtin/mainmenu/dlg_settings_advanced.lua b/builtin/mainmenu/dlg_settings_advanced.lua index ea0134580..cbeb6fee2 100644 --- a/builtin/mainmenu/dlg_settings_advanced.lua +++ b/builtin/mainmenu/dlg_settings_advanced.lua @@ -599,25 +599,26 @@ local function create_change_setting_formspec(dialogdata) end -- First row height = height + 0.3 - add_field(0.3, "te_offset", "Offset", t[1]) - add_field(3.6, "te_scale", "Scale", t[2]) - add_field(6.9, "te_seed", "Seed", t[6]) + add_field(0.3, "te_offset", fgettext("Offset"), t[1]) + add_field(3.6, "te_scale", fgettext("Scale"), t[2]) + add_field(6.9, "te_seed", fgettext("Seed"), t[6]) height = height + 1.1 -- Second row - add_field(0.3, "te_spreadx", "X spread", t[3]) + add_field(0.3, "te_spreadx", fgettext("X spread"), t[3]) if dimension == 3 then - add_field(3.6, "te_spready", "Y spread", t[4]) + add_field(3.6, "te_spready", fgettext("Y spread"), t[4]) else - fields[#fields + 1] = "label[4," .. height - 0.2 .. ";2D Noise]" + fields[#fields + 1] = "label[4," .. height - 0.2 .. ";" .. + fgettext("2D Noise") .. "]" end - add_field(6.9, "te_spreadz", "Z spread", t[5]) + add_field(6.9, "te_spreadz", fgettext("Z spread"), t[5]) height = height + 1.1 -- Third row - add_field(0.3, "te_octaves", "Octaves", t[7]) - add_field(3.6, "te_persist", "Persistance", t[8]) - add_field(6.9, "te_lacun", "Lacunarity", t[9]) + add_field(0.3, "te_octaves", fgettext("Octaves"), t[7]) + add_field(3.6, "te_persist", fgettext("Persistance"), t[8]) + add_field(6.9, "te_lacun", fgettext("Lacunarity"), t[9]) height = height + 1.1 @@ -634,11 +635,14 @@ local function create_change_setting_formspec(dialogdata) end -- Flags formspec = table.concat(fields) - .. "checkbox[0.5," .. height - 0.6 .. ";cb_defaults;defaults;" -- defaults + .. "checkbox[0.5," .. height - 0.6 .. ";cb_defaults;" + .. fgettext("defaults") .. ";" -- defaults .. tostring(flags["defaults"] == true) .. "]" -- to get false if nil - .. "checkbox[5," .. height - 0.6 .. ";cb_eased;eased;" -- eased + .. "checkbox[5," .. height - 0.6 .. ";cb_eased;" + .. fgettext("eased") .. ";" -- eased .. tostring(flags["eased"] == true) .. "]" - .. "checkbox[5," .. height - 0.15 .. ";cb_absvalue;absvalue;" -- absvalue + .. "checkbox[5," .. height - 0.15 .. ";cb_absvalue;" + .. fgettext("absvalue") .. ";" -- absvalue .. tostring(flags["absvalue"] == true) .. "]" height = height + 1 @@ -651,11 +655,14 @@ local function create_change_setting_formspec(dialogdata) height = height + 0.3 formspec = formspec - .. "field[0.3," .. height .. ";3.3,1;te_x;X;" -- X + .. "field[0.3," .. height .. ";3.3,1;te_x;" + .. fgettext("X") .. ";" -- X .. core.formspec_escape(v3f[1] or "") .. "]" - .. "field[3.6," .. height .. ";3.3,1;te_y;Y;" -- Y + .. "field[3.6," .. height .. ";3.3,1;te_y;" + .. fgettext("Y") .. ";" -- Y .. core.formspec_escape(v3f[2] or "") .. "]" - .. "field[6.9," .. height .. ";3.3,1;te_z;Z;" -- Z + .. "field[6.9," .. height .. ";3.3,1;te_z;" + .. fgettext("Z") .. ";" -- Z .. core.formspec_escape(v3f[3] or "") .. "]" height = height + 1.1 |