Translations for tinymce

This commit is contained in:
David Bomba 2025-11-23 19:24:35 +11:00
parent e1a3db272b
commit d55ebd433a
14 changed files with 17 additions and 18 deletions

View File

@ -89,8 +89,8 @@ class SearchController extends Controller
$params = [
// 'index' => 'clients,invoices,client_contacts',
// 'index' => 'clients,invoices,client_contacts,quotes,expenses,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,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',
'body' => [
'query' => [
'bool' => [

View File

@ -143,7 +143,7 @@ class Client extends BaseModel implements HasLocalePreference
*/
public function searchableAs(): string
{
return 'clients_v2';
return 'clients';
}
protected $presenter = ClientPresenter::class;

View File

@ -171,7 +171,7 @@ class ClientContact extends Authenticatable implements HasLocalePreference
public function searchableAs(): string
{
return 'client_contacts_v2';
return 'client_contacts';
}
public function toSearchableArray()

View File

@ -155,7 +155,7 @@ class Credit extends BaseModel
*/
public function searchableAs(): string
{
return 'credits_v2';
return 'credits';
}
protected $presenter = CreditPresenter::class;

View File

@ -253,14 +253,9 @@ class Invoice extends BaseModel
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
{
return 'invoices_v2';
return 'invoices';
}
public function toSearchableArray()

View File

@ -85,7 +85,7 @@ class Project extends BaseModel
*/
public function searchableAs(): string
{
return 'projects_v2';
return 'projects';
}
protected $fillable = [

View File

@ -141,7 +141,7 @@ class PurchaseOrder extends BaseModel
*/
public function searchableAs(): string
{
return 'purchase_orders_v2';
return 'purchase_orders';
}
protected $hidden = [

View File

@ -142,7 +142,7 @@ class Quote extends BaseModel
*/
public function searchableAs(): string
{
return 'quotes_v2';
return 'quotes';
}
protected $presenter = QuotePresenter::class;

View File

@ -280,7 +280,7 @@ class RecurringInvoice extends BaseModel
*/
public function searchableAs(): string
{
return 'recurring_invoices_v2';
return 'recurring_invoices';
}
public function toSearchableArray()

View File

@ -132,7 +132,7 @@ class Task extends BaseModel
*/
public function searchableAs(): string
{
return 'tasks_v2';
return 'tasks';
}
public function getEntityType()

View File

@ -111,7 +111,7 @@ class Vendor extends BaseModel
*/
public function searchableAs(): string
{
return 'vendors_v2';
return 'vendors';
}
protected $fillable = [

View File

@ -128,7 +128,7 @@ class VendorContact extends Authenticatable implements HasLocalePreference
public function searchableAs(): string
{
return 'vendor_contacts_v2';
return 'vendor_contacts';
}
public function toSearchableArray()

View File

@ -331,6 +331,7 @@ class PdfMock
'$city_state_postal' => "{$this->settings->city}, {$this->settings->state}, {$this->settings->postal_code}",
'$contact.full_name' => 'Benedict Eichmann',
'$contact.last_name' => 'Eichmann',
'$verifactu_qr_code' => '',
'$company.country_2' => 'US',
'$product.product1' => '',
'$product.product2' => '',
@ -659,6 +660,7 @@ class PdfMock
'$custom_surcharge3_label' => ctrans('texts.custom_surcharge3'),
'$custom_surcharge4_label' => ctrans('texts.custom_surcharge4'),
'$quote.balance_due_label' => ctrans('texts.balance_due'),
'$verifactu_qr_code_label' => '',
'$product.product1_label' => ctrans('texts.product1'),
'$product.product2_label' => ctrans('texts.product2'),
'$product.product3_label' => ctrans('texts.product3'),

View File

@ -5664,6 +5664,8 @@ $lang = array(
'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.',
'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;