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 changed files with 6 additions and 2 deletions

View File

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