Update translation system to MT 5.0.0+ (#16)

This commit is contained in:
David Leal
2020-06-08 14:48:04 -05:00
committed by GitHub
parent 246d525c20
commit 75d3253c5f
11 changed files with 178 additions and 184 deletions

View File

@ -12,9 +12,8 @@ maptools = {}
local modpath = minetest.get_modpath("maptools")
local S, NS = dofile(modpath .. "/intllib.lua")
local S = minetest.get_translator("maptools")
maptools.S = S
maptools.NS = NS
maptools.drop_msg = function(itemstack, player)
local name = player:get_player_name()