Translate email text with WPML adding _e(…)
-
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
- The topic ‘Translate email text with WPML adding _e(…)’ is closed to new replies.