Support

Home Forums Event Espresso Premium Translation Missing After EE Update

Translation Missing After EE Update

Posted: December 17, 2013 at 7:29 am


Thomas

December 17, 2013 at 7:29 am

Hello,
I have updated to WP 3.8 and EE 3.1.36.1.P, after which the payment options which appear at the end of the event registration are not entirely translated. They are partly in German and partly in English, though they should be entirely in German.

I think to have identified the bank_payment_vars.php file where this comes from.
The part ‘Attention!’ gets correctly translated into ‘Achtung!’.
But the rest of the following code snippet from bank_payment_vars.php shows up in English:

–> Screenshot of inconsistent translation<–

<code>
&lt;div class=event_espresso_attention event-messages ui-state-highlight&gt;
&lt;?php _e(Attention!, event_espresso); ?&gt;
&lt;?php _e(If you wish to pay by an Electronic Funds Transfer via your bank, then please make note of the information above, and click to, event_espresso);
?php _e(Complete your Registration, event_espresso); ?&gt;
?php _e(Complete your Registration,event_espresso);				
</code>

Please assist to understand how to fix this update issue.
Thanks, Thomas

  • This topic was modified 10 years, 4 months ago by  Thomas.
  • This topic was modified 10 years, 3 months ago by  Thomas.


Jonathan Wilson

December 17, 2013 at 1:11 pm

Hi Thomas,

How had you done the translations? The proper way to do the translations is to use the files from our github and copy them to wp-content/uploads/espresso/languages? Or did you do the translation within the file? If you did the translation within the actual php file, they will be overwritten during updates.


Thomas

December 18, 2013 at 3:42 am

Hi Jonathan,
I checked again, and I confirm that I am doing the translations via the language files.
I also re-checked the EE documentation on translations. I think there is an error on the page “How to Change Languages“. It states that the WP language files should go into wp-includes/languages, but IMO it should be wp-config/languages

Anyway, I have put them in both spots, but could not get this single part “If you wish to pay by an Electronic Funds Transfer…” in the course of the EE registration translated.

The translated part in the PO file reads:

<code>#: ../../../plugins/event-espresso/gateways/bank/bank_payment_vars.php:57
msgid &quot;&quot;
&quot;If you wish to pay by an Electronic Funds Transfer via your bank, then &quot;
&quot;please make note of the information above, and click to&quot;
msgstr &quot;Falls Sie per Bank-Überweisung zahlen wollen, notieren Sie sich hier &quot;
&quot;die Kontodetails, und dann &quot;</code>

Any advise is highly appreciated.
Cheers, Thomas


Thomas

December 18, 2013 at 3:45 am

Forgot to mention:
Yes, I have put the EE translations from GitHub into
wp-content/uploads/espresso/languages
The code mentioned in my previous post shows the desired German translation, but it still appears in English…


Dean

December 18, 2013 at 3:57 am

Hi,

I think there is an error on the page “How to Change Languages“.

We use the WordPress guidelines http://codex.wordpress.org/Translating_WordPress#Using_Localizations, but it can of course be added to wp-content if you prefer.

Regarding the translation, I updated the language files yesterday to be more up to date so you may find swapping to the new ones resolves your issue.


Thomas

December 18, 2013 at 4:37 am

Hi Dean,
I downloaded the EE language files 4 hours ago, so I should be already using your latest update. But the problem unfortunately persists…
Cheers, Thomas


Dean

December 18, 2013 at 5:32 am

That’s strange, I just downloaded and installed the German files, edited the PO file with Poedit and that string translates fine – http://d.pr/i/nrfc

When you edited the file did you just use a text editor or did you use Poedit? If just the text editor, try with Poedit as it also updates the MO file. It’s free, available at poedit.net


Thomas

December 18, 2013 at 6:37 am

Hi Dean,
I just downloaded the PO/MO files again from GitHub via the browser’s context menu “Save target as…”, just to be sure. But when opening the PO file in PoEdit, I get the message
“The file cannot be opened. The file may be either corrupted or in a format not recognized by PoEdit.”


Thomas

December 18, 2013 at 6:41 am

Clicking “OK” on the message above leads to another message in PoEdit:
“Failed to convert file *-de_DE.po to Unicode.”


Dean

December 18, 2013 at 6:55 am

Githubs downloading methods are a bit weird:

To download the PO file – left click the link on the main page and then right click the Raw button in the top right of the page that comes up and save as.

To download the MO file – left click the link on the main page, and then left click the View Raw text link in the middle of the page that comes up.

If you don’t do this you may end up with a MO and PO file that contains garbage data and the language wont work.


Thomas

December 18, 2013 at 7:20 am

Hello Dean,
Following your download procedure has lead to correct MP/PO files, and the translations are now appearing correctly in the course of the event registration.
Thanks a lot for your help!
Cheers, Thomas

The support post ‘Translation Missing After EE Update’ 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