Support

Home Forums Event Espresso Premium Some texts not translated

Some texts not translated

Posted: June 3, 2020 at 6:11 am

Viewing 18 reply threads


greyowl

June 3, 2020 at 6:11 am

I have two German-language sites using EE 4.10.6.p. On one site, some of the texts are displayed in English (e.g Transaction Details) although they are correctly translated in the .po and .mo files in wp-content/uploads/espresso/languages. Am I doing something wrong?


Tony

  • Support Staff

June 3, 2020 at 7:20 am

Is it the exact same PO/MO file used on both sites or you have different translations in each site’s files?


greyowl

June 3, 2020 at 11:47 am

They are different translations. I checked the PO/MO file on the site that doesn’t show the translations and the entries look correct.


Tony

  • Support Staff

June 3, 2020 at 12:50 pm

Can you send me the PO file so I can take a look, please?

You’ll need to host it and just post a link to download it here.


greyowl

June 3, 2020 at 1:50 pm

Can you see it here?


Tony

  • Support Staff

June 4, 2020 at 2:56 pm

Ok, so I tested the PO file you sent over and it’s working fine:

https://monosnap.com/file/mtTHQsbt3nWnCb4xCG4qOfsUtcGp7N
https://monosnap.com/file/I0eSRs0UmJcYxRCgm2W0sHcwx7MuSY
https://monosnap.com/file/Am7b3LaoxuDugDWx03ah5MO9xqeNpE

I changed the ‘Payment options’ translation to include ‘TONY’ just to easily confirm the translations loaded.

So, either the site doesn’t have access to the file and can’t load or something odd is happening.

What is the file path, including the full filename for the PO and MO files?

Are you loading any custom EE templates on the non-working site?


greyowl

June 5, 2020 at 1:15 am

Well, because I have changed the default to “Not approved”, there’s really only one screen that still doesn’t show the correct text: the Registration screen shows “IMPORTANT NOTICE: EVENTS REQUIRING PRE-APPROVAL
The following events … Proceed to Registrierung abschliessen”
Those strings are correctly translated in the .po file and I have tried placing the .mo file in both /public_html/wp-content/plugins/event-espresso-core-reg/languages and /public_html/wp-content/uploads/espresso/languages. The message still comes in English.
Yes, I have two custom EE templates in /public_html/wp-content/uploads/espresso/templates: /public_html/wp-content/uploads/espresso/languages and espresso-events-table-template.template.php here and here


Tony

  • Support Staff

June 5, 2020 at 8:23 am

Well, because I have changed the default to “Not approved”, there’s really only one screen that still doesn’t show the correct text: the Registration screen shows “IMPORTANT NOTICE: EVENTS REQUIRING PRE-APPROVAL

Sorry, I’m confused here.

In your opening thread, you stated is the transaction details page so that’s what I’ve been checking, but here its the Pre-approval section?

Those strings are correctly translated in the .po file and I have tried placing the .mo file in both /public_html/wp-content/plugins/event-espresso-core-reg/languages and /public_html/wp-content/uploads/espresso/languages. The message still comes in English.

What is the full filename for the MO file your testing?

Yes, I have two custom EE templates in /public_html/wp-content/uploads/espresso/templates: /public_html/wp-content/uploads/espresso/languages and espresso-events-table-template.template.php here and here

I can’t access those links, but if one is the events table template the other would not affect both the transaction details AND the pre-approval section, so likely not the issue.


greyowl

June 8, 2020 at 2:34 pm

I sent a screenshot and two template files via email to support.


greyowl

June 10, 2020 at 8:02 am

I have deleted the .mo file from /public_html/wp-content/plugins/event-espresso-core-reg/languages.
The /wp-content/uploads/espresso/languages/ directory has 0755 and the file event_espresso-DE.mo has 0644.
The problem still exists with that single warning prompt “IMPORTANT NOTICE: EVENTS REQUIRING PRE-APPROVAL…” All other texts seem to be translated correctly.


Tony

  • Support Staff

June 11, 2020 at 5:04 am

and the file event_espresso-DE.mo has 0644.

Is that locale a typo?

The filename should be event_espresso-de_DE.mo

If you are using the PO file you sent me to generate the MO file in use on your site I’m not sure why it isn’t working as it’s working fine for me (See HERE)

Just to confirm, you are aware you need to use the PO file to generate a MO file and replace the MO on your site, correct? (I’m fairly certain you are but I can’t think of any other reasons for the translation to work for me but not you).


greyowl

June 11, 2020 at 5:33 am

Yes, the locale is a typo. I did modify the .po file, generate the .mo and uploaded that to /wp-content/uploads/espresso/languages/.
The interesting thing is that for the courses, which use the toggle template, that particular message appears in German; it’s for the tests, which use the (slightly modified) espresso-events-table-template.template.php (which I sent you), that that text comes in English.


greyowl

June 11, 2020 at 5:38 am

Where is the language selected? Is it possible that the two template files call different routines, one of which loads the local language and the other not?


Tony

  • Support Staff

June 11, 2020 at 6:49 am

Where is the language selected?

It is loaded based on the Site Settings.

Dashboard -> Settings -> General -> Site Language

Is it possible that the two template files call different routines, one of which loads the local language and the other not?

No, they both lead to the same event link and the user then starts the process from there. Neither of those templates should be/are changing the site language.

I ran a quick test registration on an event (not using either of the templates mentioned) and the No Approved string translates as expected.

Can you link me to the specific page I need to start from to view this?


greyowl

June 11, 2020 at 7:59 am

I’ve just updated Beaver Builder theme AND NOW IT WORKS!
I was going to say:
Start here: https://www.lernen-im-quartier.ch/kurse/sprachnachweis-1/
Click “Anmelden”; fill out your details and click “Weiter”…


greyowl

June 11, 2020 at 8:01 am

The test signup page is built with BB, whereas the course signup page isn’t. Can that have been the cause?


Tony

  • Support Staff

June 11, 2020 at 8:16 am

I have no idea why updating the theme fixed this, it doesn’t make much sense that it did. To clarify I’m not saying it didn’t I just can’t think of a reason that it would.

The test signup page is built with BB, whereas the course signup page isn’t. Can that have been the cause?

Which specific page is that?


greyowl

June 12, 2020 at 12:42 am

Test signup page: https://www.lernen-im-quartier.ch/aktuelle-sprachnachweis-termine/?doing_wp_cron=1591944124.8056840896606445312500


Tony

  • Support Staff

June 16, 2020 at 8:50 am

That page shouldn’t have made any difference.

I’m not really sure why that happened but as it’s now working there isn’t much I can troubleshoot.

Viewing 18 reply threads

The support post ‘Some texts not translated’ 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