Hi @keyanab,
Thanks for reaching out! Have you cleared your cache after translating these strings in loco translate? Are they working in the customizer and not in the live emails, or are they not working in the customizer either? Can you confirm you’re using the latest version of the plugin and of WordPress core?
Regards,
Hannah
Hi Hannah, thank you for your reply.
Yes, the cache is cleared on both ends. The plugin and WordPress are using the latest version available.
I’ve double-checked Loco Translate to make sure all strings are translated properly, which they are.
I’ve added this picture to show you in which strings the issues lie:
https://ibb.co/7zL28ff
The HTML that won’t translate are:
The H2 under the id=”body_contente_inner”,
The H3 under the class=”order-info-split-table”,
The P under the class=”inside-quantity”,
The H2 under the class=”address-container”.
It’s mainly the text that can’t be edited directly in the customizer.
The translations are working in neither the live emails nor the customizer.
Thank you for your help!
Hey @keyanab Can you tell me how you have locotranslate setup? You would need to make sure you are setting your files separate from the plugins transition files so that yours would override. They should be set in the system files so you don’t lose those changes with a plugin update.
Next can you make sure you’ve cleared the woocommerce template cache. (woocommerce > status > tools > template cache).
Ben
Hello @britner!
I haven’t set up Loco Translate in any other way than just installing it, changing strings and saving.
I did clear Woo template cache without any luck.
I tried clearing the websites cache and nothing.
I have a theory that it might be the strings in brackets that aren’t being updated, e.g. {order_number}. But that’s the only one I found, so it might not.
I’ve gone through both WooCommerce and also your plugin in Loco Translate, and everything IS translated correctly, but weirdly enough not in the actual emails both in the customizer and the live version.
I haven’t set up Loco Translate in any other way than just installing it, changing strings and saving
If you didn’t create a new translation then that is likely your issue. You need to create a new local translation saved on your system for it to have an effect.
Please try that.