Support

Home Forums Event Espresso Premium Event Translation Doesn't Work

Event Translation Doesn't Work

Posted: September 11, 2016 at 7:54 am


twhcoteaching

September 11, 2016 at 7:54 am

I need to translate one thing, the message people are presented with when they are purchasing an event that is setup as not-approved by default. I downloaded and installed POEdit. I downloaded the translation file as instructed. I edited the file and compiled to MO. I then uploaded it to the languages directory as instructed. I’m not seeing any changes displayed on the page during checkout. I have verified that the translation exists in the MO file. What am I missing here?


Tony

  • Support Staff

September 12, 2016 at 3:52 am

Hi there,

Can you let me know what the full filenames of your PO and MO files are please.

Also which language have you have selected within:

Dashboard -> Settings -> General -> Site language.


twhcoteaching

September 12, 2016 at 5:13 am

Hi Tony and thanks for your help with this. My filenames are as follows
event_espresso-en_US.mo
event_espresso-en_US.po

The selected language under Dashboard > Settings > General > Site Language is “English (United States)”

I actually stepped through the whole process from start to finish again this morning just to be sure I wasn’t doing something stupid. I downloaded a fresh copy of the po file from translate.eventespresso.com. I opened and edited it in POedit. I saved it and then compiled to MO as instructed. I then renamed the files as instructed. Finally I uploaded them to the /wp-content/uploads/espresso/languages of my site. I then went to the site and began the checkout process for my not-approved event. Unfortunately, the translation changes I made are still not displaying. Specifically, I edited the “The following events do not require payment at this time…” message.

Thanks for your help,
Jon


twhcoteaching

September 12, 2016 at 5:14 am

I’m happy to give you admin access to the WP console and FTP access if you need it. Just let me know and I’ll set it up for you.

Thanks,
Jon


Tony

  • Support Staff

September 12, 2016 at 12:41 pm

There’s a couple of similar strings for that:

https://translate.eventespresso.com/projects/event-espresso-4/en/event-espresso-en_US?filters%5Bterm%5D=The+following+Event&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc

Could you let me know which one is not working for you? (top or bottom)


twhcoteaching

September 13, 2016 at 4:54 am

The bottom one.
“The following events do not require payment at this time and will not be billed during this transaction. Billing will only occur after the attendee has been approved by the event organizer. You will be notified when your registration has been processed. If this is a free event, then no billing will occur.”

Here’s a screenshot of how it’s translated in POEdit:
http://icecream.me/4bf20ebfe6e44bd942ec00972e30fdd9

And here’s a screenshot of where I’ve stored the file online:
http://icecream.me/95d7bf8edbe47b496d887feddcb837c7


Tony

  • Support Staff

September 13, 2016 at 5:57 am

Hmm strange, that’s working for me – http://take.ms/mturi

When testing this are you just refreshing the page to view the changes or have you restarted a registration?

EE has some internal caching for the checkout page so you need to restart, visit your registration cancelled page and retest.

Can you link em to the event so I can test it too?


twhcoteaching

September 13, 2016 at 7:30 am

I’m running my registration attempts in a brand new Chrome Incognito session so cache should not be an issue. Here’s the URL of the item
http://twhcoteaching.com/events/co-teaching-certification-weekend-workshop/

I can get you admin access to the WP admin console and FTP access if you need it.

Thanks for your help with this!


twhcoteaching

September 13, 2016 at 9:56 am

So I just tried it in Firefox which I NEVER use and I got the exact same thing…No translation ๐Ÿ™ I think we can rule out a cache issue. Looking forward to your reply.

Thanks,
Jon


Tony

  • Support Staff

September 13, 2016 at 10:16 am

Your talking about browser caching which is different as I mean internal caching within the modals, but either way I get the same results so its not that.

Hmm, strange.

Can you either send me over the PO file so I can test it locally, or send FTP credentials so I can grab it directly please?

You can send the file to support[at]eventespresso.com

For credentials you can use this form:

https://eventespresso.com/send-login-details/

You could use the function shown here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

Which should work, however that doesn’t answer why the PO/MO files are not working on your site.


Tony

  • Support Staff

September 13, 2016 at 1:22 pm

The PO and MO files are working fine for me locally – http://take.ms/GKBTF

It could be the Loco Translate plugin interfering although I run that on another site with any problem, could you try de-activating that plugin and see if the issue remains?


twhcoteaching

September 14, 2016 at 6:43 am

Not only have I disabled the plugin, I’ve also deleted it. I cleared all site cache. I then excluded the event page and the checkout process from being cached and still, the message does not change.


twhcoteaching

September 14, 2016 at 6:56 am

I’ve even tried placing the mo file in the global languages directory /public_html/wp-content/languages/plugins
I’ve stepped through every directory and wiped all traces of loco.
Still, no translation. What can we try next?


Tony

  • Support Staff

September 14, 2016 at 7:18 am

The other option is to use the plugin shown here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

Like this – https://gist.github.com/Pebblo/21be3707f0b332d58e13f438df4d88dc

You can add that function to your themes functions.php file or a Custom functions Plugin.

So if you add the above function (changing the custom text) does it work then?


twhcoteaching

September 17, 2016 at 8:15 am

Hey hey! Using the suggested plugin did the trick. I’ve now successfully been able to translate the message. Thank you for sticking with this and for helping finally resolve this. Greatly appreciated. Be well!


Tony

  • Support Staff

September 19, 2016 at 3:22 am

You’re most welcome ๐Ÿ™‚

Any further problems please do lets us know.

The support post ‘Event Translation Doesn't Work’ 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