localization v2.3.3

localization v2.3.3

vespinovespino Posts: 9Questions: 2Answers: 0
edited August 21 in Free community support

It seems that localization for the pagination buttons broke with version 2.3.3. With the previous versions the buttons were shown titles instead of > and >> or is this the default now?

Answers

  • allanallan Posts: 64,940Questions: 1Answers: 10,755 Site admin

    There is no test case provided, so it took me a few minutes and rewriting my reply a couple of times to realise that you must be loading one of the localisation files from the JSON.

    I've updated them to match the behaviour of DataTables 2's defaults which is to have the chevron icons (since 2.0.0) rather than the text. I felt that was localisation independent and they should match the defaults.

    The values can readily be changed in the file or with a local override if you wish it.

    Allan

  • vespinovespino Posts: 9Questions: 2Answers: 0

    I'm indeed using localisation using JSON and I have never seen the chevrons before now. Version 2.3.2 is still showing translations instead of chevrons. I'd be happy to create a test case, but the only thing I have changed is the version in the CDN links.

  • allanallan Posts: 64,940Questions: 1Answers: 10,755 Site admin

    You could continue to use the 2.3.2 translation if you prefer that, or as I mentioned host the file locally and change it to suit your needs.

    It was a mistake of mine that I didn't update the translations with the 2.0.0 release. Sorry about that.

    Allan

  • vespinovespino Posts: 9Questions: 2Answers: 0

    I think it's something different though as I have not touched this file ever, not even when it still was version 1. The paginate section also still shows the same translations and no chevrons are in the file. Might it be the fact that paginate is now under aria instead of its own section as it was before?

    https://datatables.net/examples/i18n/ajax.html

  • allanallan Posts: 64,940Questions: 1Answers: 10,755 Site admin

    Yes. As I mentioned, the localisation for the paging buttons that are displayed now matches the v2 defaults for DataTables (i.e. chevrons). The ARIA help text has a string defining what the button does.

    As I also mentioned you can modify the file to set the defaults you want (if you host it locally). If you want to do that, the strings to change are under the language.paginate object.

    Allan

Sign In or Register to comment.