Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation and actions not translated on joomla site #18

Open
horus68 opened this issue Jan 5, 2017 · 1 comment
Open

Navigation and actions not translated on joomla site #18

horus68 opened this issue Jan 5, 2017 · 1 comment

Comments

@horus68
Copy link

horus68 commented Jan 5, 2017

There are several jQuery strings not translated

Last
Next
Previuos
No data available in table
Showing 0 to 0 of 0 entries
Processing...
Loading...
No matching records found

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?
2017-01-05 20_20_40-microsoft edge

@chris001
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants