Replace deprecated function 'intllib.Getter':

- Check first for 'intllib.make_gettext_pair', otherwise continue using
deprecated function
This commit is contained in:
AntumDeluge 2017-07-08 20:33:10 -07:00 committed by sofar
parent f3005d6367
commit acd570ba0d

View File

@ -12,7 +12,11 @@ moreblocks = {}
local S
if minetest.global_exists("intllib") then
S = intllib.Getter()
if intllib.make_gettext_pair then
S = intllib.make_gettext_pair()
else
S = intllib.Getter()
end
else
S = function(s) return s end
end