WordPress.org

Ready to get started?Download WordPress

Forums

load_plugin_textdomain problem (1 post)

  1. hudarsono
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic