From 3895ae63c7cc9c273736e7becbdd33f565eb2ca8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 14 May 2015 13:00:43 +0200 Subject: [PATCH] Some translations for lists [skip ci] --- resources/lang/en/list.php | 29 ++++++++++++++++++++++ resources/lang/nl/list.php | 29 ++++++++++++++++++++++ resources/twig/list/accounts.twig | 12 ++++----- resources/twig/list/bills.twig | 16 ++++++------ resources/twig/list/categories.twig | 4 +-- resources/twig/list/journals-tiny.twig | 12 ++++----- resources/twig/list/journals.twig | 16 ++++++------ resources/twig/list/piggy-bank-events.twig | 4 +-- 8 files changed, 90 insertions(+), 32 deletions(-) create mode 100644 resources/lang/en/list.php create mode 100644 resources/lang/nl/list.php diff --git a/resources/lang/en/list.php b/resources/lang/en/list.php new file mode 100644 index 0000000000..4a85e56f93 --- /dev/null +++ b/resources/lang/en/list.php @@ -0,0 +1,29 @@ + 'Name', + 'role' => 'Role', + 'currentBalance' => 'Current balance', + 'active' => 'Is active?', + 'lastActivity' => 'Last activity', + 'balanceDiff' => 'Balance difference between :start and :end', + 'matchedOn' => 'Matched on', + 'matchingAmount' => 'Amount', + 'lastMatch' => 'Last match', + 'expectedMatch' => 'Expected match', + 'automatch' => 'Automatch?', + 'repeat_freq' => 'Repeats', + 'description' => 'Description', + 'amount' => 'Amount', + 'date' => 'Date', + 'from' => 'From', + 'to' => 'To', + 'budget' => 'Budget', + 'category' => 'Category', + 'bill' => 'Bill', + 'withdrawal' => 'Withdrawal', + 'deposit' => 'Deposit', + 'transfer' => 'Transfer' +]; \ No newline at end of file diff --git a/resources/lang/nl/list.php b/resources/lang/nl/list.php new file mode 100644 index 0000000000..6d28f20d09 --- /dev/null +++ b/resources/lang/nl/list.php @@ -0,0 +1,29 @@ + 'Naam', + 'role' => 'Rol', + 'currentBalance' => 'Huidig saldo', + 'active' => 'Actief?', + 'lastActivity' => 'Laatste activiteit', + 'balanceDiff' => 'Saldoverschil tussen :start en :end', + 'matchedOn' => 'Wordt herkend', + 'matchingAmount' => 'Bedrag', + 'lastMatch' => 'Laatste keer gezien', + 'expectedMatch' => 'Wordt verwacht', + 'automatch' => 'Automatisch herkennen?', + 'repeat_freq' => 'Herhaling', + 'description' => 'Omschrijving', + 'amount' => 'Bedrag', + 'date' => 'Datum', + 'from' => 'Van', + 'to' => 'Naar', + 'budget' => 'Budget', + 'category' => 'Categorie', + 'bill' => 'Rekening', + 'withdrawal' => 'Uitgave', + 'deposit' => 'Inkomsten', + 'transfer' => 'Overschrijving' +]; \ No newline at end of file diff --git a/resources/twig/list/accounts.twig b/resources/twig/list/accounts.twig index 4cc47af39a..5e8a21803e 100644 --- a/resources/twig/list/accounts.twig +++ b/resources/twig/list/accounts.twig @@ -2,14 +2,14 @@   - Name + {{ trans('list.name') }} {% if what == 'asset' %} - Role + {{ trans('list.role') }} {% endif %} - Current balance - Active - Last activity - Balance difference between {{ Session.get('start').format('jS F Y') }} and {{ Session.get('end').format('jS F Y') }} + {{ trans('list.currentBalance') }} + {{ trans('list.active') }} + {{ trans('list.lastActivity') }} + {{ trans('list.balanceDiff', {'start' : Session.get('start').format('jS F Y'),'end' : Session.get('end').format('jS F Y')}) }} diff --git a/resources/twig/list/bills.twig b/resources/twig/list/bills.twig index 91338ec6ad..52a3de075a 100644 --- a/resources/twig/list/bills.twig +++ b/resources/twig/list/bills.twig @@ -2,14 +2,14 @@   - Name - Matches on - Matching amount - Last seen match - Next expected match - Is active - Will be automatched - Repeats every + {{ trans('list.name') }} + {{ trans('list.matchesOn') }} + {{ trans('list.matchingAmount') }} + {{ trans('list.lastMatch') }} + {{ trans('list.expectedMatch') }} + {{ trans('list.active') }} + {{ trans('list.automatch') }} + {{ trans('list.repeat_freq') }}   diff --git a/resources/twig/list/categories.twig b/resources/twig/list/categories.twig index 605167cd17..4005bc2e00 100644 --- a/resources/twig/list/categories.twig +++ b/resources/twig/list/categories.twig @@ -2,8 +2,8 @@   - Name - Last activity + {{ trans('list.name') }} + {{ trans('list.lastActivity') }} diff --git a/resources/twig/list/journals-tiny.twig b/resources/twig/list/journals-tiny.twig index e4ca10fb72..db5f0b04a4 100644 --- a/resources/twig/list/journals-tiny.twig +++ b/resources/twig/list/journals-tiny.twig @@ -5,23 +5,23 @@ {% if not journal.type %} {% if journal.transactiontype.type == 'Withdrawal' %} - + {% endif %} {% if journal.transactiontype.type == 'Deposit' %} - + {% endif %} {% if journal.transactiontype.type == 'Transfer' %} - + {% endif %} {% else %} {% if journal.type == 'Withdrawal' %} - + {% endif %} {% if journal.type == 'Deposit' %} - + {% endif %} {% if journal.type == 'Transfer' %} - + {% endif %} {% endif %} diff --git a/resources/twig/list/journals.twig b/resources/twig/list/journals.twig index 625d1d391a..7d7e01edac 100644 --- a/resources/twig/list/journals.twig +++ b/resources/twig/list/journals.twig @@ -3,24 +3,24 @@ - - - - - + + + + + {% if not hideBudgets %} - + {% endif %} {% if not hideCategories %} - + {% endif %} {% if not hideBills %} - + {% endif %} {% for journal in journals %} diff --git a/resources/twig/list/piggy-bank-events.twig b/resources/twig/list/piggy-bank-events.twig index d685e73612..3993cefe59 100644 --- a/resources/twig/list/piggy-bank-events.twig +++ b/resources/twig/list/piggy-bank-events.twig @@ -3,8 +3,8 @@ {% if showPiggyBank %} {% endif %} - - + + {% for event in events %}
DescriptionAmountDate{{ trans('list.description') }}{{ trans('list.amount') }}{{ trans('list.date') }}
Piggy bankDateAmount{{ trans('list.date') }}{{ trans('list.amount') }}