I developed a plugin, and created .mo and .po file. Following are the code to load the language :
$plugin_dir = basename(dirname(__FILE__));
load_plugin_textdomain( ‘competition’, false, dirname( plugin_basename( __FILE__ ) ) );
I put the mo and po file under base plugin folder ‘competition’ and the name of mo file was correct : competition-zh_CN.mo
But somehow when I change the lang using wp plugin qtranslate, everything else is translated to chinese but my plugin.
- The topic ‘load_plugin_textdomain problem’ is closed to new replies.