refactor:移除国际化和Loco Translate插件引入相关代码

This commit is contained in:
sunxiyuan 2020-08-15 15:30:11 +08:00
parent f944720dc1
commit 0b0df32670

View file

@ -12,26 +12,6 @@
*/
if (is_admin()) {
/**
* 加载翻译
*/
add_action('plugins_loaded', function () {
load_plugin_textdomain(
'wp-china-yes',
false,
basename(dirname(__FILE__)).'/languages/'
);
});
/**
* WP-China-Yes的翻译校准基于Loco Translate插件开发这里通过引入入口文件的方式激活该插件的二次开发版
*/
if ( file_exists(__DIR__ . '/libs/loco-translate/loco.php') ) {
require __DIR__ . '/libs/loco-translate/loco.php';
}
/**
* 引入设置页
*/