Support » Plugins and Hacks » load_plugin_textdomain problem

  • Hi,

    I developed a plugin, and created .mo and .po file. Following are the code to load the language :
    add_action(‘init’, ‘load_lang’);

    function load_lang(){
    $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.

    Any Idea?

  • The topic ‘load_plugin_textdomain problem’ is closed to new replies.