Support

Home Forums Event Espresso Premium Translation issue: adding new strings

Translation issue: adding new strings

Posted: December 4, 2013 at 10:44 am


B D

December 4, 2013 at 10:44 am

My site is not in English and I placed my .po/.mo translation files in the uploads/espresso file.

I need to introduce new strings in a couple of automated emails, and I can only do this by adding them in the custom_functions.php file. However, these new strings do not pass in the .po/.mo files, so I cannot translate them. How to do?


Jonathan Wilson

December 4, 2013 at 12:42 pm

Hi there,

Have you thought about just adding the content of the email into the Email Manager? Then you wouldn’t need to do translations for the emails.

Will that work for you?


B D

December 4, 2013 at 1:43 pm

Of course I thought.

Only, the email I’m talking about, as I said in my previous message, is automated, so I have no control over it; it is coded and triggered automatically. More precisely, I’m talking about the “New attendee registration approval pending” email that EE sends automatically.

If this message could be controlled from the Email Manager, I would be happy to learn how to do.


Dean

December 5, 2013 at 3:39 am

Hi,

If your site is a single language site, one way would be to copy the event_espresso_send_attendee_registration_approval_pending function (it is a pluggable function) to the custom files addon and edit what you need there, including adding in the translations directly.

“If this message could be controlled from the Email Manager,”

It can’t currently, and for that we are sorry. 4.0 will be introducing a more more flexible messaging system allowing a lot more control over the emails.


B D

December 5, 2013 at 11:17 am

Thank you.

The support post ‘Translation issue: adding new strings’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso