mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Escape translated text in 'beds' mod formspec
This commit is contained in:
		@@ -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")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user