• Resolved Benuzar

    (@benuzar)


    Hi,
    I put on my website about 40 tables built with the pretty TablePress plugin. Now I make my website bilingual with the WPML-Plugin. WPML uses an advanced translation editor that makes it very easy to translate the content of websites. The editor excerpts the content in the original language from the HTML source code of each website. So every machine or human translator can focus on the text content without considering the HTML or styling tags.

    Unfortunately WPML cannot excerpts content from TablePress tables because TablePress is not compatible to the mentioned function of WPML. It seems TablePress lacks of “gettext calls”.

    Does the author see any chance to make TablePress a bit compatible to WMPL, so that it would be easier to translate the content of the tables?

    WPML invites plugin developers to its Go Global Program to make plugins compatible with WPML.

    Best regards

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Why are you saying that TablePress is not compatible to WPML and not that WPML is not compatible to TablePress 😉

    A good and solid approach here is to simply maintain one table per language. Just pre- or postfix the table ID with the language abbreviation (“en-products” and “de-products” for example) and use the correct ID in the Shortcode of the translated page.

    Another idea would be to work with the TablePress Row Filter Extension from https://tablepress.org/extensions/row-filter/ here. You would just copy each row for each language and use the language abbreviation as the filter term, e.g. in an an extra but hidden first column.

    Regards,
    Tobias

    Thread Starter Benuzar

    (@benuzar)

    Maybe “compatible” was not the proper term to describe, that TablePress could need an additional feature in its code for easier translation with WPML.

    Your proposal to maintain one table per language was already in my mind. But it does not solve my problem. My problem is the translation of the content of the table.

    I can copy an existing table_de. I rename the copied table into table_en. But the content in the copied table is still in the original language. Now I have to go in my WordPress back end to translate the content of the copied table. In order to translate I have to struggle through the complete table content, formatted with HTML tags and CSS style tags. That is very arduous.

    I am not a programmer, but I believe, that if TablePress would have “gettext calls”, then the WPML plugin could extract the text content from the table. Translating only text content extract is very easy for human and machine translators.

    Hopefully I could explain my problem a little more understandably.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m afraid that I can’t offer a different solution here. gettext calls don’t make sense with user-generated table content.
    Having one manually translated table per language is the best way here.

    Regards,
    Tobias

    Hi @tobiasbg,

    the Contact Form 7 multi lingual extension allows for translation of custom contact forms (with custom field labels etc). This is very handy, as you only have to define your structure once…

    This would be equally handy for your table plugin.
    But i get that it would mean tons of extra work for you 🙂

    Thanks for the already very (very!) useful plugin.

    Regards,
    Patrice.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Patrice,

    yes, this looks like a nice solution, but I don’t have plans to integrate something like that into TablePress at this time. Sorry.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Translate tablepress tables with WPML-Plugin’ is closed to new replies.