Setting limits: Fix message text in advanced settings tab
authorRogier <rogier777@gmail.com>
Sun, 11 Dec 2016 19:13:49 +0000 (20:13 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 12 Dec 2016 07:21:46 +0000 (07:21 +0000)
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.

builtin/mainmenu/dlg_settings_advanced.lua

index 06def72a35d705713e8422bfbbf04b1d9817ad60..b0d923768d0324c86f48565dbe67968e9d3a0af6 100644 (file)
@@ -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