Nieuw vertalingen [skip ci]

This commit is contained in:
James Cole 2015-05-14 15:53:56 +02:00
parent 4fc9966392
commit d66426c137
8 changed files with 47 additions and 22 deletions

View File

@ -31,7 +31,7 @@ class PiggyBankController extends Controller
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
View::share('title', 'Piggy banks'); View::share('title', trans('firefly.piggyBanks'));
View::share('mainTitleIcon', 'fa-sort-amount-asc'); View::share('mainTitleIcon', 'fa-sort-amount-asc');
} }

View File

@ -22,7 +22,7 @@ class PreferencesController extends Controller
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
View::share('title', 'Preferences'); View::share('title', trans('firefly.preferences'));
View::share('mainTitleIcon', 'fa-gear'); View::share('mainTitleIcon', 'fa-gear');
} }

View File

@ -30,7 +30,7 @@ class TransactionController extends Controller
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
View::share('title', 'Transactions'); View::share('title', trans('firefly.transactions'));
View::share('mainTitleIcon', 'fa-repeat'); View::share('mainTitleIcon', 'fa-repeat');
} }
@ -182,19 +182,19 @@ class TransactionController extends Controller
case 'expenses': case 'expenses':
case 'withdrawal': case 'withdrawal':
$subTitleIcon = 'fa-long-arrow-left'; $subTitleIcon = 'fa-long-arrow-left';
$subTitle = 'Expenses'; $subTitle = trans('firefly.expenses');
$types = ['Withdrawal']; $types = ['Withdrawal'];
break; break;
case 'revenue': case 'revenue':
case 'deposit': case 'deposit':
$subTitleIcon = 'fa-long-arrow-right'; $subTitleIcon = 'fa-long-arrow-right';
$subTitle = 'Revenue, income and deposits'; $subTitle = trans('firefly.income');
$types = ['Deposit']; $types = ['Deposit'];
break; break;
case 'transfer': case 'transfer':
case 'transfers': case 'transfers':
$subTitleIcon = 'fa-exchange'; $subTitleIcon = 'fa-exchange';
$subTitle = 'Transfers'; $subTitle = trans('firefly.transfers');
$types = ['Transfer']; $types = ['Transfer'];
break; break;
} }

View File

