projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1875e
)
Escape translated text in 'beds' mod formspec
author
An0n3m0us
<an0n3m0us@hotmail.com>
Fri, 22 Nov 2019 21:47:47 +0000
(21:47 +0000)
committer
Paramat
<paramat@users.noreply.github.com>
Fri, 22 Nov 2019 21:47:47 +0000
(21:47 +0000)
mods/beds/init.lua
patch
|
blob
|
history
diff --git
a/mods/beds/init.lua
b/mods/beds/init.lua
index 869ff0ffac9ac26425efef39352c1f87db9ea353..a1a46ce930e05291622da176f8a95f60881139ac 100644
(file)
--- a/
mods/beds/init.lua
+++ b/
mods/beds/init.lua
@@
-2,7
+2,7
@@
-- Load support for MT game translation.
local S = minetest.get_translator("beds")
-
+local esc = minetest.formspec_escape
beds = {}
beds.player = {}
@@
-14,7
+14,7
@@
beds.get_translator = S
beds.formspec = "size[8,11;true]" ..
"no_prepend[]" ..
"bgcolor[#080808BB;true]" ..
- "button_exit[2,10;4,0.75;leave;" ..
S("Leave Bed"
) .. "]"
+ "button_exit[2,10;4,0.75;leave;" ..
esc(S("Leave Bed")
) .. "]"
local modpath = minetest.get_modpath("beds")