diff --git a/cp/resources/views/partials/js-applications.twig b/cp/resources/views/partials/js-applications.twig index 826fc51..a083daa 100644 --- a/cp/resources/views/partials/js-applications.twig +++ b/cp/resources/views/partials/js-applications.twig @@ -124,9 +124,9 @@ if (e.target.closest('.delete-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to delete this application?", + title: "{{ __('Are you sure you want to delete this application?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url'); @@ -137,7 +137,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-contacts.twig b/cp/resources/views/partials/js-contacts.twig index 0ebb918..97c6b58 100644 --- a/cp/resources/views/partials/js-contacts.twig +++ b/cp/resources/views/partials/js-contacts.twig @@ -94,17 +94,17 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Identifier", field:"identifier", width:250, headerSort:false, formatter: contactLinkFormatter, responsive:0}, - {title:"Email", field:"email", width:300, minWidth:200, headerSort:false, responsive:2}, - {title:"Phone", field:"voice", width:300, minWidth:200, headerSort:false, responsive:2}, - {title:"Status", field:"contact_status", width:200, minWidth:100, formatter: statusFormatter, headerSort:false, download:false, responsive:2}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ + {title:"{{ __('Identifier') }}", field:"identifier", width:250, headerSort:false, formatter: contactLinkFormatter, responsive:0}, + {title:"{{ __('Email') }}", field:"email", width:300, minWidth:200, headerSort:false, responsive:2}, + {title:"{{ __('Phone') }}", field:"voice", width:300, minWidth:200, headerSort:false, responsive:2}, + {title:"{{ __('Status') }}", field:"contact_status", width:200, minWidth:100, formatter: statusFormatter, headerSort:false, download:false, responsive:2}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ if (e.target.closest('.delete-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to delete this contact?", + title: "{{ __('Are you sure you want to delete this contact?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url'); @@ -115,7 +115,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-domains.twig b/cp/resources/views/partials/js-domains.twig index 60a7a05..7b14c3f 100644 --- a/cp/resources/views/partials/js-domains.twig +++ b/cp/resources/views/partials/js-domains.twig @@ -112,18 +112,18 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Name", field:"name", width:200, headerSort:false, formatter: domainLinkFormatter, responsive:0}, - {title:"Registrant", width:200, field:"registrant.identifier", headerSort:false, responsive:2}, - {title:"Creation Date", width:250, minWidth:150, field:"crdate", headerSort:false, responsive:2}, - {title:"Expiration Date", width:250, minWidth:150, field:"exdate", headerSort:false, responsive:2}, - {title:"Status", width:150, field:"domain_status", formatter: statusFormatter, headerSort:false, download:false, responsive:2}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ + {title:"{{ __('Name') }}", field:"name", width:200, headerSort:false, formatter: domainLinkFormatter, responsive:0}, + {title:"{{ __('Registrant') }}", width:200, field:"registrant.identifier", headerSort:false, responsive:2}, + {title:"{{ __('Creation Date') }}", width:250, minWidth:150, field:"crdate", headerSort:false, responsive:2}, + {title:"{{ __('Expiration Date') }}", width:250, minWidth:150, field:"exdate", headerSort:false, responsive:2}, + {title:"{{ __('Status') }}", width:150, field:"domain_status", formatter: statusFormatter, headerSort:false, download:false, responsive:2}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ if (e.target.closest('.delete-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to delete this domain?", + title: "{{ __('Are you sure you want to delete this domain?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url'); @@ -133,9 +133,9 @@ } else if (e.target.closest('.restore-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to restore this domain?", + title: "{{ __('Are you sure you want to restore this domain?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let restoreUrl = e.target.closest('.restore-btn').getAttribute('data-restore-url'); @@ -145,9 +145,9 @@ } else if (e.target.closest('.report-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to submit restore report for this domain?", + title: "{{ __('Are you sure you want to submit restore report for this domain?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let reportUrl = e.target.closest('.report-btn').getAttribute('data-report-url'); @@ -158,7 +158,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-hosts.twig b/cp/resources/views/partials/js-hosts.twig index c0a245b..1751c2c 100644 --- a/cp/resources/views/partials/js-hosts.twig +++ b/cp/resources/views/partials/js-hosts.twig @@ -93,16 +93,16 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Name", field:"name", width:300, headerSort:false, formatter: hostLinkFormatter, responsive:0}, - {title:"Creation Date", field:"crdate", width:300, minWidth:200, headerSort:false, responsive:2}, - {title:"Status", field:"host_status", width:300, minWidth:200, formatter: statusFormatter, headerSort:false, download:false, responsive:2}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ + {title:"{{ __('Name') }}", field:"name", width:300, headerSort:false, formatter: hostLinkFormatter, responsive:0}, + {title:"{{ __('Creation Date') }}", field:"crdate", width:300, minWidth:200, headerSort:false, responsive:2}, + {title:"{{ __('Status') }}", field:"host_status", width:300, minWidth:200, formatter: statusFormatter, headerSort:false, download:false, responsive:2}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ if (e.target.closest('.delete-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to delete this host?", + title: "{{ __('Are you sure you want to delete this host?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let deleteUrl = e.target.closest('.delete-btn').getAttribute('data-delete-url'); @@ -113,7 +113,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); diff --git a/cp/resources/views/partials/js-invoices.twig b/cp/resources/views/partials/js-invoices.twig index 9aebea0..9ff9db9 100644 --- a/cp/resources/views/partials/js-invoices.twig +++ b/cp/resources/views/partials/js-invoices.twig @@ -37,19 +37,19 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Number", field:"invoice_number", width:200, headerSort:true, formatter: invoiceLinkFormatter, responsive:0}, - {title:"Registrar", field:"registrar_id.name", width:300, headerSort:true, responsive:0}, - {title:"Date", field:"issue_date", width:300, headerSort:true, responsive:0}, - {title:"Amount", field:"total_amount", width:200, headerSort:true, responsive:0, formatter:"money", formatterParams:{ + {title:"{{ __('Number') }}", field:"invoice_number", width:200, headerSort:true, formatter: invoiceLinkFormatter, responsive:0}, + {title:"{{ __('Registrar') }}", field:"registrar_id.name", width:300, headerSort:true, responsive:0}, + {title:"{{ __('Date') }}", field:"issue_date", width:300, headerSort:true, responsive:0}, + {title:"{{ __('Amount') }}", field:"total_amount", width:200, headerSort:true, responsive:0, formatter:"money", formatterParams:{ decimal:".", thousand:" ", symbol:currency, negativeSign:true, }}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-log.twig b/cp/resources/views/partials/js-log.twig index bf70ab9..e163bf1 100644 --- a/cp/resources/views/partials/js-log.twig +++ b/cp/resources/views/partials/js-log.twig @@ -24,12 +24,12 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:0}, - {title:"Date", field:"date", headerSort:true, responsive:0}, - {title:"Log", field:"log", headerSort:true, responsive:2}, + {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0}, + {title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0}, + {title:"{{ __('Log') }}", field:"log", headerSort:true, responsive:2}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-logs.twig b/cp/resources/views/partials/js-logs.twig index d8d05bd..42a888a 100644 --- a/cp/resources/views/partials/js-logs.twig +++ b/cp/resources/views/partials/js-logs.twig @@ -24,18 +24,18 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Date", field:"cldate", headerSort:true, responsive:0}, - {title:"Registrar", field:"registrar_id", headerSort:true, responsive:2}, - {title:"Command", field:"cmd", headerSort:true, responsive:0}, - {title:"Object Type", field:"obj_type", headerSort:true, responsive:0}, - {title:"Object", field:"obj_id", headerSort:true, responsive:2}, - {title:"Result", field:"code", headerSort:true, responsive:2}, - {title:"Message", field:"msg", headerSort:true, responsive:2, download:false}, - {title:"clTRID", field:"clTRID", headerSort:true, responsive:2, download:false}, - {title:"Milliseconds", field:"svmicrosecond", headerSort:false, download:false, responsive:2}, + {title:"{{ __('Date') }}", field:"cldate", headerSort:true, responsive:0}, + {title:"{{ __('Registrar') }}", field:"registrar_id", headerSort:true, responsive:2}, + {title:"{{ __('Command') }}", field:"cmd", headerSort:true, responsive:0}, + {title:"{{ __('Object Type') }}", field:"obj_type", headerSort:true, responsive:0}, + {title:"{{ __('Object') }}", field:"obj_id", headerSort:true, responsive:2}, + {title:"{{ __('Result') }}", field:"code", headerSort:true, responsive:2}, + {title:"{{ __('Message') }}", field:"msg", headerSort:true, responsive:2, download:false}, + {title:"{{ __('clTRID') }}", field:"clTRID", headerSort:true, responsive:2, download:false}, + {title:"{{ __('Milliseconds') }}", field:"svmicrosecond", headerSort:false, download:false, responsive:2}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-overview.twig b/cp/resources/views/partials/js-overview.twig index ad0ca94..f15377e 100644 --- a/cp/resources/views/partials/js-overview.twig +++ b/cp/resources/views/partials/js-overview.twig @@ -26,10 +26,10 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:0}, - {title:"Date", field:"date", headerSort:true, responsive:2}, - {title:"Description", field:"description", headerSort:true, responsive:2}, - {title:"Amount", field:"amount", headerSort:true, download:false, responsive:0, formatter:"money", formatterParams:{ + {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0}, + {title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:2}, + {title:"{{ __('Description') }}", field:"description", headerSort:true, responsive:2}, + {title:"{{ __('Amount') }}", field:"amount", headerSort:true, download:false, responsive:0, formatter:"money", formatterParams:{ decimal:".", thousand:" ", symbol:currency, @@ -37,7 +37,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-poll.twig b/cp/resources/views/partials/js-poll.twig index f2809fd..9e3471b 100644 --- a/cp/resources/views/partials/js-poll.twig +++ b/cp/resources/views/partials/js-poll.twig @@ -24,14 +24,14 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:2}, - {title:"Date", field:"qdate", headerSort:true, responsive:0}, - {title:"Message", field:"msg", headerSort:true, responsive:0}, - {title:"Message Type", field:"msg_type", headerSort:true, responsive:0}, - {title:"Object", field:"obj_name_or_id", headerSort:true, responsive:2}, + {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:2}, + {title:"{{ __('Date') }}", field:"qdate", headerSort:true, responsive:0}, + {title:"{{ __('Message') }}", field:"msg", headerSort:true, responsive:0}, + {title:"{{ __('Message Type') }}", field:"msg_type", headerSort:true, responsive:0}, + {title:"{{ __('Object') }}", field:"obj_name_or_id", headerSort:true, responsive:2}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-registrars.twig b/cp/resources/views/partials/js-registrars.twig index 0895bab..1ce6188 100644 --- a/cp/resources/views/partials/js-registrars.twig +++ b/cp/resources/views/partials/js-registrars.twig @@ -41,19 +41,19 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Name", field:"name", width:200, headerSort:true, formatter: registrarLinkFormatter, responsive:0}, + {title:"{{ __('Name') }}", field:"name", width:200, headerSort:true, formatter: registrarLinkFormatter, responsive:0}, {title:"IANA ID", field:"iana_id", width:300, headerSort:true, responsive:2}, - {title:"Email", field:"email", width:300, headerSort:true, responsive:2}, - {title:"Balance", field:"accountBalance", width:300, headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{ + {title:"{{ __('Email') }}", field:"email", width:300, headerSort:true, responsive:2}, + {title:"{{ __('Balance') }}", field:"accountBalance", width:300, headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{ decimal:".", thousand:" ", symbol:currency, negativeSign:true, }}, - {title: "Actions", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-reports.twig b/cp/resources/views/partials/js-reports.twig index da4e8c7..b5742fb 100644 --- a/cp/resources/views/partials/js-reports.twig +++ b/cp/resources/views/partials/js-reports.twig @@ -24,16 +24,16 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Date", field:"date", headerSort:true, responsive:0}, - {title:"Total Domains", field:"total_domains", headerSort:true, responsive:0}, - {title:"Created Domains", field:"created_domains", headerSort:true, responsive:2}, - {title:"Renewed Domains", field:"renewed_domains", headerSort:true, responsive:2}, - {title:"Transferred Domains", field:"transfered_domains", headerSort:true, responsive:2}, - {title:"Deleted Domains", field:"deleted_domains", headerSort:true, responsive:2}, - {title:"Restored Domains", field:"restored_domains", headerSort:true, responsive:2, download:false} + {title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0}, + {title:"{{ __('Total Domains') }}", field:"total_domains", headerSort:true, responsive:0}, + {title:"{{ __('Created Domains') }}", field:"created_domains", headerSort:true, responsive:2}, + {title:"{{ __('Renewed Domains') }}", field:"renewed_domains", headerSort:true, responsive:2}, + {title:"{{ __('Transferred Domains') }}", field:"transfered_domains", headerSort:true, responsive:2}, + {title:"{{ __('Deleted Domains') }}", field:"deleted_domains", headerSort:true, responsive:2}, + {title:"{{ __('Restored Domains') }}", field:"restored_domains", headerSort:true, responsive:2, download:false} ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-support.twig b/cp/resources/views/partials/js-support.twig index 90d1253..983baa4 100644 --- a/cp/resources/views/partials/js-support.twig +++ b/cp/resources/views/partials/js-support.twig @@ -76,14 +76,14 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Subject", field:"subject", width:350, minWidth:100, headerSort:true, formatter: ticketLinkFormatter, responsive:0}, - {title:"Category", field:"category_id.name", width:250, minWidth:80, headerSort:true, responsive:0}, - {title:"Status", field:"status", headerSort:true, width:250, minWidth:100, formatter: statusFormatter, responsive:2}, - {title:"Priority", field:"priority", headerSort:true, width:250, minWidth:100, formatter: priorityFormatter, responsive:2}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, + {title:"{{ __('Subject') }}", field:"subject", width:350, minWidth:100, headerSort:true, formatter: ticketLinkFormatter, responsive:0}, + {title:"{{ __('Category') }}", field:"category_id.name", width:250, minWidth:80, headerSort:true, responsive:0}, + {title:"{{ __('Status') }}", field:"status", headerSort:true, width:250, minWidth:100, formatter: statusFormatter, responsive:2}, + {title:"{{ __('Priority') }}", field:"priority", headerSort:true, width:250, minWidth:100, formatter: priorityFormatter, responsive:2}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-tlds.twig b/cp/resources/views/partials/js-tlds.twig index bf9e838..d2cf742 100644 --- a/cp/resources/views/partials/js-tlds.twig +++ b/cp/resources/views/partials/js-tlds.twig @@ -67,12 +67,12 @@ columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"TLD", field:"tld", width:350, minWidth:50, headerSort:true, resizable:false, formatter: tldLinkFormatter, responsive:0}, - { title: "Script", field: "idn_table", width:250, minWidth:80, headerSort:true, resizable:false, formatter: scriptNameFormatter, responsive:2}, + { title: "{{ __('Script') }}", field: "idn_table", width:250, minWidth:80, headerSort:true, resizable:false, formatter: scriptNameFormatter, responsive:2}, {title:"DNSSEC", field:"secure", width:250, minWidth:80, headerSort:true, resizable:false, formatter: secureFormatter, responsive:2}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, resizable:false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, resizable:false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-transactions.twig b/cp/resources/views/partials/js-transactions.twig index 88a5956..750f3f2 100644 --- a/cp/resources/views/partials/js-transactions.twig +++ b/cp/resources/views/partials/js-transactions.twig @@ -25,14 +25,14 @@ ], columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Registrar", field:"registrar_id.name", headerSort:true, responsive:0}, - {title:"Date", field:"date", headerSort:true, responsive:2}, - {title:"Command", field:"command", headerSort:true, responsive:2}, - {title:"Domain", field:"domain_name", headerSort:false, download:false, responsive:0}, - {title:"Length", field:"length_in_months", headerSort:true, responsive:2}, - {title:"From", field:"fromS", headerSort:true, responsive:2}, - {title:"To", field:"toS", headerSort:true, responsive:2}, - {title:"Amount", field:"amount", headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{ + {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0}, + {title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:2}, + {title:"{{ __('Command') }}", field:"command", headerSort:true, responsive:2}, + {title:"{{ __('Domain') }}", field:"domain_name", headerSort:false, download:false, responsive:0}, + {title:"{{ __('Length') }}", field:"length_in_months", headerSort:true, responsive:2}, + {title:"{{ __('From') }}", field:"fromS", headerSort:true, responsive:2}, + {title:"{{ __('To') }}", field:"toS", headerSort:true, responsive:2}, + {title:"{{ __('Amount') }}", field:"amount", headerSort:false, download:false, responsive:2, formatter:"money", formatterParams:{ decimal:".", thousand:" ", symbol:currency, @@ -40,7 +40,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-transfers.twig b/cp/resources/views/partials/js-transfers.twig index 39530e2..4f35058 100644 --- a/cp/resources/views/partials/js-transfers.twig +++ b/cp/resources/views/partials/js-transfers.twig @@ -21,16 +21,16 @@ var clidValue = document.getElementById('clid').value; if (hasPendingStatus && clidValue === '0') { - actionButtons += ` `; - actionButtons += ` `; - actionButtons += ``; + actionButtons += ` `; + actionButtons += ` `; + actionButtons += ``; } else if (clidValue === rowData.reid) { - actionButtons += ` `; + actionButtons += ` `; } else if (clidValue === rowData.acid) { - actionButtons += ` `; - actionButtons += ``; + actionButtons += ` `; + actionButtons += ``; } else { - actionButtons += ` Completed`; + actionButtons += ` {{ __('Completed') }}`; } return actionButtons; @@ -78,17 +78,17 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Name", field:"name", width:300, minWidth:200, formatter: domainLinkFormatter, headerSort:true, responsive:0}, - {title:"Initiated Date", field:"redate", width:250, minWidth:150, headerSort:true, responsive:2}, - {title:"Expiry Date", field:"acdate", width:250, minWidth:150, headerSort:true, responsive:2}, - {title:"Status", field:"trstatus", width:200, minWidth:150, headerSort:false, download:false, formatter: statusFormatter, responsive:0}, - {title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ + {title:"{{ __('Name') }}", field:"name", width:300, minWidth:200, formatter: domainLinkFormatter, headerSort:true, responsive:0}, + {title:"{{ __('Initiated Date') }}", field:"redate", width:250, minWidth:150, headerSort:true, responsive:2}, + {title:"{{ __('Expiry Date') }}", field:"acdate", width:250, minWidth:150, headerSort:true, responsive:2}, + {title:"{{ __('Status') }}", field:"trstatus", width:200, minWidth:150, headerSort:false, download:false, formatter: statusFormatter, responsive:0}, + {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick: function(e, cell){ if (e.target.closest('.approve-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to approve this transfer?", + title: "{{ __('Are you sure you want to approve this transfer?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let approveUrl = e.target.closest('.approve-btn').getAttribute('data-approve-url'); @@ -98,9 +98,9 @@ } else if (e.target.closest('.cancel-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to cancel this transfer?", + title: "{{ __('Are you sure you want to cancel this transfer?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let cancelUrl = e.target.closest('.cancel-btn').getAttribute('data-cancel-url'); @@ -110,9 +110,9 @@ } else if (e.target.closest('.reject-btn')) { e.preventDefault(); // Prevent the default link behavior Swal.fire({ - title: "Are you sure you want to reject this transfer?", + title: "{{ __('Are you sure you want to reject this transfer?') }}", showCancelButton: true, - confirmButtonText: "Confirm" + confirmButtonText: "{{ __('Confirm') }}" }).then((result) => { if (result.isConfirmed) { let rejectUrl = e.target.closest('.reject-btn').getAttribute('data-reject-url'); @@ -123,7 +123,7 @@ }}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-users.twig b/cp/resources/views/partials/js-users.twig index 0de62a5..23f1604 100644 --- a/cp/resources/views/partials/js-users.twig +++ b/cp/resources/views/partials/js-users.twig @@ -65,14 +65,14 @@ resizableColumns:false, columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, - {title:"Name", field:"username", width:200, headerSort:true, formatter: userLinkFormatter, responsive:0}, - {title:"Email", field:"email", width:300, headerSort:true, responsive:2}, - {title:"Roles", field:"roles_mask", width:200, headerSort:true, formatter: roleLabelFormatter, responsive:2}, - {title:"Verified", field:"verified", width:200, headerSort:true, formatter: verifiedFormatter, responsive:2}, - {title:"Status", field:"status", width:200, headerSort:true, formatter: statusBadgeFormatter, responsive:2}, + {title:"{{ __('Name') }}", field:"username", width:200, headerSort:true, formatter: userLinkFormatter, responsive:0}, + {title:"{{ __('Email') }}", field:"email", width:300, headerSort:true, responsive:2}, + {title:"{{ __('Roles') }}", field:"roles_mask", width:200, headerSort:true, formatter: roleLabelFormatter, responsive:2}, + {title:"{{ __('Verified') }}", field:"verified", width:200, headerSort:true, formatter: verifiedFormatter, responsive:2}, + {title:"{{ __('Status') }}", field:"status", width:200, headerSort:true, formatter: statusBadgeFormatter, responsive:2}, ], placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters + return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters } }); var searchInput = document.getElementById("search-input");