WPIntell

Source evidence

Translate email text with WPML adding _e(…)

Refer A Friend for WooCommerce by WPGens · support · 2021-03-19T11:21:00+00:00

complaintsentiment
mediumseverity
0.86relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 31 rows with source links

16.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
anthony82 unresolved
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 5 years, 2 months ago by anthony82 . 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. hi goran, tried with wpml…it sees the string, but no translation. 🙁

Comments

2 shown
Goran87 2021-04-18T07:31:00+00:00

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.

anthony82 2021-04-19T09:36:00+00:00

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