summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-08 03:57:20 +0200
committerWuzzy <almikes@aol.com>2016-08-08 03:57:20 +0200
commit5348d26a2e558bdfd3ec8901c5d4428a64b00c75 (patch)
treebf68fac907cabc0e5b19205a514231e226f13e73
parent40b7c35a7dbf439988a0fbd8f8c651c68256b431 (diff)
Add another string for translation
-rw-r--r--init.lua2
-rw-r--r--locale/de.txt1
-rw-r--r--locale/template.txt3
3 files changed, 5 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a78420b..11afe78 100644
--- a/init.lua
+++ b/init.lua
@@ -164,7 +164,7 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
end
end
if format_string == nil then
- format_string = "%s: %d/%d"
+ format_string = S("%s: %d/%d")
end
hudtable.add_all = function(player, hudtable, start_value, start_max, start_hidden)
diff --git a/locale/de.txt b/locale/de.txt
index 08b8355..578764e 100644
--- a/locale/de.txt
+++ b/locale/de.txt
@@ -1,2 +1,3 @@
Health = Leben
Breath = Atem
+%s: %d/%d = %s: %d/%d
diff --git a/locale/template.txt b/locale/template.txt
index c8aff8c..0a26b8f 100644
--- a/locale/template.txt
+++ b/locale/template.txt
@@ -1,2 +1,5 @@
Health
Breath
+
+# Default format string for progress bar-style HUD bars, e.g. “Health 5/20”
+%s: %d/%d