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
intllib?

View File

@ -5,12 +5,12 @@ autoclose_doors = {}
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if autoclose_doors.intllib_modpath then
dofile(autoclose_doors.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
autoclose_doors.gettext = S
--