Support

Home Forums Event Espresso Premium [Bug] Translation overwritten

[Bug] Translation overwritten

Posted: August 5, 2015 at 6:20 am

Viewing 12 reply threads


Regiocolonia

August 5, 2015 at 6:20 am

Hello,

I want to use EE4 in German. I set the language to “German”, but I found out, that there are many phrases which are still in English (yes, I know the GlotPress site).
To solve this problem, I downloaded “Poedit” to translate the missing words and sentences manually. After this, I uploaded the .mo file into the “language” folder. The most things are working, but there are still some strings which aren’t working. I translated these strings correctly but they are still english and not german. It seems as they will be overwritter somewhere.

After searching a little bit in the internet, I found a post from “Benjamin Pazdernik” who had the same problem:
https://eventespresso.com/topic/translating-to-german/

Hope you understand my problem.
Would be nice if you can fix this bug!

Thanks!


Lorenzo Orlando Caum

  • Support Staff

August 5, 2015 at 8:59 am

Hello, the support post that you found is from 2014 and those should have been fixed. Could you provide some examples of areas that are not translating (e.g. the strings or some screenshots)?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

Also, can you confirm that you are on the latest version of Event Espresso 4?

https://eventespresso.com/wiki/ee4-changelog/


Lorenzo


Regiocolonia

August 6, 2015 at 1:53 am

Yes, im useing the latest version of Event Espresso 4!


Regiocolonia

August 6, 2015 at 1:55 am

There are also other sites with translation errors, but I am not interested in making so many screenshots…

If you need my language file, I can send it to you, too.


Tony

  • Support Staff

August 6, 2015 at 3:59 am

Hi there,

What is the full filename of the translation file?

What is the full path (in relation to the root directory for your site) that you have the translation file uploaded to?


Regiocolonia

August 7, 2015 at 6:05 am

Filename: event_espresso-de_DE.mo
Path: wp-content/plugins/event-espresso-core-reg/languages/


Tony

  • Support Staff

August 7, 2015 at 6:30 am

With EE4 the filename can be either:

event-espresso-4-{$locale}.mo

event_espresso-{$locale).mo

{$locale} in this instance is de_DE so your file should be fine.

However you do not want to load the translation files from that directory, use:

/wp-content/uploads/espresso/languages/

The latest version of the translation file can be found here:

http://translate.eventespresso.com/projects/event-espresso-4/de/event-espresso-de_DE

Download that (click Export at the bottom), if using the PO file open it in POEdit and save to create the MO. Then upload the mo file to the location mentioned above.


Regiocolonia

August 19, 2015 at 4:03 am

I tried it, but I have got the same problem.

The language file in my old directory is still working (Filename: event_espresso-de_DE.mo Path: wp-content/plugins/event-espresso-core-reg/languages/).
The problem is, that it does not translate everything, only a few things.

For example:
There are 2 words/sentences, which are not translated in the latest version of the translation file. These words are “Time” and the sentence “This ticket allows access to the following event dates and times.”.
I opened POEdit and translated these 2 phrases, save the MO file and upload it in the directory I mentioned above.
After it, I reloaded the website. Now, the word “Time” is correctly translated into “Zeit”. But the sentence “This ticket allows access to the following event dates and times.” is not translated.

So the problem is, that there are some translations which are working and some, which are not working.


Tony

  • Support Staff

August 19, 2015 at 5:45 am

The language file in my old directory is still working (Filename: event_espresso-de_DE.mo Path: wp-content/plugins/event-espresso-core-reg/languages/).

If you are still uploading your custom language files to this location you will lose these on the next update to Event Espresso.

For your custom language files please use:

/wp-content/uploads/espresso/languages/

Those files will override the translations within the core /languages/

Can you send me a copy of your PO file please? You’ll need to host the file and including a link here for me to download it from.


Regiocolonia

August 26, 2015 at 5:52 pm

Klick here to get my .po file.
Klick here to get my .mo file.

How you can see, I translated the “Please note that a maximum number of %d tickets can be purchased per transaction for this event.” into “Bitte beachten Sie die maximale Anzahl von %d Tickets, die pro Transaktion für dieses Event gekauft werden können.”.
But in fact, the plugin show me the english version (you can see it in the screenshot above).

Other phrases (like “The dates when this ticket is available for purchase.” – “An folgenden Terminen ist das Ticket zu kaufen.”) are shown in the correct language from the plugin (you can see it in the screenshot above, too).

Hope we can find the bug.


Lorenzo Orlando Caum

  • Support Staff

August 27, 2015 at 11:15 am

Hello,

I had a quick look at your translations file and it appears to be compiled from Event Espresso 3 and Event Espresso 4. Specifically, there are translation strings in there that are for Event Espresso 3 and do not appear in Event Espresso 4.

I manually transferred that translation over to our GlotPress project and then tested it and it works.

Please temporarily deactivate your PO and MO file in this location by adding an extra letter or number to the file names:

/wp-content/uploads/espresso/languages

Then retrieve the latest translation files for German by clicking on these links:

http://translate.eventespresso.com/projects/event-espresso-4/de/event-espresso-de_DE/export-translations?format=po

http://translate.eventespresso.com/projects/event-espresso-4/de/event-espresso-de_DE/export-translations?format=mo

Then adjust the file names to:

event_espresso-de_DE.po
event_espresso-de_DE.mo

…and then upload back to your site in this location:

/wp-content/uploads/espresso/languages


Lorenzo


Regiocolonia

September 2, 2015 at 4:49 am

Ok, thanks a lot.
I think, it works now.

Is there a way to edit the date and time format?
In Germany, we have got a 24-hours system. There is no AM and PM.


Lorenzo Orlando Caum

  • Support Staff

September 2, 2015 at 8:22 am

Hello again,

Event Espresso should use the date format and time format settings that are set in your WordPress general settings page in your WP dashboard automatically.

Here is an example: http://cl.ly/image/471X2f1G2Y47

The exception would be if you have setup templates that specify a certain date and time format.

Also, we have a new resource available for translators. If you have a few minutes available, we would appreciate feedback so we can make improvements:

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

Video tutorials for POedit along with GlotPress are planned as well.

Thanks


Lorenzo

Viewing 12 reply threads

The support post ‘[Bug] Translation overwritten’ 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