Support

Home Forums Event Espresso Premium can't figure out how to translate one specific string (We're sorry, but all tick

can't figure out how to translate one specific string (We're sorry, but all tick

Posted: June 21, 2017 at 7:56 am


adasch

June 21, 2017 at 7:56 am

Hi. I use EE 4.9.42.p, Event Espresso – Calendar (EE 4.3+), and Event Espresso – Events Table View Template (EE 4.4.9+) (latest versions!)

I run a german site and use Loco Translate to translate some strings into german.

On my EE page I now see this string:
“We’re sorry, but all tickets sales have ended because the event is expired.”

I can’t locate this string via Loco Translate. The closest one says “We’re sorry, but all ticket sales have ended.” but there is a period after “ended” and this string IS translatet into german.

So I guess I have to look for something else – but can’t figure out where.

Can you help? Thanks!


adasch

June 21, 2017 at 7:57 am

here is the link
https://www.akademie-psychotherapie.de/intensivkurs-systemische-therapie-fuer-die-heilpraktiker-psychotherapie-ueberpruefung/#anmeldung


Tony

  • Support Staff

June 21, 2017 at 8:49 am

Hi there,

The string you need to translate is:

We\'re sorry, but all tickets sales have ended because the event is expired.

Can you find that within Loco Translate?


adasch

June 21, 2017 at 9:09 am

unfortunately not. I see a bunch of “We’re sorry” strings (which are all translatet properly by the way), but not that specific one.

I’m confused 🙂


Tony

  • Support Staff

June 21, 2017 at 10:28 am

Did you generate your POT file using Loco Translate originally and have you updated it at all since you generated it?

If you edit a translation how many strings does it show at the top – http://take.ms/IGiez


adasch

June 21, 2017 at 10:56 am

uh, that I don’t know 🙁

It says
100% translated, 2246 strings (1 untranslated)

So I guess there are lot’s of strings missing. Do you know how I get them? Otherwise I’ll head over to Loco support. Thanks!


Tony

  • Support Staff

June 22, 2017 at 4:11 am

2246 string is low, so that’s an old POT file.

I’m guessing Loco Translate was used to generate the POT file a while back so it doesn’t have the latest strings available for you to translate. I don’t know how you can for Loco to research the source files for new strings but I can provide you with the latest POT file for Event Espresso:

http://take.ms/TZC9I

However I don’t know the correct procedure to update that within Loco, it looks like you can replace the .pot file your bundle is currently using and then sync it to your template but I’d recommend checking with loco translate on how they expect the updates to be done.


adasch

June 22, 2017 at 4:54 am

Thanks. I got it to work. Now I have all 7484 strings in it.
(I just uploaded your pot file nad the latest po and mo files from here:
https://github.com/eventespresso/languages-ee4

But now – please don’t kill me – I cant’t find another string 🙁
Same link as above, scroll all way down and click on the toggle.

There it says “Event Location:”.
ARGH – I can’t find that string!!! Whyyyyy? :))

Thanks again!


Tony

  • Support Staff

June 22, 2017 at 5:08 am

(I just uploaded your pot file nad the latest po and mo files from here:
https://github.com/eventespresso/languages-ee4

Where did you upload those?

There it says “Event Location:”.
ARGH – I can’t find that string!!! Whyyyyy? :))

There is no ‘Event Location’ string within Event Espresso.

It looks like you are loading a custom version of content-espresso_events-venues.php as the layout of the code is similar but has been changed. The string in that location would be ‘Location’ by default.


adasch

June 22, 2017 at 5:50 am

Sorry. I DOWNloaded your pot file from your link and the mo and po file from github.

Thanks for your tips!


Tony

  • Support Staff

June 22, 2017 at 5:59 am

Sorry. I DOWNloaded your pot file from your link and the mo and po file from github.

Yeah I understand, but which directory did you upload those files within your site?


adasch

June 22, 2017 at 8:39 am

I recreated a new language template and put everything in this folder
/plugins/event-espresso-core-reg/languages


Tony

  • Support Staff

June 22, 2017 at 12:56 pm

Right, ok that’s what I was looking for.

If you are using Loco to edit the files in that location your going to lose the files when you update Event Espresso.

You want the MO/PO files to be saved in a custom location, Event Espresso has its own which is:

/wp-content/uploads/espresso/languages/

Loco Translate has its own location and it all depends on how your setting up the ‘template’ within the EE settings for Loco.

So when you edit the translations within Loco for EE, is it updating the MO file within /plugins/event-espresso-core-reg/languages/ or another location?

The support post ‘can't figure out how to translate one specific string (We're sorry, but all tick’ 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