use current intllib API

master
Vanessa Ezekowitz 2014-12-27 00:56:46 -05:00
parent c6eed37729
commit 55e8eb95d8
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -5,12 +5,12 @@ autoclose_doors = {}
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S local S
if autoclose_doors.intllib_modpath then if minetest.get_modpath("intllib") then
dofile(autoclose_doors.intllib_modpath.."/intllib.lua") S = intllib.Getter()
S = intllib.Getter(minetest.get_current_modname())
else else
S = function ( s ) return s end S = function(s) return s end
end end
autoclose_doors.gettext = S autoclose_doors.gettext = S
-- --