Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Translate hard-coded strings.
koziolek62998f8d694b
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex 4096eff434..0b277062a0 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -355,6 +355,7 @@ return ['without_date' => 'Without date','result' => 'Result','sums_apply_to_range' => 'All sums apply to the selected range',+ 'mapbox_api_key' => 'To use map, get an API key from <a href="https://www.mapbox.com/">Mapbox</a>. Open your <code>.env</code> file en enter this code after <code>MAPBOX_API_KEY=</code>.','press_tag_location' => 'Right click or long press to set the tag\'s location.','clear_location' => 'Clear location',@@ -587,6 +588,7 @@ return ['not_expected_period' => 'Not expected this period','bill_is_active' => 'Bill is active','bill_will_automatch' => 'Bill will automatically linked to matching transactions',+ 'skips_over' => 'skips over',// accounts:'details_for_asset' => 'Details for asset account ":name"','details_for_expense' => 'Details for expense account ":name"',@@ -615,6 +617,7 @@ return ['revenue_accounts' => 'Revenue accounts','cash_accounts' => 'Cash accounts','Cash account' => 'Cash account',+ 'cash' => 'cash','account_type' => 'Account type','save_transactions_by_moving' => 'Save these transaction(s) by moving them to another account:','stored_new_account' => 'New account ":name" stored!',@@ -665,6 +668,7 @@ return ['mass_delete_journals' => 'Delete a number of transactions','mass_edit_journals' => 'Edit a number of transactions','cannot_edit_other_fields' => 'You cannot mass-edit other fields than the ones here, because there is no room to show them. Please follow the link and edit them by one-by-one, if you need to edit these fields.',+ 'no_budget' => 'none','perm-delete-many' => 'Deleting many items in one go can be very disruptive. Please be cautious.','mass_deleted_transactions_success' => 'Deleted :amount transaction(s).','mass_edited_transactions_success' => 'Updated :amount transaction(s)',@@ -700,7 +704,9 @@ return ['currency' => 'Currency','preferences' => 'Preferences','logout' => 'Logout',+ 'toggleNavigation' => 'Toggle navigation','searchPlaceholder' => 'Search...',+ 'version' => 'Version','dashboard' => 'Dashboard','currencies' => 'Currencies','accounts' => 'Accounts',@@ -926,6 +932,7 @@ return ['budgets_with_limits' => 'budget(s) with configured amount','rule_or_rules' => 'rule(s)','rulegroup_or_groups' => 'rule group(s)',+ 'tag_or_tags' => 'tag(s)','configuration_updated' => 'The configuration has been updated','setting_is_demo_site' => 'Demo site','setting_is_demo_site_explain' => 'If you check this box, this installation will behave as if it is the demo site, which can have weird side effects.',@@ -1013,6 +1020,7 @@ return ['import_index_title' => 'Import data into Firefly III','import_index_sub_title' => 'Index','import_general_index_intro' => 'Welcome to Firefly\'s import routine. There are a few ways of importing data into Firefly III, displayed here as buttons.',+ 'import_general_index_csv_file' => 'Import a (CSV) file','import_index_intro' => 'This routine will help you import files from your bank into Firefly III. Please check out the help pages in the top right corner.','import_index_file' => 'Select your file','import_index_config' => 'If you have previously imported data into Firefly III, you may have a configuration file, which will pre-set configuration values for you. For some banks, other users have kindly provided their <a href="https://github.com/firefly-iii/import-configurations/wiki">configuration file</a>.',diff --git a/resources/views/admin/users/show.twig b/resources/views/admin/users/show.twigindex 2922ed89ff..b627f4c2f0 100644--- a/resources/views/admin/users/show.twig+++ b/resources/views/admin/users/show.twig@@ -32,9 +32,9 @@<td>{{ trans('list.is_admin') }}</td><td>{% if information.is_admin %}- <small class="text-success"><i class="fa fa-fw fa-check"></i></small> Yes+ <small class="text-success"><i class="fa fa-fw fa-check"></i></small> {{ 'yes'|_ }}{% else %}- <small class="text-danger"><i class="fa fa-fw fa-times"></i></small> No+ <small class="text-danger"><i class="fa fa-fw fa-times"></i></small> {{ 'no'|_ }}{% endif %}</td></tr>@@ -42,9 +42,9 @@<td>{{ trans('list.has_two_factor') }}</td><td>{% if information.has_2fa %}- <small class="text-success"><i class="fa fa-fw fa-check"></i></small> Yes+ <small class="text-success"><i class="fa fa-fw fa-check"></i></small> {{ 'yes'|_ }}{% else %}- <small class="text-danger"><i class="fa fa-fw fa-times"></i></small> No+ <small class="text-danger"><i class="fa fa-fw fa-times"></i></small> {{ 'no'|_ }}{% endif %}</td></tr>@@ -52,7 +52,7 @@<td>{{ trans('list.is_blocked') }}</td><td>{% if information.blocked %}- <small class="text-danger"><i class="fa fa-fw fa-check" title="{{ 'yes'|_ }}"></i></small> Yes:+ <small class="text-danger"><i class="fa fa-fw fa-check" title="{{ 'yes'|_ }}"></i></small> {{ 'yes'|_ }}:{% if information.blocked_code == "" %}<em>~</em>@@ -61,7 +61,7 @@{% endif %}{% else %}- <small class="text-success"><i class="fa fa-fw fa-times" title="{{ 'no'|_ }}"></i></small> No+ <small class="text-success"><i class="fa fa-fw fa-times" title="{{ 'no'|_ }}"></i></small> {{ 'no'|_ }}{% endif %}</td></tr>@@ -122,7 +122,7 @@</tr><tr><td>{{ trans('list.tags_count') }}</td>- <td>{{ information.tags }} tags</td>+ <td>{{ information.tags }} {{ 'tag_or_tags'|_ }}</td></tr></table>diff --git a/resources/views/bills/index.twig b/resources/views/bills/index.twigindex ef136db47f..dcb8603898 100644--- a/resources/views/bills/index.twig+++ b/resources/views/bills/index.twig@@ -19,7 +19,7 @@<div class="btn-group"><button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button><ul class="dropdown-menu" role="menu">- <li><a href="{{ route('bills.create') }}"><i class="fa fa-plus fa-fw"></i> New bill</a></li>+ <li><a href="{{ route('bills.create') }}"><i class="fa fa-plus fa-fw"></i> {{ 'new_bill'|_ }}</a></li></ul></div></div>diff --git a/resources/views/form/location.twig b/resources/views/form/location.twigindex e4f8b91cae..1f791a31a3 100644--- a/resources/views/form/location.twig+++ b/resources/views/form/location.twig@@ -3,8 +3,7 @@<div class="col-sm-8">{% if env('MAPBOX_API_KEY','') == '' %}<p class="text-danger">- To use map, get an API key from <a href="https://www.mapbox.com/">Mapbox</a>.- Open your <code>.env</code> file en enter this code after <code>MAPBOX_API_KEY=</code>.+ {{ trans('mapbox_api_key')|raw }}</p>{% else %}<div id="{{ name }}_map" style="width:100%;height:300px;"></div>diff --git a/resources/views/import/bank/form.twig b/resources/views/import/bank/form.twigindex 17bd9ac029..212c481abd 100644--- a/resources/views/import/bank/form.twig+++ b/resources/views/import/bank/form.twig@@ -25,8 +25,8 @@<table class="table"><thead><tr>- <th colspan="2">Account</th>- <th>Current balance</th>+ <th colspan="2">{{ 'list.account'|_ }}</th>+ <th>{{ 'list.currentBalance'|_ }}</th></tr></thead><tbody>diff --git a/resources/views/import/index.twig b/resources/views/import/index.twigindex 1c10f69481..8e2876dc52 100644--- a/resources/views/import/index.twig+++ b/resources/views/import/index.twig@@ -25,7 +25,7 @@{# file import #}<a href="{{ route('import.file.index') }}" class="btn btn-app"><i class="fa fa-file-text-o"></i>- Import a (CSV) file+ {{ 'import_general_index_csv_file'|_ }}</a>{# bunq import #}{#diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twigindex 9413b94dfc..1c900ad955 100644--- a/resources/views/layout/default.twig+++ b/resources/views/layout/default.twig@@ -58,7 +58,7 @@<nav class="navbar navbar-static-top" role="navigation"><!-- Sidebar toggle button--><a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">- <span class="sr-only">Toggle navigation</span>+ <span class="sr-only">{{ 'toggleNavigation'|_ }}</span></a><!-- Navbar Right Menu --><div class="navbar-custom-menu">@@ -143,7 +143,7 @@<footer class="main-footer"><div class="pull-right hidden-xs">- <b>Version</b> {{ Config.get('firefly.version') }}+ <b>{{ 'version'|_ }}</b> {{ Config.get('firefly.version') }}</div><strong><a href="https://github.com/firefly-iii/firefly-iii">Firefly III</a></strong></footer>diff --git a/resources/views/list/bills.twig b/resources/views/list/bills.twigindex 85c2c05431..d848470588 100644--- a/resources/views/list/bills.twig+++ b/resources/views/list/bills.twig@@ -113,7 +113,7 @@<td class="hidden-sm hidden-xs" data-value="{{ entry.repeat_freq }}{{ entry.skip }}">{{ entry.repeat_freq|_ }}{% if entry.skip > 0 %}- skips over {{ entry.skip }}+ {{ 'skips_over'|_ }} {{ entry.skip }}{% endif %}</td></tr>diff --git a/resources/views/list/piggy-bank-events.twig b/resources/views/list/piggy-bank-events.twigindex df71625b69..89b20f1710 100644--- a/resources/views/list/piggy-bank-events.twig+++ b/resources/views/list/piggy-bank-events.twig@@ -1,7 +1,7 @@<table class="table table-hover"><tr>{% if showPiggyBank %}- <th>Piggy bank</th>+ <th>{{ trans('list.piggy_bank') }}</th>{% endif %}<th>{{ trans('list.date') }}</th><th>{{ trans('list.amount') }}</th>diff --git a/resources/views/rules/index.twig b/resources/views/rules/index.twigindex e564d22f84..217d342bab 100644--- a/resources/views/rules/index.twig+++ b/resources/views/rules/index.twig@@ -119,7 +119,7 @@{% if rule.active %}{{ rule.title }}{% else %}- <s>{{ rule.title }}</s> (inactive)+ <s>{{ rule.title }}</s> ({{ 'inactive'|_|lower }}){% endif %}{% if rule.stop_processing %}<i class="fa fa-stop-circle-o"></i>diff --git a/resources/views/transactions/mass/edit.twig b/resources/views/transactions/mass/edit.twigindex 67aa4df0c8..8b3f253050 100644--- a/resources/views/transactions/mass/edit.twig+++ b/resources/views/transactions/mass/edit.twig@@ -108,9 +108,9 @@<td>{% if journal.transaction_type_type == 'Withdrawal' %}<select class="form-control input-sm" name="budget_id[{{ journal.id }}]">- <option value="0" label="(none)"+ <option value="0" label="({{ 'no_budget'|_ }})"{% if journal.budgets.count == 0 %}selected="selected"{% endif %}- >(none)+ >({{ 'no_budget'|_ }})</option>{% for budget in budgets %}<option value="{{ budget.id }}"{% if budget.id==journal.budgets[0].id %} selected="selected"{% endif %}diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex c723b749d1..0406e0bdbd 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -390,7 +390,7 @@</td><td>{% if transaction.source_account_type == 'Cash account' %}- <span class="text-success">(cash)</span>+ <span class="text-success">({{ 'cash'|_ }})</span>{% else %}<a href="{{ route('accounts.show', transaction.source_account_id) }}">{{ transaction.source_account_name }}</a>{% endif %}@@ -401,7 +401,7 @@</td><td>{% if transaction.destination_account_type == 'Cash account' %}- <span class="text-success">(cash)</span>+ <span class="text-success">({{ 'cash'|_ }})</span>{% else %}<a href="{{ route('accounts.show', transaction.destination_account_id) }}">{{ transaction.destination_account_name }}</a>{% endif %}@@ -478,7 +478,7 @@</div><div class="modal-footer">- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>+ <button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button><button type="submit" class="btn btn-primary">{{ 'submit'|_ }}</button></div></div>