• Resolved rkrista

    (@rkrista)


    I translated my entire website with TranslatePress and I really like this plugin.
    Now, I have a Woocommerce-based webshop. My question is how order emails are sent out? Will Woocommerce automatically recognize the given language and send out order related emails to clients in their language? (There is an official translation of Woocommerce in the secondary language too, so normally, I wouldn’t need to translate the emails.) If not, how can I set this up?

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

    The WooCommerce emails are actual templates (like theme files) so it means you can translate whatever is localized using gettext in them. https://codex.www.ads-software.com/Plugin_API/Filter_Reference/gettext
    
    Our plugin doesn't yet detects 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.
    
    Best Regards,
    Thread Starter rkrista

    (@rkrista)

    Hi Denis, great, thank you for your answer!

    Thread Starter rkrista

    (@rkrista)

    I contacted Loco Translate, but I got this answer:

    Loco Translate does not and cannot control what is done with translations. It is a file editor.

    All I can tell you is that my plugin cannot force any particular behaviour.

    So, I guess I will need a third plugin to activate Woocommerce emails in my second language. I have already tried Polylang, but everything I had already translated with TranslatePress disappeared, so I guess it’s not compatible with your plugin. What about WPML, or other plugins? Is there any plugin that can solve my issue and that is compatible with TranslatePress?
    Thanks!

    Nick

    (@nickchomey)

    @rkrista have you found a solution to this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘secondary language’ is closed to new replies.