Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Datetime localization Ee4 | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Datetime localization Ee4

Datetime localization Ee4

Posted: March 5, 2014 at 3:14 am

Viewing 5 reply threads


Leonardo Angelini

March 5, 2014 at 3:14 am

I need to show datetime events in italian language.
My setlocale is correct (it_IT) but I can see this:
Friday April 11th, 2014 8:00
And I need to see:
Venerdì 11 aprile 2014 8:00

How can I do?


Josh

March 5, 2014 at 7:51 am

Hi Leonardo,

We’re working on a fix for this and it should be available in the next release.


Leonardo Angelini

March 5, 2014 at 9:42 am

Hi Josh,
when will be available the next version?
my client is putting pressure … and what I have to solve this as soon as possible :(


Josh

March 5, 2014 at 5:34 pm

Hi Leonardo,

Our policy, like that of many companies, is not to comment on the timetable of work in progress. I can tell you this is complicated fix because it affects how the events are not only displayed but entered into the event editor.

In the meantime, there are other ways of displaying the primary event date in the templates that you can use. This is one way:

In your child theme’s functions.php file you add:

function my_event_date_and_time() {
	global $post;
	if ( isset( $post->EE_Event ) && $post->EE_Event instanceof EE_Event ) {
		echo $post->EE_Event->primary_datetime()->start_date_and_time(); 
	}
}

This makes a new template tag you can use to display an event time in its place with:

<?php my_event_date_and_time(); ?>


Leonardo Angelini

March 6, 2014 at 2:57 am

Hi Josh,
I put function my_event_date_and_time() in my template functions.php
Then I called my_event_date_and_time(); inside my custom content-espresso_events.php.
It doesn’t work :(


Josh

March 6, 2014 at 8:59 am

Hi Leonardo,

Do any of your changes in content-espresso_events.php work? It may be that it’s not loading. Another thing you can try is adding the function directly inside the template. The theme’s functions.php file may be getting interrupted when it loads its functions.

Viewing 5 reply threads

The support post ‘Datetime localization Ee4’ 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 - Staging Server