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