Add intllib support and German

This commit is contained in:
Wuzzy 2016-08-05 17:00:45 +02:00
parent 4e955bef42
commit 9ed25e212e
4 changed files with 12 additions and 1 deletions

View File

@ -1,2 +1,3 @@
hudbars
3d_armor
intllib?

View File

@ -1,3 +1,11 @@
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
hbarmor = {}
-- HUD statbar values
@ -50,7 +58,7 @@ local function custom_hud(player)
end
--register and define armor HUD bar
hb.register_hudbar("armor", 0xFFFFFF, "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: %d%%")
dofile(minetest.get_modpath("hbarmor").."/armor.lua")

1
locale/de.txt Normal file
View File

@ -0,0 +1 @@
Armor = Panzerung

1
locale/template.txt Normal file
View File

@ -0,0 +1 @@
Armor