update translation detection

This commit is contained in:
tenplus1 2020-08-25 09:19:59 +01:00
parent 954a9793e7
commit 92cafe1c64

View File

@ -27,7 +27,9 @@ end
local statistics = dofile(farming.path .. "/statistics.lua")
-- Intllib
local S = dofile(farming.path .. "/intllib.lua")
local S = minetest.get_translator and minetest.get_translator("farming") or
dofile(farming.path .. "/intllib.lua")
farming.intllib = S