Hi,
i want to use last_post_redirect_load_plugin_textdomain
on a plugin
but when i use code
$plugin_wp_content_plugin_dir = dirname(plugin_basename( __FILE__ ));
function last_post_redirect_load_plugin_textdomain() {
global $plugin_wp_content_plugin_dir;
load_plugin_textdomain('last-post-redirect', false, $plugin_wp_content_plugin_dir.'/lang/');
}
add_action('plugins_loaded', 'last_post_redirect_load_plugin_textdomain');
It didn't work.(echo __("111", 'last-post-redirect');
it should be 222)
My Wordpress is zh_TW
and the file in lang/
is last-post-redirect-zh_TW.mo
and last-post-redirect-zh_TW.po
HELP!