@ -50,6 +50,9 @@ return [
'assetAccounts' => 'Asset accounts', 'assetAccounts' => 'Asset accounts',
'expenseAccounts' => 'Expense accounts', 'expenseAccounts' => 'Expense accounts',
'revenueAccounts' => 'Revenue accounts', 'revenueAccounts' => 'Revenue accounts',
'Asset account' => 'Asset account',
'Expense account' => 'Expense account',
'Revenue Account' => 'Revenue account',
'budgets' => 'Budgets', 'budgets' => 'Budgets',
'categories' => 'Categories', 'categories' => 'Categories',
'tags' => 'Tags', 'tags' => 'Tags',
@ -65,7 +68,14 @@ return [
'withdrawal' => 'Withdrawal', 'withdrawal' => 'Withdrawal',
'deposit' => 'Deposit', 'deposit' => 'Deposit',
'transfer' => 'Transfer', 'transfer' => 'Transfer',
'Withdrawal' => 'Withdrawal',
'Deposit' => 'Deposit',
'Transfer' => 'Transfer',
'bill' => 'Rekening', 'bill' => 'Rekening',
'yes' => 'Yes',
'no' => 'No',
'amount' => 'Amount',
'newBalance' => 'New balance',
// charts: // charts:
'dayOfMonth' => 'Day of the month', 'dayOfMonth' => 'Day of the month',

View File

@ -25,5 +25,7 @@ return [
'bill' => 'Bill', 'bill' => 'Bill',
'withdrawal' => 'Withdrawal', 'withdrawal' => 'Withdrawal',
'deposit' => 'Deposit', 'deposit' => 'Deposit',
'transfer' => 'Transfer' 'transfer' => 'Transfer',
'type' => 'Type',
'completed' => 'Completed',
]; ];

View File

@ -50,6 +50,9 @@ return [
'assetAccounts' => 'Betaalrekeningen', 'assetAccounts' => 'Betaalrekeningen',
'expenseAccounts' => 'Crediteuren', 'expenseAccounts' => 'Crediteuren',
'revenueAccounts' => 'Debiteuren', 'revenueAccounts' => 'Debiteuren',
'Asset account' => 'Betaalrekening',
'Expense account' => 'Crediteur',
'Revenue Account' => 'Debiteur',
'budgets' => 'Budgetten', 'budgets' => 'Budgetten',
'categories' => 'Categorieën', 'categories' => 'Categorieën',
'tags' => 'Tags', 'tags' => 'Tags',
@ -65,7 +68,14 @@ return [
'withdrawal' => 'Uitgave', 'withdrawal' => 'Uitgave',
'deposit' => 'Inkomsten', 'deposit' => 'Inkomsten',
'transfer' => 'Overschrijving', 'transfer' => 'Overschrijving',
'Withdrawal' => 'Uitgave',
'Deposit' => 'Inkomsten',
'Transfer' => 'Overschrijving',
'bill' => 'Rekening', 'bill' => 'Rekening',
'yes' => 'Ja',
'no' => 'Nee',
'amount' => 'Bedrag',
'newBalance' => 'Nieuw saldo',
// charts: // charts:
'dayOfMonth' => 'Dag vd maand', 'dayOfMonth' => 'Dag vd maand',

View File

@ -25,5 +25,8 @@ return [
'bill' => 'Rekening', 'bill' => 'Rekening',
'withdrawal' => 'Uitgave', 'withdrawal' => 'Uitgave',
'deposit' => 'Inkomsten', 'deposit' => 'Inkomsten',
'transfer' => 'Overschrijving' 'transfer' => 'Overschrijving',
'type' => 'Type',
'completed' => 'Opgeslagen'
]; ];

View File

@ -10,38 +10,38 @@
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<tr> <tr>
<td>Date</td> <td>{{ trans('list.date') }}</td>
<td>{{ journal.date.format('jS F Y') }}</td> <td>{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>
</tr> </tr>
<tr> <tr>
<td>Type</td> <td>{{ trans('list.type') }}</td>
<td>{{ journal.transactiontype.type }}</td> <td>{{ journal.transactiontype.type|_ }}</td>
</tr> </tr>
<tr> <tr>
<td>Completed</td> <td>{{ trans('list.completed') }}</td>
<td> <td>
{% if journal.completed %} {% if journal.completed %}
<span class="text-success">Yes</span> <span class="text-success">{{ 'yes'|_ }}</span>
{% else %} {% else %}
<span class="text-danger">No</span> <span class="text-danger">{{ 'no'|_ }}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
{% for budget in journal.budgets %} {% for budget in journal.budgets %}
<tr> <tr>
<td>Budget</td> <td>{{ 'budget'|_ }}</td>
<td><a href="{{route('budgets.show',budget.id)}}">{{ budget.name }}</a></td> <td><a href="{{route('budgets.show',budget.id)}}">{{ budget.name }}</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
{% for category in journal.categories %} {% for category in journal.categories %}
<tr> <tr>
<td>Category</td> <td>{{ 'category'|_ }}</td>
<td><a href="{{route('categories.show',category.id)}}">{{ category.name }}</a></td> <td><a href="{{route('categories.show',category.id)}}">{{ category.name }}</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
{% if journal.tags|length > 0 %} {% if journal.tags|length > 0 %}
<tr> <tr>
<td>Tags</td> <td>{{ 'tags'|_ }}</td>
<td> <td>
{% for tag in journal.tags %} {% for tag in journal.tags %}
@ -67,7 +67,7 @@
{% if journal.piggyBankEvents|length > 0 %} {% if journal.piggyBankEvents|length > 0 %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Piggy banks {{ 'piggyBanks'|_ }}
</div> </div>
<div class="panel-body"> <div class="panel-body">
{% include 'list/piggy-bank-events' with {'events': journal.piggyBankEvents, 'showPiggyBank':true} %} {% include 'list/piggy-bank-events' with {'events': journal.piggyBankEvents, 'showPiggyBank':true} %}
@ -96,15 +96,15 @@
{% if t.account.accounttype.type == 'Revenue account' %} {% if t.account.accounttype.type == 'Revenue account' %}
<i class="fa fa-download fa-fw"></i> <i class="fa fa-download fa-fw"></i>
{% endif %} {% endif %}
<a href="{{route('accounts.show',t.account.id)}}">{{ t.account.name }}</a><br /><small>{{ t.account.accounttype.description }}</small> <a href="{{route('accounts.show',t.account.id)}}">{{ t.account.name }}</a> <small>({{ t.account.accounttype.type|_ }})</small>
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<tr> <tr>
<td>Amount</td> <td>{{ 'amount'|_ }}</td>
<td>{{ t|formatTransaction }}</td> <td>{{ t|formatTransaction }}</td>
</tr> </tr>
<tr> <tr>
<td>New balance</td> <td>{{ 'newBalance'|_ }}</td>
<td>{{ t.before|formatAmount }} &rarr; {{ t.after|formatAmount }}</td> <td>{{ t.before|formatAmount }} &rarr; {{ t.after|formatAmount }}</td>
</tr> </tr>
{% if t.description %} {% if t.description %}