aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2015-01-21 20:58:26 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-01-21 22:33:19 +1000
commita28055f8fd8b09d1256c1da3c174b427f7b0c514 (patch)
treeb7a893a44006bf963719ca63cb4b272531340e3e /builtin
parenta6dd6199385fccd0659232b3a4425e9d125c297c (diff)
downloadminetest-a28055f8fd8b09d1256c1da3c174b427f7b0c514.tar.gz
minetest-a28055f8fd8b09d1256c1da3c174b427f7b0c514.tar.bz2
minetest-a28055f8fd8b09d1256c1da3c174b427f7b0c514.zip
Allow filter and mipmap drop down menues to be translated
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_settings.lua28
1 files changed, 20 insertions, 8 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua
index fef08df6e..881a63498 100644
--- a/builtin/mainmenu/tab_settings.lua
+++ b/builtin/mainmenu/tab_settings.lua
@@ -17,13 +17,25 @@
--------------------------------------------------------------------------------
+local dd_filter_labels = {
+ fgettext("No Filter"),
+ fgettext("Bilinear Filter"),
+ fgettext("Trilinear Filter")
+}
+
local filters = {
- {"No Filter,Bilinear Filter,Trilinear Filter"},
+ {dd_filter_labels[1]..","..dd_filter_labels[2]..","..dd_filter_labels[3]},
{"", "bilinear_filter", "trilinear_filter"},
}
+local dd_mipmap_labels = {
+ fgettext("No Mipmap"),
+ fgettext("Mipmap"),
+ fgettext("Mipmap + Aniso. Filter")
+}
+
local mipmap = {
- {"No Mipmap,Mipmap,Mipmap + Aniso. Filter"},
+ {dd_mipmap_labels[1]..","..dd_mipmap_labels[2]..","..dd_mipmap_labels[3]},
{"", "mip_map", "anisotropic_filter"},
}
@@ -347,32 +359,32 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
video_driver_fname_to_name(fields["dd_video_driver"]))
ddhandled = true
end
- if fields["dd_filters"] == "No Filter" then
+ if fields["dd_filters"] == dd_filter_labels[1] then
core.setting_set("bilinear_filter", "false")
core.setting_set("trilinear_filter", "false")
ddhandled = true
end
- if fields["dd_filters"] == "Bilinear Filter" then
+ if fields["dd_filters"] == dd_filter_labels[2] then
core.setting_set("bilinear_filter", "true")
core.setting_set("trilinear_filter", "false")
ddhandled = true
end
- if fields["dd_filters"] == "Trilinear Filter" then
+ if fields["dd_filters"] == dd_filter_labels[3] then
core.setting_set("bilinear_filter", "false")
core.setting_set("trilinear_filter", "true")
ddhandled = true
end
- if fields["dd_mipmap"] == "No Mipmap" then
+ if fields["dd_mipmap"] == dd_mipmap_labels[1] then
core.setting_set("mip_map", "false")
core.setting_set("anisotropic_filter", "false")
ddhandled = true
end
- if fields["dd_mipmap"] == "Mipmap" then
+ if fields["dd_mipmap"] == dd_mipmap_labels[2] then
core.setting_set("mip_map", "true")
core.setting_set("anisotropic_filter", "false")
ddhandled = true
end
- if fields["dd_mipmap"] == "Mipmap + Aniso. Filter" then
+ if fields["dd_mipmap"] == dd_mipmap_labels[3] then
core.setting_set("mip_map", "true")
core.setting_set("anisotropic_filter", "true")
ddhandled = true