diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-08-07 12:56:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-07 12:56:53 -0400 |
commit | 6ec72eba74ab832da3cd79cdf37d1dd9a4603720 (patch) | |
tree | 4d78acae78e081f30b8aa8d1076a1ecf5a27175f /init.lua | |
parent | 7d039147e71bcc4e947be0f3bfb38707790263fb (diff) | |
parent | c81666694587dc49936eb2122607de1efd1589fd (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.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"), |