• Resolved Metasequoia

    (@metasequoia)


    Hi,

    I have an issue with Polylang plugin and Tablepress.

    Without Polylang the strings “Show __ entries” and “Search” above the table are correct displayed in my default language (german).

    With Polylang and two languages (german and polish) on the german page with Tablepress the strings are displayed in english. On the polish page in polish. This is strange.

    The JavaScript in Tablepress is not aware of the language for german (default language in Polylang) pages. I am no programmer and have no clue how to solve this.

    I think this is not a Tablepress only issue. But maybe someone can help here…

    Please PM me for site adress.

    btw: great Plugin!

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The question here is what language/locale code does the German translation use internally? That’s what TablePress uses to load a JSON language file from its “lang” folder. It should be “de_DE”.
    One idea could be to use a slightly different Shortcode on the German page, to force this translation:

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

    Regards,
    Tobias

    Thread Starter Metasequoia

    (@metasequoia)

    This works! Awesome – thank you very much!!!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tablepress and Polylang’ is closed to new replies.