updated Intllib support (thanks codexp)

This commit is contained in:
TenPlus1 2018-07-10 18:59:29 +01:00
commit 1386e0e7c9
16 changed files with 1065 additions and 263 deletions

View file

@ -1,4 +1,5 @@
local S = protector.intllib
local radius = (tonumber(minetest.setting_get("protector_radius")) or 5)
local hud = {}
local hud_timer = 0
@ -27,7 +28,7 @@ minetest.register_globalstep(function(dtime)
local meta = minetest.get_meta(npos)
local nodeowner = meta:get_string("owner")
hud_text = "Owner: " .. nodeowner
hud_text = S("Owner: @1", nodeowner)
end
if not hud[name] then