use current intllib API
parent
c6eed37729
commit
55e8eb95d8
|
@ -1 +1,2 @@
|
||||||
default
|
default
|
||||||
|
intllib?
|
||||||
|
|
6
init.lua
6
init.lua
|
@ -5,12 +5,12 @@ autoclose_doors = {}
|
||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||||
local S
|
local S
|
||||||
if autoclose_doors.intllib_modpath then
|
if minetest.get_modpath("intllib") then
|
||||||
dofile(autoclose_doors.intllib_modpath.."/intllib.lua")
|
S = intllib.Getter()
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
else
|
||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
|
|
||||||
autoclose_doors.gettext = S
|
autoclose_doors.gettext = S
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue