Fix date strings with percentage symbols in qtranslate

If you see dates with percentage symbols when using qtranslate in WordPress:

before

You can fix it by editing the qtranslate_utils.php file (line 151 more or less) and deleting one of the percentage symbols from:

$date_parameters[] = '#%#'; 			$strftime_parameters[] = '%%';

To this:

$date_parameters[] = '#%#'; 			$strftime_parameters[] = '%';

Then dates should look ok:

after

You might also like

Plus (+) and At (@) symbols listing file permissions in Mac OS X
The other day I was surprised to see some "plus" (+) and "at" symbols (@) when looking a file list with...

Remove a WordPress action in child theme
If you want to remove a WordPress action that was added in the parent theme like this:function...

Exit maintenance mode in WordPress when an update fails
To exit maintenance mode in WordPress when an update fails is as easy as deleting the .maintenance file...

Fix plugins and themes installation when WordPress asks for FTP credentials
When WordPress doesn't have the right premissions on the wp-content folder it will ask for your FTP credentials...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.