From 7e69f86aa5740a8c8031d4644b16e6220e7c86fd Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 25 Oct 2015 19:14:07 +0100 Subject: [PATCH] Fix parameter passing to gettext call --- builtin/mainmenu/tab_settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index d1ebb23..6d71904 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -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