Fix intllib boilerplate code

This commit is contained in:
sys4-fr 2016-11-25 16:54:17 +01:00 committed by rubenwardy
parent 25cf50389e
commit 1719cf77fa

View File

@ -15,9 +15,8 @@ end
-- 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())
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function ( s ) return s end
end