mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-08-20 05:04:12 +02:00
Replace deprecated intllib call:
- 'Getter' with 'make_gettext_pair' if available Thanks, AntumDeluge!
This commit is contained in:
parent
f19a85c537
commit
aa5fef1298
8
init.lua
8
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user