Missing translation options for ARIA attributes

Missing translation options for ARIA attributes

emu-olliemu-olli Posts: 1Questions: 1Answers: 0

Hi,

there are missing options to translate some of the ARIA attributes which are used and should be translated into other languages.

These are missing on the contribute editor:

aria.orderable
aria.orderableReverse
aria.orderableRemove

=> https://datatables.net/plug-ins/i18n/

Please add them so we can translate them into languages as well.

Thanks :-)

Answers

  • allanallan Posts: 64,798Questions: 1Answers: 10,728 Site admin

    Good point - thanks! I'll get that sorted out.

    Allan

  • alexmuzenhardtalexmuzenhardt Posts: 1Questions: 0Answers: 0

    Hi Allan,

    we’ve recently started using DataTables and came across this issue as well. It’s also posing some challenges in terms of accessibility.

    Do you happen to have a timeline for when this might be addressed?

    Best regards
    Alex

  • allanallan Posts: 64,798Questions: 1Answers: 10,728 Site admin

    Hi Alex,

    It is already done - those three translation tokens are available for contributions on the i18n plugins page. If the language you need doesn't yet have translations for those tokens, I'd be very grateful if you could click the "Contribute" button and add them, so I can commit them in.

    Allan

  • JamesHolsonJamesHolson Posts: 9Questions: 2Answers: 0

    Hey Allan,

    On the same topic, I've noticed the paginate labels have been moved into the aria, now being:

    "aria": {
      "paginate": {
          "first": "...",
          ...
      }
    

    Is this correct? DataTables doesn't seem to be picking up the translations, only when I move it back to the root.

    Besides, those new "orderable" tokens seem to be missing from the Portuguese translation, even though they appear done in the "Contribute" page.

  • allanallan Posts: 64,798Questions: 1Answers: 10,728 Site admin

    That is correct. DataTables 2 uses chevron icons for the paging buttons, which is why the language strings are now in the Aria attributes. I actually only noticed the languages needed to be updated for that recently. It means the languages are online with the core defaults. If you want the language strings visible rather than the icons, you can still set the strings locally.

    Besides, those new "orderable" tokens seem to be missing from the Portuguese translation, even though they appear done in the "Contribute" page.

    The update to add them hasn't been released yet. They'll be in there with the next release of DataTables.

    Allan

Sign In or Register to comment.