Replace deprecated intllib call:

- 'Getter' with 'make_gettext_pair' if available

Thanks, AntumDeluge!
This commit is contained in:
Wuzzy 2017-07-06 03:11:56 +02:00
parent f19a85c537
commit aa5fef1298

@ -1,6 +1,10 @@
local S local S
if (minetest.get_modpath("intllib")) then 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 else
S = function ( s ) return s end S = function ( s ) return s end
end end