summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-08-07 12:56:53 -0400
committerGitHub <noreply@github.com>2016-08-07 12:56:53 -0400
commit6ec72eba74ab832da3cd79cdf37d1dd9a4603720 (patch)
tree4d78acae78e081f30b8aa8d1076a1ecf5a27175f /init.lua
parent7d039147e71bcc4e947be0f3bfb38707790263fb (diff)
parentc81666694587dc49936eb2122607de1efd1589fd (diff)
Merge pull request #59 from Wuzzy2/trans
Update translation strings, update German, more formspec escaping
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index d311ace..e24fff2 100644
--- a/init.lua
+++ b/init.lua
@@ -2,6 +2,7 @@
local modpath = minetest.get_modpath(minetest.get_current_modname())
local worldpath = minetest.get_worldpath()
+local mygettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
-- Data tables definitions
unified_inventory = {
@@ -31,7 +32,8 @@ unified_inventory = {
default = "craft",
-- intllib
- gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end,
+ gettext = mygettext,
+ fgettext = function(s) return minetest.formspec_escape(mygettext(s)) end,
-- "Lite" mode
lite_mode = minetest.setting_getbool("unified_inventory_lite"),