How to translate the Datepicker's language?

81 views
Skip to first unread message

Huroman

unread,
Jun 25, 2012, 6:28:01 PM6/25/12
to magic-...@googlegroups.com
I modified the "ui.datepicker.js" but looks like this is not the file, i've been searching inside de SQL but nothing, anybody knows where i could do that?

Need to change from english to spanish.

Thank you.

Huroman

unread,
Jul 13, 2012, 12:59:23 PM7/13/12
to magic-...@googlegroups.com
Answering myself, i didn't find any option to translate the datepicker, neither in DB. So weird, i can't realize where demonios the english text is saved. I just change in my shortcode the get_date like this:

get_the_modified_time('d \d\e\ F, Y')

and the text is taking the lang directly from WP's lang.

Jorge del Campo Andrade

unread,
Jan 19, 2017, 2:12:55 PM1/19/17
to Magic Fields
Hi Huroman, i had the same problem and i resolved it this way:

First, i used $fecha = get('fecha'); but i get the field-date in english.

Now, i've changed by $fecha = date_i18n('d-M', strtotime(get('fecha')), true); and it works!!

I hope this helps you.
Regards from Chile!
Reply all
Reply to author
Forward
0 new messages