oops, S() needs to stay in init.lua

This commit is contained in:
Vanessa Ezekowitz 2013-10-16 10:30:41 -04:00
parent 1a18413a37
commit 07fa9d5583

View File

@ -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