• I have a Text Editor field in my original languahe (english), which I want to translate using WPML. This string cannot be found and I spoke with WPML support,that informed me that I should “Contact the plugin author and ask how this is information is stored”.
    Can you please help?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter portodiakofti

    (@portodiakofti)

    According to WPML : “`The plugin is storing texts in theme options named “woo_thank_you_page_params[text_editor]” in an encoded format,
    it uses json and base64 encoding, which is making it hard to translate the content.

    WPML can translate the content from theme option but in this case you will need few other tools to translate the content

    The steps tested were:

    – Go to WPML->String Translations->Translate texts in admin screens » and add the woo_thank_you_page_params[text_editor] to string Translations

    – Go to string translations and properly copy the value, the value looks like “[“PGgyI–multipletexts–A+”]

    – Remove the [” from the front and from the back “] of the value

    – Go here https://www.base64decode.org/ and paste the value and decode it.

    – Copy the decoded value and translate it

    – Once translated go here: https://www.base64encode.org/ and encode the value

    – Copy the encoded value and add [” at the front and “] at the encode

    – Add the value as translations in the string translations.

    Further, the code plugin is using are using in woo-thank-you-page-customizer/templates/thankyou.php line no.25
    $blocks = json_decode( $data->get_params( ‘blocks’ ) );

    is not returning the results from theme option translation properly.

    So, I commented our the line and add the following line:
    $text_editor = json_decode( get_option(‘woo_thank_you_page_params’)[‘text_editor’] );

    Which worked for secondary language but not for primary language.

    So can you contact the plugin author and ask if they can check this out and make it easier to translate the content. You can suggest them to use this hook https://wpml.org/wpml-hook/wpml_register_single_string/ before outputing the content so they will be available for translations or disable encoding.

    Or they can contact us on to make the plugin compatible: https://wpml.org/documentation/support/go-global-program/

    Further since the code they are using $data->get_params is not returning translated values the order_confirmation_header, thank_you_message_message & order_details_header is not shown as translated.`”

    Plugin Support mivtt

    (@mivtt)

    Hi,

    Thank you for your information.
    We added a task to update the premium version of this plugin to make the Customize part of the plugin compatible with the WPML plugin the next time.

    Best regards.

    • This reply was modified 2 years, 3 months ago by mivtt.
    badrtbk

    (@badrtbk)

    Hello there,

    So we can not translate the thank you page with WPML in the free version, right ?
    And is it now updated on the premium version or not yet ?

    Thanks and regards.

    Plugin Support mivtt

    (@mivtt)

    Hi,

    We have not made this integration yet. We will update to make this plugin premium version work with WPML in the future update. Thank you for your proposal.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation of Text Editor Content using WPML’ is closed to new replies.