Merge pull request #4 from AntumMT/intllib_update

Replace deprecated function 'intllib.Getter'
This commit is contained in:
Vanessa Ezekowitz 2017-07-20 01:46:17 -04:00 committed by GitHub
commit fa085fdcce

View File

@ -6,8 +6,14 @@ ilights = {}
-- Boilerplate to support localized strings if intllib mod is installed.
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