Translate hard-coded strings.

This commit is contained in:
koziolek
2017-11-03 14:53:00 +01:00
parent ca5249d839
commit 62998f8d69
12 changed files with 30 additions and 23 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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 #}
{#

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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 %}

View File

@@ -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>