Doesn’t WPML use mo/po files when available? If yes, you could just add the languages this way, as all the template texts are found within the translation files.
Yes, I did it already, of course. But the sent emails are still in English. I guess in backend the email sending function has no idea what is the current language at frontend.
Well, something strange happened. I run a network. The main site send emails in English no matter what. One subdomain is sending emails in the current language though…
I will test more and return with my findings.
Back – the first email is sent in the translated language. The second email (final confirmation) is sent in English even for the subdomain.
And there is a good explanation: the frontend is in the translated language so translation is used properly. The backend is in a single language, English, therefore the processing action triggers emails in that language.
I think the request language should be saved at the visitor/request level. Then send all subsequent emails in that language. I cannot see any other way for multilanguage sites…
@rvencu we solved this by sending emails in both languages (English text and translated text).
Thanks for the support and great feedback.
I think the solution to add the request language is something great to add to the plugin.
I’ll let you know when it’s implemented.
Kind regards,
Mieke
One of my sites has English plus 3 translations… Not possible to add all languages in the same email, is not professional… Adding language as request parameter is only way to go.
Hi Richard,
In the new release we implemented a language field for emails.
I tested this with WPML and Polylang. Do you use one of these plugins to make your site multilingual or do you use an other one?
Can you also test it and see if it works for your site?
Kind regards,
Mieke
Thanks. I did not notice but I will give it a try in a couple of days.