diff options
author | Rogier <rogier777@gmail.com> | 2016-12-11 20:13:49 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-12-12 07:21:46 +0000 |
commit | c98ae2a91f2a9eb8dad011e71a04fd8ee2c2d767 (patch) | |
tree | 7ce128518551f5e8fe579cfe0676cff43a5bf5cc | |
parent | 02112f84e2102182816ffa48d5444a7321730936 (diff) | |
download | minetest-c98ae2a91f2a9eb8dad011e71a04fd8ee2c2d767.tar.gz minetest-c98ae2a91f2a9eb8dad011e71a04fd8ee2c2d767.tar.bz2 minetest-c98ae2a91f2a9eb8dad011e71a04fd8ee2c2d767.zip |
Setting limits: Fix message text in advanced settings tab
It would complain that the value should be higher than the lower
bound, when it should be higher than or equal to the lower bound.
Similar issue for the upper bound.
-rw-r--r-- | builtin/mainmenu/dlg_settings_advanced.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/dlg_settings_advanced.lua b/builtin/mainmenu/dlg_settings_advanced.lua index 06def72a3..b0d923768 100644 --- a/builtin/mainmenu/dlg_settings_advanced.lua +++ b/builtin/mainmenu/dlg_settings_advanced.lua @@ -479,13 +479,13 @@ local function handle_change_setting_buttons(this, fields) return true end if setting.min and new_value < setting.min then - this.data.error_message = fgettext_ne("The value must be greater than $1.", setting.min) + this.data.error_message = fgettext_ne("The value must be at least $1.", setting.min) this.data.entered_text = fields["te_setting_value"] core.update_formspec(this:get_formspec()) return true end if setting.max and new_value > setting.max then - this.data.error_message = fgettext_ne("The value must be lower than $1.", setting.max) + this.data.error_message = fgettext_ne("The value must not be larger than $1.", setting.max) this.data.entered_text = fields["te_setting_value"] core.update_formspec(this:get_formspec()) return true |