mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Localization API & PUSH
This commit is contained in:
parent
28cd3e01a7
commit
9744ad69b7
@ -129,9 +129,9 @@ class PushService
|
|||||||
private function entitySentMessage($invoice)
|
private function entitySentMessage($invoice)
|
||||||
{
|
{
|
||||||
if($invoice->is_quote)
|
if($invoice->is_quote)
|
||||||
return "Quote #{$invoice->invoice_number} sent!";
|
return trans("texts.notification_quote_sent_subject", ['invoice' => $invoice->invoice_number, 'client' => $invoice->client->name]);
|
||||||
else
|
else
|
||||||
return "Invoice #{$invoice->invoice_number} sent";
|
return trans("texts.notification_invoice_sent_subject", ['invoice' => $invoice->invoice_number, 'client' => $invoice->client->name]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ class PushService
|
|||||||
*/
|
*/
|
||||||
private function invoicePaidMessage($invoice)
|
private function invoicePaidMessage($invoice)
|
||||||
{
|
{
|
||||||
return "Invoice #{$invoice->invoice_number} paid!";
|
return trans("texts.notification_invoice_paid_subject", ['invoice' => $invoice->invoice_number, 'client' => $invoice->client->name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -150,7 +150,7 @@ class PushService
|
|||||||
*/
|
*/
|
||||||
private function quoteApprovedMessage($invoice)
|
private function quoteApprovedMessage($invoice)
|
||||||
{
|
{
|
||||||
return "Quote #{$invoice->invoice_number} approved!";
|
return trans("texts.notification_quote_approved_subject", ['invoice' => $invoice->invoice_number, 'client' => $invoice->client->name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -160,9 +160,9 @@ class PushService
|
|||||||
private function entityViewedMessage($invoice)
|
private function entityViewedMessage($invoice)
|
||||||
{
|
{
|
||||||
if($invoice->is_quote)
|
if($invoice->is_quote)
|
||||||
return "Quote #{$invoice->invoice_number} viewed!";
|
return trans("texts.notification_quote_viewed_subject", ['invoice' => $invoice->invoice_number, 'client' => $invoice->client->name]);
|
||||||
else
|
else
|
||||||
return "Invoice #{$invoice->invoice_number} viewed!";
|
return trans("texts.notification_invoice_viewed_subject", ['invoice' => $invoice->invoice_number, 'client' => $invoice->client->name]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user