Support

Home Forums Event Espresso Premium Translating strings inside shortcodes

Translating strings inside shortcodes

Posted: August 28, 2015 at 11:37 am

Viewing 6 reply threads


Emil

August 28, 2015 at 11:37 am

Hi,
I use EE4 on a website in Romanian language. As such, I translated many strings from English to Romanian in the EE4 translation interface on glotpress, added the translation files to my website, and most of the strings I’ve translated are now showing on my website in Romanian. However, there seem to be many instances where a one string may appear, and it seems that even when a string is translated and added to the EE4 translation, that doesn’t mean that everywhere in EE4 the string will show the translation.
Below are some examples from my website:
Event Page:
– On the ticket selector the “Goes on sale” string still shows in English, though I know I translated it.
– same for this string: “*Please note that a maximum number of 5 tickets can be purchased for this event per order.”
– same for the “hide details –” string on the ticket selector
Registration Checkout Page
– the string “Attendee” appears not translated
Thank You Page:
The registration status “Pending Payment” shows untranslated
Receipt
– in the body of the receipt the registration status “Pending Payment” shows untranslated
For all the strings above I’m sure I’ve translated the strings on glotpress, still they show in English.
Are there strings in EE4 which are not translatable from using the language file and have to be translated elsewhere?
Another question is related to the translation of messages. They all have to be translated in the message interface, or there is a way to translate the strings from them in an easier way? Because a lot of messages use the same strings and it’s a lot of redundant work if they have to be translated one by one.
Thank you.
Best regards,
Emil


Lorenzo Orlando Caum

  • Support Staff

August 31, 2015 at 9:30 am

Hi Emil, could you provide a copy of your current PO file? You can upload via a service like Tinygrab or Getcloudapp and then link to it here.

The strings that you mentioned would be translated via your PO file.

Content within the messages would be translated via those individual message types. There isn’t a way to quickly copy over translated information through the different messages at this time.


Lorenzo


Emil

August 31, 2015 at 2:33 pm

Hi Lorenzo,

I’ve checked again the translations and found some strings I didn’t catch the first time. I’ve translated them on glotpress, uploaded the new mo and po files, and now they show on the frontend, but not all of them.
The one which doesn’t show, though it’s translated, it’s “Goes on Sale” from the ticket selector (Event Page).
Please check the translation files you requested:
https://www.dropbox.com/s/3yccr9zr8bh0k4m/event-espresso-4-ro_RO.mo?dl=0
https://www.dropbox.com/s/4aslzcrpi8xex3i/event-espresso-4-ro_RO.po?dl=0
Please let me know what’s the issue with the “Goes On Sale” string.
Thanks.
Best Regards,
Emil


Dean

September 1, 2015 at 5:16 am

Hi Emil,

Is it the Goes on Sale: found in the ticket selector? Screenshot http://take.ms/PnOSw


Emil

September 1, 2015 at 5:45 am

Hi Dean,

Interestingly, the string is not translated in one position inside the ticket selector in the Event Page, and translated in another position of the same ticket selector / event page, see screenshots:
http://awesomescreenshot.com/0455779c22
http://awesomescreenshot.com/0fc5778se4
Thanks.
Best Regards,
Emil


Lorenzo Orlando Caum

  • Support Staff

September 1, 2015 at 11:10 am

Hi Emil,

I found the issue. That string is available under a different line and I updated it using the existing translation.

You can get the latest PO and MO files from here (click to start download):

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

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

Then rename to:

event_espresso-ro_RO.po

event_espresso-ro_RO.mo

Then upload them to this location:

/wp-content/uploads/espresso/languages


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

September 1, 2015 at 7:09 pm

Hello again Emil,

We are changing the way that we handle localization and internalization for Event Espresso to make some improvements. Part of that is creating a new guide that takes you from enabling a local language through your WordPress site to translating Event Espresso and enabling those PO and MO files on your site.

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

We would appreciate feedback on it — especially on any areas that may be confusing. Also, we are planning on creating video tutorials but we want to make sure that the article is easy to understand.

Thanks


Lorenzo

Viewing 6 reply threads

The support post ‘Translating strings inside shortcodes’ 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