summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2017-07-06 03:11:56 +0200
committerWuzzy <almikes@aol.com>2017-07-06 03:12:07 +0200
commitaa5fef12986993e818a36b5983ceba19c57d9243 (patch)
tree3850cb68421f73d37e894344c7e9f4900bab922f
parentf19a85c5375f47ca9faab2312e7ff45b4cc115d4 (diff)
Replace deprecated intllib call:
- 'Getter' with 'make_gettext_pair' if available Thanks, AntumDeluge!
-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