mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-23 09:20:26 +01:00
update intllib
This commit is contained in:
parent
5d4532030b
commit
c0aaf9f8bb
8
init.lua
8
init.lua
@ -3,8 +3,14 @@ local path = minetest.get_modpath("mobs_monster")
|
|||||||
|
|
||||||
-- Intllib
|
-- Intllib
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.global_exists("intllib") then
|
||||||
|
if intllib.make_gettext_pair then
|
||||||
|
-- New method using gettext.
|
||||||
|
S = intllib.make_gettext_pair()
|
||||||
|
else
|
||||||
|
-- Old method using text files.
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user