• Resolved chcw

    (@chcw)


    Hi,

    Does TablePress has any option to localize the texts appear in the table? Such as the table header?

    Currently we are using GTranslate to translate our page, and we want to localize your table header as well.

    For example, in the following URL:

    https://www.datanumen.com/zh-CN/resellers/

    You can see the table header such as “Show ### entries”, “Search” are not localized. We ask GTranslate, and they said as below:

    These texts are hardcoded inside wp-content/plugins/tablepress/js/jquery.datatables.min.js file.

    If Tablepress plugin modifies the code and sends these texts via a separate Ajax call in JSON format our system will be able to translate them.

    So is there such an option or solution?

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Translating these texts with external plugins is not directly possible, but should also not be needed. Instead, you can use the approach from https://tablepress.org/extensions/change-datatables-strings/

    Then, to assign different languages to different tables, use a Shortcode parameter, like

    [table id=123 datatables_locale=de_DE /]
    [table id=123 datatables_locale=zh_CN /]

    for example.

    Best wishes,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Localize the table header’ is closed to new replies.