1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Fixes for translations

This commit is contained in:
David Bomba 2021-05-07 14:28:34 +10:00
parent ce6cea837a
commit 5a8644ee78

View File

@ -91,8 +91,16 @@ class CreateEntityPdf implements ShouldQueue
public function handle() public function handle()
{ {
/* Set the locale*/
App::setLocale($this->contact->preferredLocale()); App::setLocale($this->contact->preferredLocale());
/* Forget the singleton*/
App::forgetInstance('translator'); App::forgetInstance('translator');
/* Init a new copy of the translator*/
$t = app('translator');
/* Set customized translations _NOW_ */
Lang::replace(Ninja::transformTranslations($this->entity->client->getMergedSettings())); Lang::replace(Ninja::transformTranslations($this->entity->client->getMergedSettings()));
$this->entity->service()->deletePdf(); $this->entity->service()->deletePdf();