summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-09 14:09:34 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-09 14:09:34 +0100
commit1c3d11ca308e81a5f0b8607dcfe7afeef95a7a64 (patch)
tree15c28fb35e84f22f697a4b9e04a78b32d33c8131 /init.lua
parentb40fe3a2c796316398af5741f415576f2bc27efb (diff)
update intllib
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 1618780..c8c6d25 100644
--- a/init.lua
+++ b/init.lua
@@ -3,8 +3,14 @@ local path = minetest.get_modpath("mobs_animal")
-- 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