qTranslate: How to translate Dates?
-
I wanna display a date in a language dependant format. So I wrapped the the format string in an __() function
<?php echo strftime( __("%B %d, %Y"), strtotime($post->post_date) );?>
and added a translation in the po/mo file.
msgid "%B %d, %Y" msgstr "%d. %B %Y"
But it always uses the “%B %d, %Y”-Format, never “%d. %B %Y”`.
How can I translate dates?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘qTranslate: How to translate Dates?’ is closed to new replies.