From 214bd005e7966bca190fcef50737808685eaa50d Mon Sep 17 00:00:00 2001 From: LNJ Date: Mon, 20 Feb 2017 19:28:07 +0100 Subject: Switch to new intllib system using gettext --- init.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index ac62799..c91afd7 100644 --- a/init.lua +++ b/init.lua @@ -59,18 +59,14 @@ settings.difficult = { } --- Intllib -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s) return s end -end -crops.intllib = S - local worldpath = minetest.get_worldpath() local modpath = minetest.get_modpath(minetest.get_current_modname()) +-- Load support for intllib. +local S, NS = dofile(modpath .. "/intllib.lua") +crops.intllib = S + + dofile(modpath .. "/crops_settings.txt") if io.open(worldpath .. "/crops_settings.txt", "r") == nil then -- cgit v1.2.3