mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-10-25 19:52:53 -04:00
Translate country name in PDF #1225
This commit is contained in:
parent
86816cbb66
commit
1619e893fa
@ -103,10 +103,13 @@ class ClientPortalController extends BaseController
|
|||||||
'phone',
|
'phone',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// translate the client country name
|
// translate the country names
|
||||||
if ($invoice->client->country) {
|
if ($invoice->client->country) {
|
||||||
$invoice->client->country->name = trans('texts.country_' . $invoice->client->country->name);
|
$invoice->client->country->name = trans('texts.country_' . $invoice->client->country->name);
|
||||||
}
|
}
|
||||||
|
if ($invoice->account->country) {
|
||||||
|
$invoice->account->country->name = trans('texts.country_' . $invoice->account->country->name);
|
||||||
|
}
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
$paymentTypes = $this->getPaymentTypes($account, $client, $invitation);
|
$paymentTypes = $this->getPaymentTypes($account, $client, $invitation);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user