Support

Home Forums Event Espresso Premium multilingual EE4 core functions

multilingual EE4 core functions

Posted: July 18, 2014 at 11:11 pm


Maltesen

July 18, 2014 at 11:11 pm

Hi, I am having problems with danish/ English language in the core functions of the EE4. For instance AM/PM time slots. In danish this would be 24H.
The dates in the upcoming events widget is also in English format:
ons aug 6th, 2014 – fre aug 8th, 2014 8:30 am – 3:30 pm.
This should be ons 6. aug – fre 8.aug, 2014 8:30 – 15:30 if it was following the wordpress language.

Can you help me with this problem?


Lorenzo Orlando Caum

  • Support Staff

July 19, 2014 at 4:36 pm

Hi Maltesen,

Try this suggestion:

https://eventespresso.com/topic/format-date-and-time-in-ee4/#post-93329


Lorenzo


Maltesen

July 27, 2014 at 1:57 am

Thanks, It did not solve the widget. But it solved the rest.


Dean

July 28, 2014 at 12:49 am

Hi Maltesen,

Being able to set the time/date format by WordPress settings is hopefully coming in a nearby future release.

In the mean time you can modify the output of the widget by adding a new widget class to your themes functions.php file or to a custom plugin.

I added a modified copy here: http://pastebin.com/nv47Xtn1

That can be pasted into your themes functions.php, you may need to remove and re-add the widget.

If you need to change the date format still search for espresso_list_of_event_dates near the bottom of the code and you can edit them there.


Maltesen

July 29, 2014 at 2:40 am

Hi Dean,
I can not get your script to work. Do I have to add it all in functions?


Josh

  • Support Staff

July 29, 2014 at 7:52 am

Hi Maltesen,

If you can post your modified code in a Github gist or in a pastebin and post a link to it here we can take a look and advise further.

The support post ‘multilingual EE4 core functions’ 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