mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on multi-language support
This commit is contained in:
parent
1b7c885367
commit
4c1b33f601
@ -132,8 +132,11 @@ class InvoiceController extends \BaseController {
|
|||||||
return View::make('invoices.deleted');
|
return View::make('invoices.deleted');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Auth::check() || Auth::user()->account_id != $invoice->account_id)
|
||||||
|
{
|
||||||
Activity::viewInvoice($invitation);
|
Activity::viewInvoice($invitation);
|
||||||
Event::fire('invoice.viewed', $invoice);
|
Event::fire('invoice.viewed', $invoice);
|
||||||
|
}
|
||||||
|
|
||||||
$client->account->loadLocalizationSettings();
|
$client->account->loadLocalizationSettings();
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ return array(
|
|||||||
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
||||||
'invoice_link_message' => 'To view your client invoice click the link below:',
|
'invoice_link_message' => 'To view your client invoice click the link below:',
|
||||||
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
||||||
'notification_sent_subject' => 'Invoice :invoice was sent by :client',
|
'notification_sent_subject' => 'Invoice :invoice was sent to :client',
|
||||||
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
||||||
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
||||||
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
||||||
|
@ -262,7 +262,7 @@ return array(
|
|||||||
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
||||||
'invoice_link_message' => 'To view your client invoice click the link below:',
|
'invoice_link_message' => 'To view your client invoice click the link below:',
|
||||||
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
||||||
'notification_sent_subject' => 'Invoice :invoice was sent by :client',
|
'notification_sent_subject' => 'Invoice :invoice was sent to :client',
|
||||||
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
||||||
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
||||||
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
||||||
|
@ -261,7 +261,7 @@ return array(
|
|||||||
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
||||||
'invoice_link_message' => 'To view your client invoice click the link below:',
|
'invoice_link_message' => 'To view your client invoice click the link below:',
|
||||||
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
||||||
'notification_sent_subject' => 'Invoice :invoice was sent by :client',
|
'notification_sent_subject' => 'Invoice :invoice was sent to :client',
|
||||||
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
||||||
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
||||||
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
||||||
|
@ -262,7 +262,7 @@ return array(
|
|||||||
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
||||||
'invoice_link_message' => 'To view your client invoice click the link below:',
|
'invoice_link_message' => 'To view your client invoice click the link below:',
|
||||||
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
||||||
'notification_sent_subject' => 'Invoice :invoice was sent by :client',
|
'notification_sent_subject' => 'Invoice :invoice was sent to :client',
|
||||||
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
||||||
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
||||||
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
||||||
|
@ -262,7 +262,7 @@ return array(
|
|||||||
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
||||||
'invoice_link_message' => 'To view your client invoice click the link below:',
|
'invoice_link_message' => 'To view your client invoice click the link below:',
|
||||||
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
||||||
'notification_sent_subject' => 'Invoice :invoice was sent by :client',
|
'notification_sent_subject' => 'Invoice :invoice was sent to :client',
|
||||||
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
||||||
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
||||||
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
||||||
|
@ -261,7 +261,7 @@ return array(
|
|||||||
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
'user_email_footer' => 'To adjust your email notification settings please visit http://www.invoiceninja.com/company/notifications',
|
||||||
'invoice_link_message' => 'To view your client invoice click the link below:',
|
'invoice_link_message' => 'To view your client invoice click the link below:',
|
||||||
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
'notification_paid_subject' => 'Invoice :invoice was paid by :client',
|
||||||
'notification_sent_subject' => 'Invoice :invoice was sent by :client',
|
'notification_sent_subject' => 'Invoice :invoice was sent to :client',
|
||||||
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
'notification_viewed_subject' => 'Invoice :invoice was viewed by :client',
|
||||||
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
'notification_paid' => 'A payment of :amount was made by client :client towards Invoice :invoice.',
|
||||||
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
'notification_sent' => 'The following client :client was emailed Invoice :invoice for :amount.',
|
||||||
|
@ -471,6 +471,12 @@
|
|||||||
$('input[name=client]').val({{ $client->public_id }});
|
$('input[name=client]').val({{ $client->public_id }});
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
if (clients.length == 0) {
|
||||||
|
$('.client_select input.form-control').prop('disabled', true);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
var $input = $('select#client');
|
var $input = $('select#client');
|
||||||
$input.combobox().on('change', function(e) {
|
$input.combobox().on('change', function(e) {
|
||||||
var clientId = parseInt($('input[name=client]').val(), 10);
|
var clientId = parseInt($('input[name=client]').val(), 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user