Hello guys and galls
I use DutchDate http://wordpress.org/extend/plugins/dutchdate/ to translate dates in a wordpress blog. It works nice. I changed it a bit, so now it also changes the first capital of the month name.
It works for the_time, the_date, and prolly also for the_modified_date and the_modified_time.
It does a simple replace (i deleted all values but one for the sake of brevity):
function multipop_date_replace($text) {
$days_english = array('Monday');
$days_dutch = array('Maandag');
$text = str_replace($days_english, $days_dutch, $text);
return $text;
}
And then it does:
add_filter('the_time', 'multipop_date_replace');
I assumed that adding
add_filter('comment_date', 'multipop_date_replace');
would do the trick to also change the date below comments. It does not.
<a href="#comment-<?php comment_ID() ?>">
<?php comment_date('j F Y') ?> om <?php comment_time() ?> uur
</a>
returns: 17 March 2009 om 16:35 uur
whereas
<small><?php the_time('l j F Y \o\m H:i \u\u\r') ?></small>
returns: Dinsdag 17 maart 2009 om 16:30 uur
Can anyone help me please?
Cheers