Support

Home Forums Event Espresso Premium EE doesn't get my transation

EE doesn't get my transation

Posted: November 25, 2015 at 6:53 am


Sanne

November 25, 2015 at 6:53 am

Hello team,
I am having a problem with translating EE4.

1. I downloaded the po file here: http://translate.eventespresso.com/projects/event-espresso-4/nl/event-espresso-nl_NL
Is the file name correct? It’s called event-espresso-4-nl.po

2. I made modifactions to the file, but upon saving i get an error that the .mo file can’t be created

Can you do that for me? The po file is here: https://www.dropbox.com/s/4ygp55r1t8txz4h/event-espresso-4-nl.po?dl=0

3. A question. How do I translate the pop up message e.g. the Congratulations message after finishing a subscription.

Looking forward to your answer!
Rob


Tony

  • Support Staff

November 26, 2015 at 5:05 am

Hi Rob,

Is the file name correct? It’s called event-espresso-4-nl.po

No, the file needs to be renamed.

The format should be event-espresso-4-{locale}.po

So in your case it would be event-espresso-4-nl_NL.po

2. I made modifactions to the file, but upon saving i get an error that the .mo file can’t be created

There were 2 errors with the file, the first being the filename wasn’t set correctly (explained above) so POEdit didn’t know what language the file was.

POEdit will show you any issues with the translations when you try to save, it highlights them in red – http://take.ms/n9aRF

Clicking on that line provides details at the bottom – http://take.ms/NzbT7

So the reason the translation is breaking is due to the fact that the original string begins with \n whilst the translated string does not.

Swapping the translation to use this – http://take.ms/akE66

Fixes the problem and allows for the file to save.

Here is a copy of the files I used – http://take.ms/lkCZz

This has actually highlighted an issue with the translation files in that those \n and \t characters should not be there. I’ve created a ticket to have them remove but for not the above files should work fine.

3. A question. How do I translate the pop up message e.g. the Congratulations message after finishing a subscription.

That section should translate with the PO/MO files.

Just search the PO file for Congratulations – http://take.ms/1Kune

Does that help?


Sanne

November 27, 2015 at 6:15 am

Thank you very much for your work in making the po file work again. I can indeed make changes in the translation and generate a mo file.

However, after uploading to /web/wp-content/uploads/espresso/languages i don’t see any effect on the front page.

https://www.dropbox.com/s/z1rpgon53jyty4s/EE4_trans.jpg?dl=0

I followed the guidelines, but I believe I’ve done everything correctly.

Can I give you admin access to have a look under the hood?

Rob


Tony

  • Support Staff

November 27, 2015 at 6:40 am

Have you selected the language within your WordPress settings?

Dashboards -> Settings – > General -> Site Language.

What is it set to?

You can find a step by step guide to translating EE here:

https://eventespresso.com/wiki/how-to-translate-event-espresso/


Sanne

November 27, 2015 at 6:45 am

Hi Tony,
Language is set to Dutch from the start, and triple checked the upload location and i’ve read the trouble shooting part. Still a mistery to me…

Can i mail you login?
R.


Tony

  • Support Staff

November 27, 2015 at 7:07 am

No need for admin login, the problem is the site language setting doesn’t match the the translation files your using currently.

The site is set to Dutch, which in WordPres will be using the Locale de_DE.

That’s how WordPress itself is setting the locale, not EE.

Then EE is using that locale to load the translations files, so its looking for event-espresso-4-de_DE.mo

So to load your nl_NL translation files, you need to set the language to ‘Netherlands’.


Tony

  • Support Staff

November 27, 2015 at 7:10 am

However, if you do already have the language set as above I can take a look in the admin to see if I can find whats happening.

You can send temporary login details using this form:

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


Sanne

November 27, 2015 at 7:12 am

No no, Dutch = Nederlands = the Netherlands = nl_NL

https://www.dropbox.com/s/0keb4mv495cj3m6/dutch.jpg?dl=0

Deutsch = German = de_DE


Tony

  • Support Staff

November 27, 2015 at 7:24 am

Ahh, ok. My apologies.

Looking now.

The support post ‘EE doesn't get my transation’ 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