• Resolved louagej

    (@louagej)


    Hi,

    I have a table with prices and would only want to update the headers of the table depending on the language of the page.
    For Example:

    | [EN]Period |[EN] Weekend | [EN] Week |
    | [NL]Periode |[NL] Weekend | [NL] Week |
    | [FR]Période |[FR] Week-end | [NL] La semaine |
    |—————|—————|—————–|
    | 01-01..30-03 | €500 | €1200 |
    | 01-04..30-06 | €600 | €1500 |

    I have polylang extension installed.
    Is it possible to add header translations for tables?

    This way, managing only one table with prices would prevent me from making mistakes updating the price table

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I’m not aware of a direct solution for that.

    In the past, I have recommend an approach based on TablePress’ native feature for hiding rows:
    You would create the three header rows as in your example (with the translation directly in the table), and then only show the relevant row on the translated page, by using an extended Shortcode:

    [table id=123 hide_rows=1-3 show_rows=3 /]
    

    would for example show the French header row. Likewise, you would use show_rows=2 in the Shortcode that is embedded into the Dutch version of the page.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Tables support for for polylang plugin’ is closed to new replies.