summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 4e9294b..495dca6 100644
--- a/init.lua
+++ b/init.lua
@@ -1,6 +1,10 @@
local S
-if (minetest.get_modpath("intllib")) then
- S = intllib.Getter()
+if minetest.global_exists("intllib") then
+ if intllib.make_gettext_pair then
+ S = intllib.make_gettext_pair()
+ else
+ S = intllib.Getter()
+ end
else
S = function ( s ) return s end
end