标签: wordpress
如何将.mo翻译文件加载到插件的后端?
这只适用于前端:
function my_plugin_load_plugin_textdomain() { load_plugin_textdomain( 'my_plgin', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); } add_action( 'plugins_loaded', 'my_plugin_load_plugin_textdomain' );