Support

Home Forums Event Espresso Premium Date format for [start_date]

Date format for [start_date]

Posted: October 17, 2013 at 9:22 am


rosorio

October 17, 2013 at 9:22 am

when i use [start_date] for a ticket apears this:

21 October, 2013 (in English) and it should be in spanish (in my case as 21 octubre 2013).

As i read, thsi depends on the local setting on my WordPress, but this is OK, and still apeards in english…

What can i check to fix this?
Thanks in advance.

  • This topic was modified 10 years, 6 months ago by  rosorio.
  • This topic was modified 10 years, 6 months ago by  rosorio.


Sidney Harrell

October 17, 2013 at 11:01 am

We send the start date through the WP date_i18n function, which should change the month and weekday names to the locale language. Do you have the WP_LANG specified in wp-config and have the WP language pack loaded?


rosorio

October 17, 2013 at 11:59 am

yes, there are set as:
define('WPLANG', 'es_ES');
and i’m using the event_espresso-es_ES.mo file


Sidney Harrell

October 17, 2013 at 12:15 pm

Are you using the WordPress es_ES translation file?
http://i18n.svn.wordpress.org/es_ES/tags/3.6.1/messages/
http://codex.wordpress.org/Installing_WordPress_in_Your_Language


rosorio

October 17, 2013 at 12:35 pm

Yes, i’m using it..
The e-mail confirmation is ok, the date apears in spanish but in the event ticket (using Event Espresso – Ticketing Versión 2.0.10.2.p) apears in english.


Sidney Harrell

October 17, 2013 at 5:43 pm

I’ve come up with a theory. Can you test it by opening up espresso.php and going down to line 1094, and where it says:

add_action('plugins_loaded', 'espresso_export_ticket', 40);

change it to:

add_action('init', 'espresso_export_ticket');


rosorio

October 18, 2013 at 7:31 am

Thanks a lot.. work perfectly.

The support post ‘Date format for [start_date]’ 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