forked from mtcontrib/minetest_hbarmor
Add intllib support and German
This commit is contained in:
parent
4e955bef42
commit
9ed25e212e
@ -1,2 +1,3 @@
|
|||||||
hudbars
|
hudbars
|
||||||
3d_armor
|
3d_armor
|
||||||
|
intllib?
|
||||||
|
10
init.lua
10
init.lua
@ -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 = {}
|
hbarmor = {}
|
||||||
|
|
||||||
-- HUD statbar values
|
-- HUD statbar values
|
||||||
@ -50,7 +58,7 @@ local function custom_hud(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--register and define armor HUD bar
|
--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")
|
dofile(minetest.get_modpath("hbarmor").."/armor.lua")
|
||||||
|
|
||||||
|
1
locale/de.txt
Normal file
1
locale/de.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Armor = Panzerung
|
1
locale/template.txt
Normal file
1
locale/template.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Armor
|
Loading…
Reference in New Issue
Block a user