updated Intllib support (thanks codexp)
This commit is contained in:
parent
9f18e935f1
commit
1386e0e7c9
16 changed files with 1065 additions and 263 deletions
3
hud.lua
3
hud.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue