1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
Make „Manual entry“ translatable
This commit is contained in:
Holger Lösken 2016-06-30 14:38:55 +02:00
parent cbe39f9aaf
commit ae78a177b0
6 changed files with 6 additions and 3 deletions

View File

@ -372,7 +372,7 @@ class ClientPortalController extends BaseController
return Datatable::query($payments) return Datatable::query($payments)
->addColumn('invoice_number', function ($model) { return $model->invitation_key ? link_to('/view/'.$model->invitation_key, $model->invoice_number)->toHtml() : $model->invoice_number; }) ->addColumn('invoice_number', function ($model) { return $model->invitation_key ? link_to('/view/'.$model->invitation_key, $model->invoice_number)->toHtml() : $model->invoice_number; })
->addColumn('transaction_reference', function ($model) { return $model->transaction_reference ? $model->transaction_reference : '<i>Manual entry</i>'; }) ->addColumn('transaction_reference', function ($model) { return $model->transaction_reference ? $model->transaction_reference : '<i>'.trans('manual_entry').'</i>'; })
->addColumn('payment_type', function ($model) { return ($model->payment_type && !$model->last4) ? $model->payment_type : ($model->account_gateway_id ? '<i>Online payment</i>' : ''); }) ->addColumn('payment_type', function ($model) { return ($model->payment_type && !$model->last4) ? $model->payment_type : ($model->account_gateway_id ? '<i>Online payment</i>' : ''); })
->addColumn('amount', function ($model) { return Utils::formatMoney($model->amount, $model->currency_id, $model->country_id); }) ->addColumn('amount', function ($model) { return Utils::formatMoney($model->amount, $model->currency_id, $model->country_id); })
->addColumn('payment_date', function ($model) { return Utils::dateToString($model->payment_date); }) ->addColumn('payment_date', function ($model) { return Utils::dateToString($model->payment_date); })

View File

@ -43,7 +43,7 @@ class PaymentDatatable extends EntityDatatable
[ [
'transaction_reference', 'transaction_reference',
function ($model) { function ($model) {
return $model->transaction_reference ? $model->transaction_reference : '<i>Manual entry</i>'; return $model->transaction_reference ? $model->transaction_reference : '<i>'.trans('manual_entry').'</i>';
} }
], ],
[ [

View File

@ -25,6 +25,7 @@ return array(
'size_id' => 'Firmengröße', 'size_id' => 'Firmengröße',
'industry_id' => 'Kategorie', 'industry_id' => 'Kategorie',
'private_notes' => 'Notizen', 'private_notes' => 'Notizen',
'manual_entry' => 'Manuelle Eingabe',
// invoice // invoice
'invoice' => 'Rechnung', 'invoice' => 'Rechnung',

View File

@ -1360,6 +1360,7 @@ $LANG = array(
'added_on' => 'Added :date', 'added_on' => 'Added :date',
'failed_remove_payment_method' => 'Failed to remove the payment method', 'failed_remove_payment_method' => 'Failed to remove the payment method',
'gateway_exists' => 'This gateway already exists', 'gateway_exists' => 'This gateway already exists',
'manual_entry' => 'Manual entry',
); );

View File

@ -558,7 +558,7 @@ return array(
'converted' => 'Modificada', 'converted' => 'Modificada',
//------Texto extraido ----------------------------------------------------------------------------------------- //------Texto extraido -----------------------------------------------------------------------------------------
'<i>Manual entry</i>' => '<i>Entrada Manual</i>', 'manual_entry' => 'Entrada Manual',
// Error // Error
'Whoops, looks like something went wrong.' => 'Vaya, parece que algo salió mal', 'Whoops, looks like something went wrong.' => 'Vaya, parece que algo salió mal',

View File

@ -25,6 +25,7 @@ return array(
'size_id' => 'Taille', 'size_id' => 'Taille',
'industry_id' => 'Secteur', 'industry_id' => 'Secteur',
'private_notes' => 'Note personnelle', 'private_notes' => 'Note personnelle',
'manual_entry' => 'Entrée manuel',
// invoice // invoice
'invoice' => 'Facture', 'invoice' => 'Facture',