Update outdated intllib boilerplate

This commit is contained in:
Wuzzy 2016-11-09 01:50:21 +01:00
parent 2e3d5b7ca5
commit dd1bf4e74c
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,6 @@
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
S = intllib.Getter()
else
S = function ( s ) return s end
end
@ -58,7 +57,7 @@ local function custom_hud(player)
end
--register and define armor HUD bar
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, "%s: %d%%")
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, S("%s: %d%%"))
dofile(minetest.get_modpath("hbarmor").."/armor.lua")

View File

@ -1 +1,2 @@
Armor = Panzerung
%s: %d%% = %s: %d%%

View File

@ -1 +1,4 @@
Armor
Armor =
# Format string for displaying the armor. E.g. "Armor: 100%"
%s: %d%% =