Problem with last_post_redirect_load_plugin_textdomain!
-
Hi,
i want to uselast_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 iszh_TW
and the file inlang/
islast-post-redirect-zh_TW.mo
andlast-post-redirect-zh_TW.po
HELP!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem with last_post_redirect_load_plugin_textdomain!’ is closed to new replies.