Skip to content

Commit

Permalink
Escape translated text in 'beds' mod formspec
Browse files Browse the repository at this point in the history
  • Loading branch information
An0n3m0us authored and paramat committed Nov 22, 2019
1 parent 5b1875e commit d9f8c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/beds/init.lua
Expand Up @@ -2,7 +2,7 @@

-- Load support for MT game translation.
local S = minetest.get_translator("beds")

local esc = minetest.formspec_escape

beds = {}
beds.player = {}
Expand All @@ -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")

Expand Down

0 comments on commit d9f8c6c

Please sign in to comment.