Home Forums Translations Date localization problem

Date localization problem

Posted: October 27, 2014 at 5:06 am

Eryk Lichwa

October 27, 2014 at 5:06 am

I have Event Espresso 4.4.0.p new installation without add-ons installed on WordPress 4.0.
Wordpress polish languge version and espresso with polish langage files extended with my own translated phrases
works well on all “inside espresso pages”.
It does’nt work on “outside Pages” like mesages and for exemple receipt_body.template.
Names of months in [DATETIME_START] and [DATETIME_END] message shortcode and 112 verse “echo sprintf(__(“%s – %s (%s)”, “event_espresso”),$datetime->start_date_and_time(),$datetime->end_date_and_time(),$datetime->get_timezone());” in
receipt_body.template.php are displayed english whereas in all other espresso pages are polish.
I’m not php programmer and cannot correct the situation.
How could I make all espresso dates displayed uniformly, that is to say, polish in that case?

Eryk Lichwa

Sidney Harrell

October 28, 2014 at 11:08 am

It looks at first glance like the order of operations of those two functions needs to be reversed, and the sprintf applied first, and the __ applied second, but I could be wrong.
The first thing I would try is updating to EE 4.4.3, as there may be a bug that was already fixed.

The support post ‘Date localization problem’ 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