diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 190bea7..4e49d8e 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -104,7 +104,7 @@ end local function format_amount(amount, tag, classes) local s = string.format("%.02f%s", amount / 100, config.unit or "€") if tag == nil then return s end - return string.format([[<%s class="amount-%s %s">%s"]], tag, amount >= 0 and "pos" or "neg", s, tag, classes or "") + return string.format([[<%s class="amount-%s %s">%s"]], tag, amount >= 0 and "pos" or "neg", classes or "", s, tag) end local function get_user_theme(username) diff --git a/locale/en.ini b/locale/en.ini index 5eecfaf..a178e9b 100644 --- a/locale/en.ini +++ b/locale/en.ini @@ -27,13 +27,13 @@ time.minute=minute time.minutes=minutes time.second=second time.seconds=seconds -user.balance=Current balance: +user.balance=Current balance user.form.buy.submit=Buy user.form.buy=Buy Product user.form.restock.submit=Restock user.form.restock=Restock Product user.form.transaction.submit=Update user.form.transaction=Create Transaction -user.last_txn=Last transaction added %s. +user.last_txn=Last transaction added {time}. user.view_log=View user log user.lazy_creation=This user account does not exist yet. It will only be created after the first transaction.