Date formatting not working after installing qTranslate

after installing qtranslate:

Posted on %e de %B de %Y by johnny

I found a solution for this on the qTranslate forums:

Edit qtranslate_utils.php, line 151 from this:
$date_parameters[] = ‘#%#’; $strftime_parameters[] = ‘%%’;
to this:
$date_parameters[] = ‘#%#’; $strftime_parameters[] = ‘%’;

It seems the extra percentage sign makes it so the percentage sign in the format gets interpreted as literal percentage signs and therefore they don’t get parsed by strftime().

Advertisements

Leave a Reply :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s