summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-08-04 15:32:39 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-08-04 15:32:39 +0100
commitcadacac5aa399eeb55b51430456f36776ad6221c (patch)
tree3434537d10ce731514043281902e7ff6399d1bd8 /init.lua
parent1c3d11ca308e81a5f0b8607dcfe7afeef95a7a64 (diff)
Updated intllib (thanks fat115)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua16
1 files changed, 3 insertions, 13 deletions
diff --git a/init.lua b/init.lua
index c8c6d25..69e6c73 100644
--- a/init.lua
+++ b/init.lua
@@ -1,19 +1,9 @@
local path = minetest.get_modpath("mobs_animal")
--- Intllib
-local S
-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
+-- Load support for intllib.
+local MP = minetest.get_modpath(minetest.get_current_modname())
+local S, NS = dofile(MP.."/intllib.lua")
mobs.intllib = S
-- Animals