Skip to content
Snippets Groups Projects
Commit eba5f7cd authored by PilzAdam's avatar PilzAdam
Browse files

Fix parameter passing to gettext call

parent eb92bfb0
No related branches found
No related tags found
No related merge requests found
...@@ -493,7 +493,7 @@ local function handle_change_setting_buttons(this, fields) ...@@ -493,7 +493,7 @@ local function handle_change_setting_buttons(this, fields)
value = value:trim() value = value:trim()
if not value:match(CHAR_CLASSES.FLAGS .. "+") if not value:match(CHAR_CLASSES.FLAGS .. "+")
or not setting.possible:match("[,]?" .. value .. "[,]?") then 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"] this.data.entered_text = fields["te_setting_value"]
core.update_formspec(this:get_formspec()) core.update_formspec(this:get_formspec())
return true return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment