Support translating datatable info footer #1225

This commit is contained in:
Hillel Coren 2017-04-18 12:26:58 +03:00
parent fe27b74938
commit b4b8eb77e0
2 changed files with 2 additions and 0 deletions

View File

@ -2478,6 +2478,7 @@ $LANG = array(
'surcharge_label' => 'Surcharge Label', 'surcharge_label' => 'Surcharge Label',
'contact_fields' => 'Contact Fields', 'contact_fields' => 'Contact Fields',
'custom_contact_fields_help' => 'Add a field when creating a contact and display the label and value on the PDF.', 'custom_contact_fields_help' => 'Add a field when creating a contact and display the label and value on the PDF.',
'datatable_info' => 'Showing :start to :end of :total entries',
); );

View File

@ -114,6 +114,7 @@
"oLanguage": { "oLanguage": {
'sEmptyTable': "{{ trans('texts.empty_table') }}", 'sEmptyTable': "{{ trans('texts.empty_table') }}",
'sLengthMenu': '_MENU_ {{ trans('texts.rows') }}', 'sLengthMenu': '_MENU_ {{ trans('texts.rows') }}',
'sInfo': "{{ trans('texts.datatable_info', ['start' => '_START_', 'end' => '_END_', 'total' => '_TOTAL_']) }}",
'sSearch': '' 'sSearch': ''
} }
}); });