• Hi, I’m trying to translate the email that comes to the referral with the code (I have an ecommerce multilingual), but I can’t.

    WPML doesn’t see the string, so I tried to edit the class-gens-raf-public.php file by adding “_e (…)”:
    if ($ user_message == “” || $ subject == “”) {
    $ user_message = _e (‘You referred someone! Here is your coupon code reward: {{code}}.’, ‘gens-raf’);
    $ subject = _e (‘Hey there’, ‘gens-raf’);
    }

    WPML sees the strings in English and at that point I add the translation.
    however the email always arrives in English only.
    If I remove the text / subject from the plugin settings, the email arrives blank.

    How can I solve?
    thank you

    • This topic was modified 3 years, 8 months ago by anthony82.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Goran87

    (@goran87)

    Hey Anthony,

    since emails are sent by the system, I am not sure how email translation would work. Since I am like 4 weeks late with reply, not sure if you managed to solve this.

    Thread Starter anthony82

    (@anthony82)

    hi goran, tried with wpml…it sees the string, but no translation. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate email text with WPML adding _e(…)’ is closed to new replies.