forked from nalc/homedecor_modpack
use current intllib API
This commit is contained in:
parent
6905c363eb
commit
bb8b3eea20
|
@ -1 +1,3 @@
|
|||
default
|
||||
intllib?
|
||||
|
||||
|
|
|
@ -5,12 +5,11 @@
|
|||
-- This file defines some items in order to not have to depend on other mods.
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S;
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua");
|
||||
S = intllib.Getter(minetest.get_current_modname());
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s; end
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
||||
if (not minetest.get_modpath("homedecor")) then
|
||||
|
|
|
@ -5,3 +5,4 @@ moreblocks?
|
|||
technic?
|
||||
dye?
|
||||
bees?
|
||||
intllib?
|
||||
|
|
|
@ -20,9 +20,8 @@ homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
|||
|
||||
-- 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())
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
default
|
||||
intllib?
|
||||
|
||||
|
|
|
@ -69,10 +69,10 @@ signs_lib.sign_post_model = {
|
|||
}
|
||||
}
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if signs_lib.intllib_modpath then
|
||||
dofile(signs_lib.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
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user