• Resolved fanner07

    (@fanner07)


    Good day! I am trying to translate emails into the user’s language using the AcyMailing plugin, the base language changes fine, but the 2nd language is not translated.

    I wrote in support of AcyMailing, to which they replied that the problem is in the TranslatePress plugin.

    Their answer:

    “The thing is that if you have a multilingual website like yours we translated the subject we have in the database to retrieve the good one and it looks like the plugin TranslatePress is adding code to the translation and at the end, we have a subject looking like this:
    \#\!trpst\#trp\-gettext data\-trpgettextoriginal\=3800\#\!trpen\#Your (.*) account has been created\!\#\!trpst\#\/trp\-gettext\#\!trpen\#
    Instead of
    Your (.*) account has been created!

    As the issue doesn’t come from our plugin we can’t fix it, so there are 2 solutions:
    You don’t use TranslatePress
    You open a ticket on TranslatePress website so they can find a solution”

    So how I can fix it?

    Best Regards, Alex.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for letting us know about your problem!

    You can exclude that string from being translated using “Exclude Gettext String”.

    To find this function, go to Settings -> TranslatePress -> Advanced tab and if you scroll down you will find it.

    Also, please make sure that you deleted the translation to that string.

    Let me know about this!

    Kind Regards,

    Thread Starter fanner07

    (@fanner07)

    Hello, but which string should I delete?

    I try to delete Your (.*) account has been created!, but it doesn’t help.
    I get this information from AcyMailing support:

    “Here is the issue:
    When in AcyMailing we translate the subject of the email of WooCommerce in English (en-us) and then we make a preg_quote on the subject the result is this:
    \#\!trpst\#trp\-gettext data\-trpgettextoriginal\=3800\#\!trpen\#Your (.*) account has been created\!\#\!trpst\#\/trp\-gettext\#\!trpen\#
    instead of:
    Your (.*) account has been created!

    We use the WordPress translation function __()

    You can ask them if there is something that they can do or we can do to avoid this.”

    So I think problem comes because of wordpress translation function, how we can fix it?

    Best Regards, Alex.

    Thread Starter fanner07

    (@fanner07)

    Hello, any news?

    Best Regards, Alex.

    Plugin Author Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    I`m really sorry for this late reply.

    Did you manage to delete the translation for the specific string?

    You can see if that string has a translation if you open Translation Editor and search for that string in the string list.

    Also, if the exclude function didn`t work, please try from Settings -> TranslatePress -> Advanced tab, the “Filter Gettext wrapping from post content and title” and “Filter Gettext wrapping from post meta” functions.

    Let me know about this!

    Kind Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when used with AcyMailing EmailOverr’ is closed to new replies.