summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-09 14:10:33 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-09 14:10:33 +0100
commit6c8ea9e5ea8e6dce685b570028c0b9da53cf7e6c (patch)
treec49610ba059a5877728f43eb6f403388fb259d4e
parent99b8a2474ce2c4da413adf80e6d11c8529c238e9 (diff)
update intllib
-rw-r--r--init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 5b748ed..2d3e6f5 100644
--- a/init.lua
+++ b/init.lua
@@ -56,8 +56,14 @@ end
-- Intllib
local S
-if minetest.get_modpath("intllib") then
- S = intllib.Getter()
+if minetest.global_exists("intllib") then
+ if intllib.make_gettext_pair then
+ -- New method using gettext.
+ S = intllib.make_gettext_pair()
+ else
+ -- Old method using text files.
+ S = intllib.Getter()
+ end
else
S = function(s) return s end
end