• Resolved maryb1

    (@maryb1)


    Hello!

    I’m using this plugin on a bilingual site translated using WPML. When translating the page, the WPML interface does allow me to translate the dates, but on the front-end, the dates don’t appear as translated. See: https://imgur.com/a/d4UqumW

    Is there any reason why the plugin wouldn’t display the translated dates?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support aniketji

    (@aniketji)

    Hi @maryb1,

    We are using core blocks for the heading and description in WordPress, which is why the page content is being translated. However, the date is not from the core blocks, so it is not supported for string translation.

    Thank you.

    Thread Starter maryb1

    (@maryb1)

    For those who are interested in a solution for this. You can register the date for translation with a custom XML configuration code, after translating it the translation date displays correctly in the frontend. Here is an example code:

    <wpml-config>
    <gutenberg-blocks>
    <gutenberg-block type="cp-timeline/content-timeline-block-child" translate="1">
    <xpath label="Timeline block date">//div/div/div/div/div/p</xpath>
    </gutenberg-block>
    </gutenberg-blocks>
    </wpml-config>

    You may have to edit the page in the original language for all the translations to show up in the second language.

    @aniketji, you can join their Go Global program where their Compatibility developers can help you to make your product fully compatible with WPML.
    https://wpml.org/documentation/support/go-global-program/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.