[Resolved] New emails translations for Portugal PT-PT
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is using WooCommerce with WPML in Portuguese (pt-PT) and is facing issues with translating 'Reset your password' and Account Creation emails. These emails are not translated into Portuguese, and the necessary strings are not available in WPML > String Translation.
Solution: After testing, we found that: 1. New registration emails needed manual translation of certain strings to Portuguese, which resolved the issue.
2. For the 'Reset your password' email, although the translation worked, the subject line remained in Portuguese when the frontend language was set to English. This indicates that specific strings related to the subject line need translation in WPML's String Translation.
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket.
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.
Background of the issue:
I am using WooCommerce with WPML, specifically Portuguese from Portugal (pt-PT), and I am trying to ensure that all emails, such as 'Reset your password' or Account Creation emails, are translated for Portuguese users. However, these emails are not translated, and the strings are not available in WPML > String Translation. Since these emails originate from the WordPress core, I cannot override them via WPML.
Symptoms:
The 'Reset your password' and Account Creation emails are not translated into Portuguese and still display in English. The strings like 'Reset your password', 'Someone has requested a password reset for the following account', and 'If you didn’t make this request…' are not available for translation in WPML.
Questions:
Does WooCommerce have a mechanism to override or translate password reset emails for multilingual setups?
Is there an official way to localize this email via WPML without relying on Loco Translate or custom PHP filters?
Thank you for your patience and cooperation. I am still working on this and 've deactivated all plugins and switched the theme (again). Please keep it that way so I can investigate further.
It'll take some time and 'll get back to you as soon as I find something or have a solution.
- New registration email: The "thank you..." strings were not translated to PT, so I translated these (see strings.jpg attached). And after that the email was fully in PT (see email.jpg).
- Reset password email: This seems to work fine (see email-reset-password.jpg). However, when the frontend language is English, the subject remains in PT, while rest of the email is in English. This is because the relevant strings "Réinitialiser votre mot de passe..." haven't been translated in ST (see reset-password-subject.jpg).
I've tested these with parent Flatsome and with your Flatsome Child themes. You can find all captured emails in WordPress -> Tools -> Log Emails.