Skip to content

Commit

Permalink
Fix parameter passing to gettext call
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed Oct 25, 2015
1 parent eb92bfb commit eba5f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/mainmenu/tab_settings.lua
Expand Up @@ -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
Expand Down

0 comments on commit eba5f7c

Please sign in to comment.