Fix parameter passing to gettext call
authorPilzAdam <pilzadam@minetest.net>
Sun, 25 Oct 2015 18:14:07 +0000 (19:14 +0100)
committerPilzAdam <pilzadam@minetest.net>
Sun, 25 Oct 2015 18:14:07 +0000 (19:14 +0100)
builtin/mainmenu/tab_settings.lua

index d1ebb23adf9c4ce693140656f47c87ff1c8013af..6d71904cde47042de34c24034b8de9021407b062 100644 (file)
@@ -493,7 +493,7 @@ local function handle_change_setting_buttons(this, fields)
                                value = value:trim()
                                if not value:match(CHAR_CLASSES.FLAGS .. "+")
                                                or not setting.possible:match("[,]?" .. value .. "[,]?") then
-                                       this.data.error_message = fgettext_ne("\"" .. value .. "\" is not a valid flag.")
+                                       this.data.error_message = fgettext_ne("\"$1\" is not a valid flag.", value)
                                        this.data.entered_text = fields["te_setting_value"]
                                        core.update_formspec(this:get_formspec())
                                        return true