From 127caef5b3385af4136a22b22940876a9e2b1c14 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 27 Dec 2014 01:02:35 -0500 Subject: use current intllib API --- init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index e8c36b7..fc36199 100644 --- a/init.lua +++ b/init.lua @@ -31,14 +31,12 @@ with this program; if not, write to the Free Software Foundation, Inc., -- Boilerplate to support localized strings if intllib mod is installed. local S -if (minetest.get_modpath("intllib")) then - dofile(minetest.get_modpath("intllib").."/intllib.lua") - S = intllib.Getter(minetest.get_current_modname()) +if minetest.get_modpath("intllib") then + S = intllib.Getter() else - S = function ( s ) return s end + S = function(s) return s end end - -- Items/recipes needed to generate the few base colors that are not -- provided by the standard dyes mod. -- cgit v1.2.3