diff --git a/app/Support/ExpandedForm.php b/app/Support/ExpandedForm.php index 35eb8855b9..750a0edd84 100644 --- a/app/Support/ExpandedForm.php +++ b/app/Support/ExpandedForm.php @@ -51,29 +51,7 @@ class ExpandedForm if (isset($options['label'])) { return $options['label']; } - $labels = [ - 'amount_min' => 'Amount (min)', - 'amount_max' => 'Amount (max)', - 'match' => 'Matches on', - 'repeat_freq' => 'Repetition', - 'account_from_id' => 'Account from', - 'account_to_id' => 'Account to', - 'account_id' => 'Asset account', - 'budget_id' => 'Budget', - 'openingBalance' => 'Opening balance', - 'tagMode' => 'Tag mode', - 'tagPosition' => 'Tag location', - 'virtualBalance' => 'Virtual balance', - 'longitude_latitude' => 'Location', - 'targetamount' => 'Target amount', - 'accountRole' => 'Account role', - 'openingBalanceDate' => 'Opening balance date', - 'ccType' => 'Credit card payment plan', - 'ccMonthlyPaymentDate' => 'Credit card monthly payment date', - 'piggy_bank_id' => 'Piggy bank']; - - - return isset($labels[$name]) ? $labels[$name] : str_replace('_', ' ', ucfirst($name)); + return trans('form.'.$name); } diff --git a/resources/lang/en/firefly.php b/resources/lang/en/firefly.php index 1b2c0b4b5d..b2b051e69b 100644 --- a/resources/lang/en/firefly.php +++ b/resources/lang/en/firefly.php @@ -1,12 +1,14 @@ 'You have selected English.', - 'welcome' => 'Welcome to Firefly!', 'close' => 'Close', 'pleaseHold' => 'Please hold...', 'mandatoryFields' => 'Mandatory fields', 'optionalFields' => 'Optional fields', 'options' => 'Options', - 'something' => 'Something!' + 'something' => 'Something!', + 'actions' => 'Actions' ]; diff --git a/resources/lang/en/form.php b/resources/lang/en/form.php new file mode 100644 index 0000000000..fa97c45a2f --- /dev/null +++ b/resources/lang/en/form.php @@ -0,0 +1,28 @@ + 'Name', + 'active' => 'Active', + 'amount_min' => 'Minimum amount', + 'amount_max' => 'Maximum amount', + 'match' => 'Matches on', + 'repeat_freq' => 'Repeats', + 'account_from_id' => 'From account', + 'account_to_id' => 'To account', + 'account_id' => 'Asset account', + 'budget_id' => 'Budget', + 'openingBalance' => 'Opening balance', + 'tagMode' => 'Tag mode', + 'tagPosition' => 'Tag location', + 'virtualBalance' => 'Vitual balance', + 'longitude_latitude' => 'Location', + 'targetamount' => 'Target amount', + 'accountRole' => 'Account role', + 'openingBalanceDate' => 'Opening balance date', + 'ccType' => 'Credit card payment plan', + 'ccMonthlyPaymentDate' => 'Credit card monthly payment date', + 'piggy_bank_id' => 'Piggy bank', + 'returnHere' => 'Return here', + 'returnHereExplanation' => 'After storing, return here to create another one.', + 'returnHereUpdateExplanation' => 'After updating, return here.', + +]; \ No newline at end of file diff --git a/resources/lang/nl/firefly.php b/resources/lang/nl/firefly.php index a6331a34e5..d3a9ca0d99 100644 --- a/resources/lang/nl/firefly.php +++ b/resources/lang/nl/firefly.php @@ -1,5 +1,14 @@ 'Nederlands geselecteerd!', + 'close' => 'Sluiten', + 'pleaseHold' => 'Momentje...', + 'mandatoryFields' => 'Verplichte velden', + 'optionalFields' => 'Optionele velden', + 'options' => 'Opties', + 'something' => 'Iets!', + 'actions' => 'Acties' ]; diff --git a/resources/lang/nl/form.php b/resources/lang/nl/form.php new file mode 100644 index 0000000000..4262dc5aea --- /dev/null +++ b/resources/lang/nl/form.php @@ -0,0 +1,28 @@ + 'Naam', + 'active' => 'Actief', + 'amount_min' => 'Minimumbedrag', + 'amount_max' => 'Maximumbedrag', + 'match' => 'Reageert op', + 'repeat_freq' => 'Herhaling', + 'account_from_id' => 'Van account', + 'account_to_id' => 'Naar account', + 'account_id' => 'Betaalrekening', + 'budget_id' => 'Budget', + 'openingBalance' => 'Startbalans', + 'tagMode' => 'Tag modus', + 'tagPosition' => 'Tag locatie', + 'virtualBalance' => 'Virtuele balans', + 'longitude_latitude' => 'Locatie', + 'targetamount' => 'Doelbedrag', + 'accountRole' => 'Rol van rekening', + 'openingBalanceDate' => 'Startbalansdatum', + 'ccType' => 'Betaalplan', + 'ccMonthlyPaymentDate' => 'Betaaldatum', + 'piggy_bank_id' => 'Spaarpotje', + 'returnHere' => 'Keer terug', + 'returnHereExplanation' => 'Terug naar deze pagina na het opslaan.', + 'returnHereUpdateExplanation' => 'Terug naar deze pagina na het wijzigen.', + +]; \ No newline at end of file diff --git a/resources/twig/accounts/index.twig b/resources/twig/accounts/index.twig index a596dd3111..0f914ba141 100644 --- a/resources/twig/accounts/index.twig +++ b/resources/twig/accounts/index.twig @@ -11,7 +11,7 @@