• Resolved paradisiac

    (@paradisiac)


    Hey, we’re planning to purchase the Business package and allow users to choose between Dutch (default), English, French and German. We would use the DeepL feature within your plugin.

    However, the most important thing for us is that the WooCommerce emails also get translated. We are using the default WooCommerce templates but we updated the content (text) via existing email templates. Can we achieve this with TranslatePress and how?

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    For more information about our pro feature, you are welcome to open a pre-sale ticket on our website: https://translatepress.com/support/ask-a-presale-question/.

    About translating WooCommerce emails, those 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 new is that most languages already have these translated properly.

    Alternatively, you can also use LocoTranslate in order to translate these strings.

    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.`

    Also, in order to translate an email that you customize in the WordPress admin you can use the Conditional Shortcode https://translatepress.com/docs/translation-shortcode/

    You wrap the content for every language using the right shortcode and only the correct part will be emailed to the user.
    Here’s an example of another plugin that has a similar email: https://translatepress.com/how-to-translate/charitable-plugin/ (scroll down to the bottom)

    tobiaswinter

    (@tobiaswinter)

    Hi,

    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.

    There is a solution for that:

    https://gist.github.com/dartrax/85b3ab77b8210e92cc50e1b68de83c73

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Thank you for the link.
    I will present it to our dev team and they will see if this solution is reliable for us.

    Interested as well… Any updates? Cheers.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    The code for our plugin was created in order to save languages for emails, but was not released yet. WooCommerce itself needs to add some modifications that we ask for language detection to work.
    We don’t have a timeframe for when this feature will be available, but we will market it properly when it will be a fact.

    Thanks a lot. Look forward to it!

    Nice weekend.

    It’s here!

    // Added feature to remember user language for WooCommerce emails. Both admins and customers now receive all Woo emails in their preferred language, not just on checkout //

    Is there anything we need to configure or if it’s automatic?

    Cheers.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    It’s not necessary to configure, it’s automatic: https://translatepress.com/docs/translating-woocommerce-emails/

    THANK YOU!

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

The topic ‘WooCommerce emails’ is closed to new replies.