From 51bc73ae4dbc1710b0011fcb2e2d1da7c0c4dac8 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 6 Nov 2024 18:31:21 +0100 Subject: [PATCH] reuse field translations --- abrechenbarkeit.lua | 24 ++++++++++++------------ locale/en.ini | 18 ++++++++++-------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 5de3456..7ff0aaf 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -614,33 +614,33 @@ local function r_products()

{+products.form.add}

- + - + - + - + - +

{+products.form.remove}

- + - +
]], { currency = config.unit or "€", })) print(format([[ - - - - - + + + + + ]])) local pbals = product_balances() for barcode, price, user, name in read_products() do diff --git a/locale/en.ini b/locale/en.ini index df4d70b..3171b9b 100644 --- a/locale/en.ini +++ b/locale/en.ini @@ -1,6 +1,11 @@ [abrechenbarkeit] -appname=Abrechenbarkeit +about.desc=Abrechenbarkeit is a simple trust-based ledger for keeping track of money spent on product. +about.license=Abrechenbarkeit is free software. It is licensed exclusively GNU Affero General Public License Version 3 only. +about.source=The source code is published on {codeberg}Codeberg{ae}. This is also where {issues}issues with this software{ae} should be reported. +about.thanks=Thanks for choosing Abrechenbarkeit. +about.title=About Abrechenbarkeit about=About +appname=Abrechenbarkeit field.amount=Amount field.barcode=Barcode field.comment=Comment @@ -9,13 +14,9 @@ field.name=Name field.price=Price field.time=Time field.upstream_price=Upstream Price +field.user=User field.username=Username index.form.create_user.submit=Continue -about.desc=Abrechenbarkeit is a simple trust-based ledger for keeping track of money spent on product. -about.title=About Abrechenbarkeit -about.license=Abrechenbarkeit is free software. It is licensed exclusively GNU Affero General Public License Version 3 only. -about.source=The source code is published on {codeberg}Codeberg{ae}. This is also where {issues}issues with this software{ae} should be reported. -about.thanks=Thanks for choosing Abrechenbarkeit. index.form.create_user=User Creation log.actions.revert=Revert log.actions=Actions @@ -23,6 +24,7 @@ log=Log products.form.add=Add Product products.form.remove=Remove Product products.form.title=Product List +products.title=Product List products=Products time.day=day time.days=days @@ -39,8 +41,8 @@ user.form.buy=Buy Product user.form.restock.submit=Restock user.form.restock=Restock Product user.form.transaction.submit=Update +user.form.transaction.success=Transaction successful user.form.transaction=Create Transaction 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. -user.form.transaction.success=Transaction successful +user.view_log=View user log
{+products.list.name}{+products.list.price}{+products.list.barcode}{+products.list.count}{+products.list.user}{+field.name}{+field.price}{+field.barcode}{+field.count}{+field.user}