Open horus68 opened 7 years ago
It's easy, this requires a variable which is already set to the English name for language the user has selected, for example, Spanish, Latvian, German, Japanese, French, etc. The languages for this datatable can be either loaded dynamically, or pre-loaded locally at installation time onto the CRM server, better option because some organizations (bank etc) don't allow unrestricted random internet downloads from their crm server. Details and code example: https://datatables.net/plug-ins/i18n/
There are several jQuery strings not translated
The file is: \site\js\jquery.dataTables.1.9.4.min.js
oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},j.models.oSearch),sAjaxDataProp:"aaData",
So how can we translate this?