From: PilzAdam Date: Sun, 25 Oct 2015 18:14:07 +0000 (+0100) Subject: Fix parameter passing to gettext call X-Git-Tag: 0.4.14~568 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eba5f7cd6cfb550b28de230bd5013a771d37b196;p=oweals%2Fminetest.git Fix parameter passing to gettext call --- diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index d1ebb23ad..6d71904cd 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