forked from mtcontrib/homedecor_modpack
oops, S() needs to stay in init.lua
This commit is contained in:
parent
1a18413a37
commit
07fa9d5583
7
init.lua
7
init.lua
@ -20,6 +20,13 @@ homedecor.modpath = minetest.get_modpath("homedecor")
|
|||||||
homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||||
|
local S
|
||||||
|
if homedecor.intllib_modpath then
|
||||||
|
dofile(homedecor.intllib_modpath.."/intllib.lua")
|
||||||
|
S = intllib.Getter(minetest.get_current_modname())
|
||||||
|
else
|
||||||
|
S = function ( s ) return s end
|
||||||
|
end
|
||||||
|
|
||||||
local dbg = function(s)
|
local dbg = function(s)
|
||||||
if homedecor.debug == 1 then
|
if homedecor.debug == 1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user