• Resolved lukro2011

    (@lukro2011)


    Hello everyone,

    I am currently setting up a shop where I use WooCommerce and I struggle with automated E-Mails.

    The site is in German and in English, translated with TranslatePress. I switched the language of the site to “Deutsch (Sie)” (formal German). In the E-Mail settings of WooCommerce (for example, for the confirmation E-Mail) the text preview already shows the formal German version. However, when ordering on the German version, the not-formal German E-Mail is used for confirmation and when ordering on the English version, an English confirmation is sent (which is great, but I don’t get why).

    When switching off the plugin, the formal German version works. Can I somehow make it, that for the German site the formal German E-Mail version is used and for the English site the English E-Mail?

    I first got in touch with WooCommerce regarding this topic.
    WooCommerce support

    Thank you very much!
    Lukas

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    Thanks for reaching out to us!

    The WooCommerce emails are actual templates (like theme files) so it means you can translate whatever is localized using gettext in them. https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

    Our plugin doesn’t yet detect these strings because they are not visible in the front-end, only processed. The good news is that most languages already have these translated properly.

    Alternatively, you can also use LocoTranslate in order to translate these strings https://wordpress.org/plugins/loco-translate/.

    A side note to take into account: while emails that get sent after a user action are translated correctly, out of order emails like reminders (if you use subscriptions) will always be sent in the default language as we don’t store the user language in order to know in what language we should send the email.

    Regards

    Thread Starter lukro2011

    (@lukro2011)

    Hello,

    Thank you for the answer!

    I think my problem was a mixture of your plugin and WooCommerce. I can still not explain the behavior, however I found a solution:
    I uninstalled the TranslatePress plugin completely and removed all database entries. Then I reinstalled it and did all the translations again. Now it is working as expected.

    I also tried to load the backup of the translations after reinstalling, but this did not work for me. I had the same bug again. I also tried to work with LocoTranslate, but this didn’t work out either.

    As you can see, it clearly has something to do with TranslatePress, because setting the plugin up again or deactivating it removes the bug. However, I think it has also to do something with WooCommerce.

    Concluding I can say, it was a very weird problem, which I still didn’t get why it happened.

    Regards

    Greetings,

    Please feel free open a ticket here: https://translatepress.com/support/ask-a-presale-question/ mentioning this conversation so we can further investigate this issue.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Woocommerce E-Mail Language’ is closed to new replies.