The language options don't apply in search panes

The language options don't apply in search panes

saeid2020saeid2020 Posts: 7Questions: 1Answers: 0

Hello, When we set translations for language options such as "sZeroRecords", "sEmptyTable", "sInfo" the translations apply to the table and are shown correctly but in search panes the translations don't apply and the default messages are shown for ZeroRecords, EmptyTable, etc instead of translations.

  1. Please help how to set any translations for language options in search panes?

  2. When we set Info option for a column in search panes like:
    columnDefs: [
    {
    searchPanes: {
    dtOpts: {
    info: true
    }
    },
    targets: [2]
    }
    ]

Is it possible to customize translation for this option?

Replies

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    At the moment you would use the dtOpts object similar to how you have done for the info property. In that would you specify the language options you want.

    Good point though, I think it should propagate the language options down to the pane tables. I’ve filed a bug for that and we’ll post back when done (although it might be a few weeks).

    Allan

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @saeid2020 ,

    That should be the issue fixed now as you can see at this example. This will be available in the next SearchPanes release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.

    Hope this helps,
    Sandy

This discussion has been closed.