Translate month with PHP
Posted: Fri Jul 09, 2010 2:28 am
I am trying to translate the current month into another language with php. It is part of WordPress, month of posting the post.
I have tried this, but it doesn't work
I have no clue how to solve it because I don't know much about PHP. It shouldn't be too difficult though.
Can someone help me with this?
Thanks
I have tried this, but it doesn't work
Code: Select all
<?php $mnth = the_time('M');
if ($mnth = 'Mar') $imnth = 'Mrt';
if ($mnth = 'May') $imnth = 'Mei';
if ($mnth = 'Oct') $imnth = 'Okt';
?>
<p class="date">
<span class="month"><?php $imnth; ?></span>Can someone help me with this?
Thanks