Update intllib support to avoid using deprecated functions

此提交包含在:
Hugo Locurcio
2019-03-03 20:02:40 +01:00
父節點 e43e4a1911
當前提交 76a00a5365
共有 8 個檔案被更改,包括 57 行新增17 行删除

查看文件

@ -10,20 +10,12 @@ Licensed under the zlib license. See LICENSE.md for more information.
moreblocks = {}
local S
if minetest.global_exists("intllib") then
if intllib.make_gettext_pair then
S = intllib.make_gettext_pair()
else
S = intllib.Getter()
end
else
S = function(s) return s end
end
moreblocks.intllib = S
local modpath = minetest.get_modpath("moreblocks")
local S, NS = dofile(modpath .. "/intllib.lua")
moreblocks.S = S
moreblocks.NS = NS
dofile(modpath .. "/config.lua")
dofile(modpath .. "/circular_saw.lua")
dofile(modpath .. "/stairsplus/init.lua")