mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-28 01:53:46 +01:00
Replace deprecated intllib call:
- 'Getter' with 'make_gettext_pair' if available Thanks, AntumDeluge!
This commit is contained in:
parent
f19a85c537
commit
aa5fef1298
6
init.lua
6
init.lua
@ -1,6 +1,10 @@
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user