mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
refactor:移除国际化和Loco Translate插件引入相关代码
This commit is contained in:
parent
f944720dc1
commit
0b0df32670
1 changed files with 0 additions and 20 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 引入设置页
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue