In my plugin’s init
function
load_textdomain( 'myplugin', ABS_PATH_TO_MO_FILE ); // OK
load_plugin_textdomain( 'myplugin', false, ABS_PATH_TO_LANGS_DIR); // No effect
echo( __('Test', 'myplugin') );
In the code above, the load_textdomain works, but not load_plugin_textdomain, any idea?
Looking at the source
load_plugin_textdomain
takes three arguments:It seems you are passing the absolute path to your language domain, as a relative path. Try: