projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb92bfb
)
Fix parameter passing to gettext call
author
PilzAdam
<pilzadam@minetest.net>
Sun, 25 Oct 2015 18:14:07 +0000
(19:14 +0100)
committer
PilzAdam
<pilzadam@minetest.net>
Sun, 25 Oct 2015 18:14:07 +0000
(19:14 +0100)
builtin/mainmenu/tab_settings.lua
patch
|
blob
|
history
diff --git
a/builtin/mainmenu/tab_settings.lua
b/builtin/mainmenu/tab_settings.lua
index d1ebb23adf9c4ce693140656f47c87ff1c8013af..6d71904cde47042de34c24034b8de9021407b062 100644
(file)
--- 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