Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 6 replies, has 3 voices.

Last updated by Yvette 4 years, 6 months ago.

Assisted by: Yvette.

Author Posts
July 9, 2020 at 10:58 am #6556569

karinR-5

Tell us what you are trying to do?
String translation of checkout page (plugin: Checkout for Woocommerce) translated via string translation but not showing on the frontend.

How can I change the footer text on the checkout page with the string i translated?

Attached the Englisch & German versions of the checkout where there is the same footer text.

Bildschirmfoto 2020-07-09 um 12.57.08.png
Bildschirmfoto 2020-07-09 um 12.56.24.png
July 11, 2020 at 12:29 pm #6574153

Laura
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hi,

thanks for contacting us.

While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can perhaps help with the issue quickly.

Can you please try to activate in WPML > String Translation the option 'Auto register strings for translation'?
Once you check this, please reload in the frontend a page where your string can be found.
Then, reload the String Translation page. You should have a new string for translation.

If this doesn't help, can you show us some screenshot of the translated string in the backend?

July 12, 2020 at 6:35 am #6576797

karinR-5

Hi,

thanks for your reply.
Unfortunately this didn't solve my issue. Attached you can see the translated string.

Do you know why it isnt shown in frontend?

Bildschirmfoto 2020-07-12 um 08.34.22.png
July 12, 2020 at 1:37 pm #6577541

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

I´ll be helping you.

Sometimes, the string will not show up on the frontend due to a plugin conflict or due to the way the plugin has been coded.

Sometimes, it also assumes that you have configured the plugin in English and therefore is not using the right language tag to retrieve the correct string translation.

Would you mind uploading this plugin to a sandbox site which has been preloaded with WPML plugins and Woocommerce here:
hidden link

Please configure an example - and see if the problem is reproducible.

I wait for your news

July 13, 2020 at 8:09 am #6580363

karinR-5

Hi, thanks for helping out!

I installed the plugin at your sandbox site & it isnt working there as well.
Please see for yourself.
I added the admin texts via xml & translated only the footer text string.

Thanks!

July 13, 2020 at 9:28 am #6581669

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Thank you for that. I confirm this and have escalated the case to our compatibility team.

In the meantime, I can see that the plugin authors are already WPML "sensitive" so , please approach them with this issue as well.

Eventually any "fix" may require theri collaboration so it would be good to have them informed and perhaps they can already fix the problem.

July 29, 2020 at 12:55 pm #6700217

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

Could you please try the following:
in wp-content/plugins/checkout-for-woocommerce/templates/default/footer.php, just BEFORE line 12:

<?php echo do_shortcode( $footer_text ); ?>

add this code:

<?php if (class_exists('sitepress')) {
    $footer_text = apply_filters('wpml_translate_single_string', $footer_text, 'admin_texts__cfw__settings', '[_cfw__settings]footer_text');
    }
?>

Can you please let me know if this works for you?