Fix some usages of translation strings.

This commit is contained in:
Pavel Mironchik
2021-01-01 18:05:43 +06:00
parent ff7cdb8d8b
commit fc7ed0e8e6
5 changed files with 8 additions and 8 deletions

View File

@ -233,7 +233,7 @@ class Bills extends Controller
{
event(new \App\Events\Document\DocumentReceived($bill));
$message = trans('general.messages.marked_received', ['type' => trans_choice('general.bills', 1)]);
$message = trans('documents.messages.marked_received', ['type' => trans_choice('general.bills', 1)]);
flash($message)->success();
@ -251,7 +251,7 @@ class Bills extends Controller
{
event(new \App\Events\Document\DocumentCancelled($bill));
$message = trans('general.messages.marked_cancelled', ['type' => trans_choice('general.bills', 1)]);
$message = trans('documents.messages.marked_cancelled', ['type' => trans_choice('general.bills', 1)]);
flash($message)->success();
@ -310,7 +310,7 @@ class Bills extends Controller
try {
$this->dispatch(new CreateBankingDocumentTransaction($bill, ['type' => 'expense']));
$message = trans('general.messages.marked_paid', ['type' => trans_choice('general.bills', 1)]);
$message = trans('documents.messages.marked_paid', ['type' => trans_choice('general.bills', 1)]);
flash($message)->success();
} catch(\Exception $e) {

View File

@ -251,7 +251,7 @@ class Invoices extends Controller
{
event(new \App\Events\Document\DocumentCancelled($invoice));
$message = trans('general.messages.marked_cancelled', ['type' => trans_choice('general.invoices', 1)]);
$message = trans('documents.messages.marked_cancelled', ['type' => trans_choice('general.invoices', 1)]);
flash($message)->success();
@ -360,7 +360,7 @@ class Invoices extends Controller
try {
event(new \App\Events\Document\PaymentReceived($invoice, ['type' => 'income']));
$message = trans('general.messages.marked_paid', ['type' => trans_choice('general.invoices', 1)]);
$message = trans('documents.messages.marked_paid', ['type' => trans_choice('general.invoices', 1)]);
flash($message)->success();
} catch(\Exception $e) {