Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.
Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
-
8:00 – 13:00
9:00 – 13:00
9:00 – 13:00
8:00 – 12:00
8:00 – 12:00
-
-
14:00 – 17:00
14:00 – 18:00
14:00 – 18:00
13:00 – 17:00
13:00 – 17:00
-
Unterstützt die Zeitzone: Europe/Zagreb (GMT+01:00)
Hintergrund des Themas:
I am trying to ensure that the invoice email is sent in the correct customer language using the template (Tour order system). Goodlayers support added a debug message in the tourmaster.php file and mentioned that the language is changed correctly using "wpml_switch_language_for_email" based on the recipient. However, they noted that gettext is not responding with the correct language. Link to a page where the issue can be seen: versteckter Link
Die Symptome:
The invoice email is sent in German instead of English, and gettext is not responding with the correct language.
Fragen:
Why is the invoice email not sent in the correct language?
How can I resolve the issue with gettext not responding with the correct language?
Goodlayer mentioned I should contact you
Hello Bruno,
Thank you for your response. Indeed I have the same issue than you mentioned and I am surprised that this user said the author of the theme found the issue and will fix it.
I will contact the theme author again and ask them to join the go-global-program.
Kind regards, Remy
Hello Bruno, I just noticed that the issue I have is very similar but it is when sending the invoice via Email. The content doesn't get translated on other languages.
What does the Goodlayers author means when he says: BTW, the gettext is not responding with the correct language. Could you check with the WPML author about this.
However, the issue might also stem from the way they implemented the class, so it could go either way.
Would you be able to test it using the following sandbox link? versteckter Link
Try installing their plugin/theme here and attempt to reproduce the issue with a simple order. Make sure at least one translated string in the emails does not translate correctly in your site.
Additionally, I have installed the Email Log plugin, which will record all outgoing emails for easier debugging.
If we see the issue here I will escalate the case to our compatibility team.