• Resolved tunixnl

    (@tunixnl)


    Hi!

    I am a happy user of translatepress, works great.

    The only thing however, is that it seems to have messed up my woocommerce e-mailing.

    The translation is correct, but it shows code like this:
    #!trpst#trp-gettext data-trpgettextoriginal=1921#!trpen#Product#!trpst#/trp-gettext#!trpen#

    This makes the e-mail unreadable for my customers. How can I fix this behaviour?

    BTW: I already tried:
    – Filter Gettext wrapping from post content and title
    – Filters gettext wrapping such as #!trpst#trp-gettext from all updated post meta.

    However, does not seem to work ??

    The page I need help with: [log in to see the link]

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

    Thanks for reaching out about your problem.

    Since this looks a lot like a conflict with some other code, the first/next recommended step is the conflict test (ideally in a staging environment):

    ??*Briefly* disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, as it probably will, enable everything one by one, checking each time to see when the problem returns.

    Please let us know when you find the conflict so that we can take a look and see what we can do about it.

    Best Regards.

    Thread Starter tunixnl

    (@tunixnl)

    Hi Andrei,

    Thanks for your answer.

    Is it also a possibility to turn off automatic translation of woocommerce e-mails?

    Thanks!
    Wesley

    Thread Starter tunixnl

    (@tunixnl)

    And, is it possible to edit the translation of e-mails somewhere?

    • This reply was modified 3 years, 4 months ago by tunixnl.

    Hey there,

    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 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://www.ads-software.com/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

    Best Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘#!trpst#trp-gettext messing up my woocommerce e-mails’ is closed to new replies.