Fix parameter passing to gettext call

This commit is contained in:
PilzAdam 2015-10-25 19:14:07 +01:00 committed by Nils Dagsson Moskopp
parent 1f21ad4da2
commit 7e69f86aa5
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View 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