Use engine translator, ditch intllib

This commit is contained in:
Jean-Patrick Guerrero
2019-02-13 14:15:29 +01:00
parent 40b5f8725a
commit 8f6f8dda7e
6 changed files with 2 additions and 49 deletions

View File

@ -21,8 +21,7 @@ local show_formspec = mt.show_formspec
local get_player_by_name = mt.get_player_by_name
local serialize, deserialize = mt.serialize, mt.deserialize
-- Intllib
local S = dofile(mt.get_modpath("craftguide") .. "/intllib.lua")
local S = mt.get_translator("craftguide")
-- Lua 5.3 removed `table.maxn`, use this alternative in case of breakage:
-- https://github.com/kilbith/xdecor/blob/master/handlers/helpers.lua#L1