summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorLNJ <git@lnj.li>2017-02-20 19:28:07 +0100
committerAuke Kok <sofar+github@foo-projects.org>2017-02-20 11:10:36 -0800
commit214bd005e7966bca190fcef50737808685eaa50d (patch)
tree29744466dabb029d675a8adf9a967e669c57ba43 /init.lua
parent15f86d36c1f0272e8e27c1bb2e3c9a863067d210 (diff)
Switch to new intllib system using gettext
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 5 insertions, 9 deletions
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