From cadacac5aa399eeb55b51430456f36776ad6221c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 4 Aug 2017 15:32:39 +0100 Subject: Updated intllib (thanks fat115) --- init.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3