mirror of
https://repo.or.cz/minetest_hbarmor.git
synced 2024-11-14 14:50:18 +01:00
Add intllib support and German
This commit is contained in:
parent
4e955bef42
commit
9ed25e212e
|
@ -1,2 +1,3 @@
|
|||
hudbars
|
||||
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 = {}
|
||||
|
||||
-- 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
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