Translations for tinymce
This commit is contained in:
parent
e1a3db272b
commit
d55ebd433a
|
|
@ -89,8 +89,8 @@ class SearchController extends Controller
|
||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
// 'index' => 'clients,invoices,client_contacts',
|
// 'index' => 'clients,invoices,client_contacts',
|
||||||
// 'index' => 'clients,invoices,client_contacts,quotes,expenses,credits,recurring_invoices,vendors,vendor_contacts,purchase_orders,projects',
|
'index' => 'clients,invoices,client_contacts,quotes,expenses_v2,credits,recurring_invoices,vendors,vendor_contacts,purchase_orders,projects',
|
||||||
'index' => 'clients_v2,invoices_v2,client_contacts_v2,quotes_v2,expenses_v2,credits_v2,recurring_invoices_v2,vendors_v2,vendor_contacts_v2,purchase_orders_v2,projects_v2,tasks_v2',
|
// 'index' => 'clients_v2,invoices_v2,client_contacts_v2,quotes_v2,expenses_v2,credits_v2,recurring_invoices_v2,vendors_v2,vendor_contacts_v2,purchase_orders_v2,projects_v2,tasks_v2',
|
||||||
'body' => [
|
'body' => [
|
||||||
'query' => [
|
'query' => [
|
||||||
'bool' => [
|
'bool' => [
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ class Client extends BaseModel implements HasLocalePreference
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'clients_v2';
|
return 'clients';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $presenter = ClientPresenter::class;
|
protected $presenter = ClientPresenter::class;
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
||||||
|
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'client_contacts_v2';
|
return 'client_contacts';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toSearchableArray()
|
public function toSearchableArray()
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ class Credit extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'credits_v2';
|
return 'credits';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $presenter = CreditPresenter::class;
|
protected $presenter = CreditPresenter::class;
|
||||||
|
|
|
||||||
|
|
@ -253,14 +253,9 @@ class Invoice extends BaseModel
|
||||||
|
|
||||||
public const STATUS_UNPAID = -2; //status < 4 || < 3 && !is_deleted && !trashed()
|
public const STATUS_UNPAID = -2; //status < 4 || < 3 && !is_deleted && !trashed()
|
||||||
|
|
||||||
// public function searchableAs()
|
|
||||||
// {
|
|
||||||
// return 'invoices_index'; // for when we need to rename
|
|
||||||
// }
|
|
||||||
|
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'invoices_v2';
|
return 'invoices';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toSearchableArray()
|
public function toSearchableArray()
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ class Project extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'projects_v2';
|
return 'projects';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ class PurchaseOrder extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'purchase_orders_v2';
|
return 'purchase_orders';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $hidden = [
|
protected $hidden = [
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ class Quote extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'quotes_v2';
|
return 'quotes';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $presenter = QuotePresenter::class;
|
protected $presenter = QuotePresenter::class;
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ class RecurringInvoice extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'recurring_invoices_v2';
|
return 'recurring_invoices';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toSearchableArray()
|
public function toSearchableArray()
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ class Task extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'tasks_v2';
|
return 'tasks';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getEntityType()
|
public function getEntityType()
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ class Vendor extends BaseModel
|
||||||
*/
|
*/
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'vendors_v2';
|
return 'vendors';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ class VendorContact extends Authenticatable implements HasLocalePreference
|
||||||
|
|
||||||
public function searchableAs(): string
|
public function searchableAs(): string
|
||||||
{
|
{
|
||||||
return 'vendor_contacts_v2';
|
return 'vendor_contacts';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toSearchableArray()
|
public function toSearchableArray()
|
||||||
|
|
|
||||||
|
|
@ -331,6 +331,7 @@ class PdfMock
|
||||||
'$city_state_postal' => "{$this->settings->city}, {$this->settings->state}, {$this->settings->postal_code}",
|
'$city_state_postal' => "{$this->settings->city}, {$this->settings->state}, {$this->settings->postal_code}",
|
||||||
'$contact.full_name' => 'Benedict Eichmann',
|
'$contact.full_name' => 'Benedict Eichmann',
|
||||||
'$contact.last_name' => 'Eichmann',
|
'$contact.last_name' => 'Eichmann',
|
||||||
|
'$verifactu_qr_code' => '',
|
||||||
'$company.country_2' => 'US',
|
'$company.country_2' => 'US',
|
||||||
'$product.product1' => '',
|
'$product.product1' => '',
|
||||||
'$product.product2' => '',
|
'$product.product2' => '',
|
||||||
|
|
@ -659,6 +660,7 @@ class PdfMock
|
||||||
'$custom_surcharge3_label' => ctrans('texts.custom_surcharge3'),
|
'$custom_surcharge3_label' => ctrans('texts.custom_surcharge3'),
|
||||||
'$custom_surcharge4_label' => ctrans('texts.custom_surcharge4'),
|
'$custom_surcharge4_label' => ctrans('texts.custom_surcharge4'),
|
||||||
'$quote.balance_due_label' => ctrans('texts.balance_due'),
|
'$quote.balance_due_label' => ctrans('texts.balance_due'),
|
||||||
|
'$verifactu_qr_code_label' => '',
|
||||||
'$product.product1_label' => ctrans('texts.product1'),
|
'$product.product1_label' => ctrans('texts.product1'),
|
||||||
'$product.product2_label' => ctrans('texts.product2'),
|
'$product.product2_label' => ctrans('texts.product2'),
|
||||||
'$product.product3_label' => ctrans('texts.product3'),
|
'$product.product3_label' => ctrans('texts.product3'),
|
||||||
|
|
|
||||||
|
|
@ -5664,6 +5664,8 @@ $lang = array(
|
||||||
'invoice_period_help' => 'Defines the time period for which the services were provided.',
|
'invoice_period_help' => 'Defines the time period for which the services were provided.',
|
||||||
'paused_recurring_invoice_helper' => 'Caution! When restarting a recurring invoice, ensure the next send date is in the future.',
|
'paused_recurring_invoice_helper' => 'Caution! When restarting a recurring invoice, ensure the next send date is in the future.',
|
||||||
'thank_you_for_feedback' => 'Thank you for your feedback!',
|
'thank_you_for_feedback' => 'Thank you for your feedback!',
|
||||||
|
'use_legacy_editor' => 'Use Legacy Wysiwyg Editor',
|
||||||
|
'use_legacy_editor_help' => 'Use the TinyMCE editor.',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $lang;
|
return $lang;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue