nfrost21
nfrost21

Reputation: 559

Wordpress 3.2.0 Need help localizing Date format to Spanish in comment meta

I´m working on a blog for a Spanish client:

http://www.microcementoeuropeo.com/blog/

The theme was created from scratch and I have been manually translating english text for comments form etc. However - i´ve run into a problem with the date format in the comments meta which displays as:

07/11/2011 at 8:10 pm

...which I need to change to:

07/11/2011 a las 8:10 pm

I´ve tried changing the format in the general settings of the wordpress install and searched in the comments.php file but to no avail. Any clues appreciated!

Upvotes: 1

Views: 818

Answers (1)

Steve Claridge
Steve Claridge

Reputation: 11080

I don't have a WP install at hand to try this but I think you can use the_date() and the_time() functions. Something like this:

<p>Posted: <?php the_time('F j, Y'); ?> a las <?php the_time('g:i a'); ?></p>

You may need to changed the parameters to each function to match your format.

http://codex.wordpress.org/Template_Tags/the_time

Upvotes: 2

Related Questions