update intllib

This commit is contained in:
TenPlus1 2017-07-09 14:10:33 +01:00
parent 99b8a2474c
commit 6c8ea9e5ea

View File

@ -56,8 +56,14 @@ end
-- Intllib
local S
if minetest.get_modpath("intllib") then
if minetest.global_exists("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
S = intllib.make_gettext_pair()
else
-- Old method using text files.
S = intllib.Getter()
end
else
S = function(s) return s end
end