use current intllib API

This commit is contained in:
Vanessa Ezekowitz
2014-12-27 01:13:05 -05:00
parent 6905c363eb
commit bb8b3eea20
6 changed files with 16 additions and 13 deletions

View File

@ -1 +1,3 @@
default
intllib?

View File

@ -69,12 +69,12 @@ 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
S = function(s) return s end
end
signs_lib.gettext = S