forked from mtcontrib/mobs_animal
Updated intllib (thanks fat115)
This commit is contained in:
16
init.lua
16
init.lua
@ -1,19 +1,9 @@
|
||||
|
||||
local path = minetest.get_modpath("mobs_animal")
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
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()
|
||||
end
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
-- Load support for intllib.
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
mobs.intllib = S
|
||||
|
||||
-- Animals
|
||||
|
Reference in New Issue
Block a user