Support

Home Forums Event Espresso Premium Translate registration

Translate registration

Posted: September 5, 2019 at 4:44 am

Viewing 6 reply threads


Astad

September 5, 2019 at 4:44 am

Hi, are struggling with translating the popup that shows when adding an event to the event list. Is Return to Event List and View Event Cart translatable? Can’t find it in the po/mo-file and no information in this forum. We also want to define the link that Return to Event list goes to, it is a no content page today.


Astad

September 5, 2019 at 4:46 am

Yes, and the word Promotion Code is also not in the event-espresso-4 language file. Where to translate that?


Tony

  • Support Staff

September 5, 2019 at 6:10 am

Return to Event List and View Event Cart translatable?

Pretty much everything in Event Espresso is translatable and if it’s not…. it likely should and we get untranslatable strings fixed 🙂

However, both of those strings can be translated, they use a placeholder which makes it a little harder to locate but:

‘Return to Event’ List uses ‘Return to %s’ (the %s is a placeholder, which is the string for whatever you call the Event Cart, default is ‘Event Cart’).

https://translate.eventespresso.com/projects/event-espresso-4/no/event-espresso-nb_no/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=22314&filters%5Btranslation_id%5D=101187

‘View Event Cart’ uses ‘View %s’

https://translate.eventespresso.com/projects/event-espresso-4/no/event-espresso-nb_no/?filters%5Boriginal_id%5D=14209

Can’t find it in the po/mo-file and no information in this forum.

Which MO/PO files are you using? The above links to the latest versions and it sounds like the PO file you are using is outdated.

We also want to define the link that Return to Event list goes to, it is a no content page today.

We have a filter for this:

https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40

Set the URL you wish to use in that function and you can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Yes, and the word Promotion Code is also not in the event-espresso-4 language file. Where to translate that?

https://translate.eventespresso.com/projects/event-espresso-4/no/event-espresso-nb_no/?filters%5Boriginal_id%5D=21635


Astad

September 20, 2019 at 4:06 am

Hi, thank you for your answers, they all do give sence, but when doing it, it do not work properly. No strings are translated, also deleted cache on page.

I have now found the strings in the po/mo-file, is it correct to upload it to /wp-content/uploads/espresso/ ? Will it then override any languagefiles from eventespresso?

Regarding the Return to Events lists link; is it possible to use the filter to link it back to the event they came from? Know there is the possibility to X it out, but we get feedback from people clicking on it and end up at that empty page. We wanted to translate it to ‘Want to register more attendees’?, but now I understand that is not possible, but the link back will be the same as clicking x in the top right corner would be optimal.

Thank you again.


Tony

  • Support Staff

September 20, 2019 at 5:07 am

I have now found the strings in the po/mo-file, is it correct to upload it to /wp-content/uploads/espresso/ ? Will it then override any languagefiles from eventespresso?

Yes thats correct and Yes it will override EE’s default MO file.

What is the full filename you are using for the MO file?

It should be event-espresso-4-{locale}.mo

Regarding the Return to Events lists link; is it possible to use the filter to link it back to the event they came from?

Sure, for that you’ll need a snippet like this:

https://gist.github.com/Pebblo/844777c4c5be9f647b752f8a9bda50d0

  • This reply was modified 5 years, 2 months ago by Tony.


Astad

September 24, 2019 at 3:36 am

Hi again, thank you for your snippet, worked brilliantly.

Figured out what was wrong with the translation, when downloading your language-file, the {locale} were wrong, it missed two letters. Earlier I tried with the right one, but nothing happened, but that were probably because the file it self were wrong, so everything ok. Thank you again, Tony.


Tony

  • Support Staff

September 24, 2019 at 8:06 am

Ah, I see yeah.

GlotPress (which our translation site runs) has a few quirks that we haven’t ironed out, so worth doublechecking the downloads have the correct locale set.

Anyway, I’m glad its working for you now.

Any further problems please let us know.

Viewing 6 reply threads

The support post ‘Translate registration’ 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