Customize Upgrade Membership mail

Hi,

I would like to customize the email that is sent to a user when, through the button, she increases her membership level.
I tried using .po and .mo files to translate this text:

Thanks %%%% first_name %%%%! Your account has now access to: %%%% item_name %%%%.

If you have any problems, please feel free to contact us.

Best Regards,
% s

But it does not seem to work.

Thanks
Francesco

I did several tests, but I can not figure it out.
Can someone help me?

Have you tried using gettext? See https://s2member.com/kb-article/quick-translation-changing-wordsphrases/

If that doesn’t work, try leaving out the context part, so that the format looks like this: https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

I did several attempts using both modes but did not seem to read the translation.

Try to move the strings “%%%% first_name %%%%” and “%%%% item_name %%%%” out of the translated text, means attach them as “%s”, which is accepted.

Hi Krumch,

The problem persists, I will point out that the same behavior is also done by the object text:
“Thank you! Your account has been updated.”
That has no variables.

Thanks
Francesco