diff options
author | LNJ <git@lnj.li> | 2017-02-20 19:28:07 +0100 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2017-02-20 11:10:36 -0800 |
commit | 214bd005e7966bca190fcef50737808685eaa50d (patch) | |
tree | 29744466dabb029d675a8adf9a967e669c57ba43 /init.lua | |
parent | 15f86d36c1f0272e8e27c1bb2e3c9a863067d210 (diff) |
Switch to new intllib system using gettext
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 |