A very popular translation plugin qTranslate has not been updated after 2014-1-26 which is compatible up to WordPress 3.8.3. After upgrading WordPress, the plugin qTranslate does not work. But it is difficult for website owners to change to other plugins.

I have a simple compatibility fix for the plugin qTranslate with WordPress 4.0 below. For sure, code changes are required.

A. Enable the plugin which is upper than WordPress 3.8.1

Edit the file ./wp-content/plugins/qtranslate/qtranslate.php at line 90

Change

define('QT_SUPPORTED_WP_VERSION', '3.8.1');

To

define('QT_SUPPORTED_WP_VERSION', '4.0');

 

B. Fix the date format

It is noticed that the date in the Dashboard cannot display correctly but some strange code instead like Nov 7th %I:%M %p

To fix it, edit the file ./wp-content/plugins/qtranslate/qtranslate_core.php at line 455

Change

return $before.strftime($format, $date).$after;

To

$format  = strftime($format, $date);
return $before.strftime($format, $date).$after;

 

After changes, it should work properly. If you have encountered any problems after fixes, please let me know.