From 8a4d74e997fcb7ae9af5ef8299e0c2c946c6efa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 23 Aug 2024 14:48:31 +0800 Subject: [PATCH] feat: bump version 3.6.4 --- Service/Super.php | 33 +++--- languages/wp-china-yes-en_US.mo | Bin 0 -> 5870 bytes languages/wp-china-yes-en_US.po | 171 ++++++++++++++++++++++++++++++++ languages/wp-china-yes-zh_CN.mo | Bin 0 -> 5468 bytes languages/wp-china-yes-zh_CN.po | 160 ++++++++++++++++++++++++++++++ languages/wp-china-yes-zh_TW.mo | Bin 0 -> 5492 bytes languages/wp-china-yes-zh_TW.po | 160 ++++++++++++++++++++++++++++++ wp-china-yes.php | 4 +- 8 files changed, 513 insertions(+), 15 deletions(-) create mode 100644 languages/wp-china-yes-en_US.mo create mode 100644 languages/wp-china-yes-en_US.po create mode 100644 languages/wp-china-yes-zh_CN.mo create mode 100644 languages/wp-china-yes-zh_CN.po create mode 100644 languages/wp-china-yes-zh_TW.mo create mode 100644 languages/wp-china-yes-zh_TW.po diff --git a/Service/Super.php b/Service/Super.php index 1597550..38518cf 100644 --- a/Service/Super.php +++ b/Service/Super.php @@ -159,15 +159,10 @@ class Super { * 前台静态加速 */ if ( ! empty( $this->settings['admincdn']['frontend'] ) ) { - add_action( 'template_redirect', function () { - ob_start( function ( $content ) { - $regex = '#(?<=[(\"\'])(?:' . quotemeta( home_url() ) . ')?/(?:((?:wp-content|wp-includes)[^\"\')]+\.(css|js)[^\"\')]+))(?=[\"\')])#'; - - return preg_replace_callback( $regex, function ( $asset ) { - return 'https://public.admincdn.com/' . $asset[0]; - }, $content ); - } ); - } ); + $this->page_str_replace( 'preg_replace', [ + '#(?<=[(\"\'])(?:' . quotemeta( home_url() ) . ')?/(?:((?:wp-content|wp-includes)[^\"\')]+\.(css|js)[^\"\')]+))(?=[\"\')])#', + 'https://public.admincdn.com/$0' + ] ); } /** @@ -309,7 +304,11 @@ class Super { * WordPress 讨论设置中的默认 LOGO 名称替换 */ public function set_defaults_for_cravatar( $avatar_defaults ) { - $avatar_defaults['gravatar_default'] = '初认头像'; + if ( $this->settings['cravatar'] == 'weavatar' ) { + $avatar_defaults['gravatar_default'] = 'WeAvatar'; + } else { + $avatar_defaults['gravatar_default'] = '初认头像'; + } return $avatar_defaults; } @@ -318,7 +317,11 @@ class Super { * 个人资料卡中的头像上传地址替换 */ public function set_user_profile_picture_for_cravatar() { - return '您可以在初认头像修改您的资料图片'; + if ( $this->settings['cravatar'] == 'weavatar' ) { + return '您可以在 WeAvatar 修改您的资料图片'; + } else { + return '您可以在初认头像修改您的资料图片'; + } } /** @@ -328,12 +331,16 @@ class Super { * @param $param array 传递给字符串替换函数的参数 */ private function page_str_replace( $replace_func, $param ) { - add_action( 'init', function () use ( $replace_func, $param ) { + // CLI 下返回,防止影响缓冲区 + if ( class_exists( 'WP_CLI' ) ) { + return; + } + add_action( 'template_redirect', function () use ( $replace_func, $param ) { ob_start( function ( $buffer ) use ( $replace_func, $param ) { $param[] = $buffer; return call_user_func_array( $replace_func, $param ); } ); - }, 999999 ); + }, PHP_INT_MAX ); } } diff --git a/languages/wp-china-yes-en_US.mo b/languages/wp-china-yes-en_US.mo new file mode 100644 index 0000000000000000000000000000000000000000..4c31d5666c01ab038964f60bf85fbd4b6741aa24 GIT binary patch literal 5870 zcmcIoTWl298J@PJP26kJ>qFI^AVneyyBLQcVnQTBE{z%zH;~XgMdR7CyA#jOY-VQd zIIUFM#CIE;0={5V$AGb$fX&4iUv{z7*H(S%Th;a_-C**@7=E{$~Q3n{)395!FI#`2=pTIU_{E6`S zVrUm&pT>9=_F33}!J4p7)hNn-*vqiA-(N%P!+sUdpTYhbe*6daY1mdwdII*=Hx=bi zc>j-YVLhI&ep^xg0Q<>z6y+DNR~`xW`}cPh;6Dd9)|rREbaR@SU{$Duy8|x8!`@<@&`+0 ztaLuD#Z>u0N)*7Zz-9SCND9)UAT5uS=J7*2 zldhX~>i6tXV=3L#VrE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&FE)*SmEtkSlR#CZC(!;H@`0OUag1g$pm#+E=Zuy{y(;rMg{F0=JX~+j@s?M99|2|X5hE|YK~$E|u+)9_m4b>6Jgg2?l#%j;QPZQZ^| z?SV+$lWcEYecj$CY7f-b*1V!RZsfSFnvS8mmW`FKsAeLgCV1pHS5x)u1v6pjPLl0< z!_-|KW5-l>e+!t-K{~6ZPkdpXxS;Jo|$R+=p3p$$bw%F zne5R+Z12IEUq)WyCbxq)8Y~{uUG`*jUvwYdykcoq#l1Qd>)yQw8Om&bbU$7{Z>8W_ zJq?s^)tb#c#OL&zrB01>lsPTBt0lR^+$3iXP}4OQ*9|$Kx>bC%xuIj!GMQ_!bf(e3 zM6{$<#@1-E#hf$;@R>Ag;f)TGz*G%yoG5$C$}mkekpZ>Q;PRk!z!y3dhnTbwJ2VDs z3<3uusw3a;mRpDCcjdAHFQUp1oa4Kyo2$s;zDBE?|Yz0Ei+_2!6#9Rlt69gxg zz+s2m&AP@Jh9xGt&8!xa0EuNZ7xYAL})=kc0I0Zk~jhJG7fl$KeKfc%%t2Q5pf%TIHD|(L|}{=F;a9C9O$RZYyvnE zgT@d&syT?FEM2C?@eoKK+$sxHAiES=N;NZpT=JG8gBWW~k|Ue@%qrR6=FdZ1f-Xf| zstL+|=q-_R%M{+XX+9360bz7a4|yT$l5h#6pY19&(E7$dvwd?4Act1^#zp}V=ovYY56-0wy! vPBocj#LAorFPD%k$_D9~c+XYh^XGepZODXkE$}#RzE|mWP2{^lB literal 0 HcmV?d00001 diff --git a/languages/wp-china-yes-en_US.po b/languages/wp-china-yes-en_US.po new file mode 100644 index 0000000..9e7e54b --- /dev/null +++ b/languages/wp-china-yes-en_US.po @@ -0,0 +1,171 @@ +msgid "" +msgstr "" +"Project-Id-Version: WP-China-Yes\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-08-23 03:41+0000\n" +"PO-Revision-Date: 2024-08-23 12:21+0800\n" +"Last-Translator: \n" +"Language-Team: English (United States)\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Poedit 3.4.4\n" +"X-Loco-Version: 2.6.11; wp-6.6\n" +"X-Domain: wp-china-yes\n" + +#: Service/Setting.php:54 +msgid "" +"萌芽加速(adminCDN)" +"将 WordPress 依赖的静态文件切换为公共资源,加快网站访问速度。您可按需启用需要" +"加速的项目,更多细节控制和功能,请关注 adminCDN 项目。" +msgstr "" +"adminCDN switches " +"the static files that WordPress relies on to public resources to speed up " +"website access. You can enable the projects that need to be accelerated as " +"needed. For more detailed control and functions, please pay attention to the " +"adminCDN project." + +#: Service/Setting.php:72 +msgid "" +"初认头像(Cravatar)Gravatar 在中国的完美替代方案,您可以在 Cravatar.com 上传头像,更多选项请安" +"装 WPAavatar 插件。(任何开发者均可在自己的产品中集成该服务,不局限于 " +"WordPress)" +msgstr "" +"Cravatar is a " +"perfect alternative to Gravatar in China. You can upload your avatar on " +"Cravatar.com. For more options, please install the WPAavatar plugin. (Any " +"developer can integrate this service into their own products, not limited to " +"WordPress)" + +#: Service/Setting.php:86 +msgid "" +"文风字体(Windfonts)为您的网页渲染中文字体并对主题、插件内的字体进行加速;优化模式可优化浏览器" +"字体调用。" +msgstr "" +"Windfonts renders " +"Chinese fonts for your web pages and accelerates fonts in themes and plug-" +"ins; the optimization mode can optimize browser font calls." + +#: Service/Setting.php:109 +msgid "" +"文派叶子🍃(WP-" +"China-Yes)支持自动监控各加速节点可用性,当节点不可用时自动切换至可用节点" +"或关闭加速,以保证您的网站正常访问。" +msgstr "" +"WP-China-Yes 🍃 " +"(文派叶子) supports automatic monitoring of the availability of each " +"acceleration node. When a node is unavailable, it automatically switches to " +"an available node or turns off acceleration to ensure normal access to your " +"website." + +#: Service/Setting.php:98 +msgid "" +"文派叶子🍃(WP-" +"China-Yes)独家特色功能,让您拥有清爽整洁的 WordPress 后台,清除各类常用" +"插件侵入式后台广告、通知及无用信息;启用后若存在异常拦截,请切换为手动模式," +"查看可优化插件列表。" +msgstr "" +"WP-China-Yes 🍃 " +"(文派叶子) unique features allow you to have a clean and tidy WordPress " +"backend, removing all kinds of intrusive backend ads, notifications and " +"useless information from commonly used plugins; if there is abnormal " +"interception after enabling, please switch to manual mode and check the list of optimizable " +"plugins." + +#: Service/Setting.php:41 +msgid "" +"官方加速源(WPMirror)直接从 .org 反代至大陆分发;文派开源(WenPai.org)中国境内自建托管仓库,同时集成文" +"派翻译平台。" +msgstr "" +"The official " +"acceleration source (WPMirror) is directly reverse-generated from .org " +"to the mainland for distribution; WenPai.org Open Source has its own hosting warehouse " +"in China and is integrated with the WenPai translation platform." + +#. Author URI of the plugin +msgid "https://wp-china-yes.com" +msgstr "https://wp-china-yes.com" + +#. Name of the plugin +#: Service/Setting.php:143 Service/Setting.php:144 +msgid "WP-China-Yes" +msgstr "WP-China-Yes" + +#: Plugin.php:52 +#, php-format +msgid "" +"WP-China-Yes 插件需要 PHP 5.6.0 或更高版本,当前版本为 %s,插件已自动禁用。" +msgstr "" +"The WP-China-Yes plugin requires PHP 5.6.0 or higher. The current version is " +"%s and the plugin has been automatically disabled." + +#: Service/Setting.php:71 +msgid "初认头像" +msgstr "Cravatar" + +#: Service/Setting.php:97 +msgid "广告拦截" +msgstr "Ad Blocker" + +#: Service/Setting.php:40 +msgid "应用市场" +msgstr "App Market" + +#. Description of the plugin +msgid "" +"文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽," +"生生不息。" +msgstr "" +"WP-China-Yes 🍃 (文派叶子) is the infrastructure software for the Chinese " +"WordPress ecosystem, just like fallen leaves sprouting new leaves, it is " +"everlasting." + +#. Author of the plugin +msgid "文派开源" +msgstr "WenPai.org" + +#: Service/Setting.php:85 +msgid "文风字体" +msgstr "Windfonts" + +#: Plugin.php:71 +msgid "检测到不兼容的插件 Kill 429,已自动禁用!" +msgstr "Incompatible plugin Kill 429 detected, automatically disabled!" + +#: Plugin.php:65 +msgid "检测到不兼容的插件 WP-China-Plus,已自动禁用!" +msgstr "Incompatible plugin WP-China-Plus detected and automatically disabled!" + +#: Plugin.php:78 +msgid "" +"检测到已在 WordPress 配置文件中设置代理服务器,这可能会导致插件无法正常工作!" +msgstr "" +"A proxy server has been detected in the WordPress configuration file. This " +"may cause the plugin to not work properly!" + +#: Plugin.php:59 +msgid "检测到旧版插件 WP-China-No,已自动禁用!" +msgstr "" +"An old version of the plugin WP-China-No has been detected and automatically " +"disabled!" + +#: Service/Setting.php:108 +msgid "自动监控" +msgstr "Automatic Monitor" + +#: Service/Setting.php:53 +msgid "萌芽加速" +msgstr "adminCDN" + +#: Service/Setting.php:32 Service/Setting.php:155 +msgid "设置" +msgstr "Setting" diff --git a/languages/wp-china-yes-zh_CN.mo b/languages/wp-china-yes-zh_CN.mo new file mode 100644 index 0000000000000000000000000000000000000000..b2774338414318a58e6eaa183a91dd709e52971f GIT binary patch literal 5468 zcmeHKOK%(36`rPQo3M{G?sE~e0|8wHBhiX&I8%v z@aW^cb06P1=R4seWc@AAaD2|eUjVP8{{^Rg+ra|x zCG=N;XMtY# z@Nu0Ez7Ax(F9ShSz_xZ9u>atbZ7WO?KvVds^93Oh;C2BN><1s`Lw?FRxu>&-Ad?8 z>pSoE%IbTqXRUP7O4LZ=RwJCnMCiB=sj!e1}&#|t4SUYfAxOr#J%GVn+dF(*S zE1!i2=)f9D6=*Wvm=BY5!JJ&f4{IgDS+MnUB{P%9A~dr}mTsDrAuBOJ$5u&fn|zFw zv({h@U#-GJ5`91)tciQHMLrXI2!|Zu)8*?j%zuI-NNmB%FOj89GMIuRx}4FDBVKcw zBAH(^it8j(15J`onmc1OQ#UG$bh<=yF-F-o&ZsP7q`0>V+fy`(38Q*zZwJS=MmP@6 z%#wWET8xTUyuao&MVk5;?u98}V^k_eZHiRGBsFe@qhw(i4#Wo5@F(QqJy0>qt7IYq zW{u1cjis%^GMyhKi5v(S#ZhuE+?Y!n<*{ZkVb@_7eGpLnS2Z;he1eY<@y6m9S)Va# z6JT{^Z@A+mhyd1u4Wi!2ZPDU=nwgF24<60{ zu%nwhB(+V}(_dsq2bp1Bsmq@DdnM@DMkgWI2=jMh&CHB5F{W>DqR^%}Py#>jpy5@x zoYW?GC-Xh;pV{VfdAeA`4|qQxMq|?ua${zF&+;VnW7HR{LS)~eNF%zwNQyaPEXey5DG&W=9)>u`1g75nR zx~@I3yyRz5B6xi50tt~_uqQYIGc%iXY}u%ciEWzREt1qIstVJ|(rROFh{T4F`f$Zz zLlm`N4zM|osqT)pt6^tLMfLKr`x(nh8M!@(BxL%mlxcj{%;${C1SuoMlO&y_GuynV z@Wsq}#VU-G5(K=#9C0vL9%(oQjF)!N`?^;=*>y10JW;{mc@3Kv56C^&$ zo2Vh;uaI;}r#L*k@8sM{#7XnLgY7>fC>*Td0@oB5h(OAdm`sWTWWFpM%y;qe2~TGW zyvQFAwKfs(I2kqN8Rl50)?xo`Ah*LXT#8h@UGczgW|%&ml>07#r1_q)@enH#u#jFMTk@ z%N2RJY}Do-VM}LLS+MP_!hz@1+KbxbSstvp!oll`z-b9yUHgOL3rTPIrMDG57|>Kt zb5&Gu*IP=zriY{p!R~-x`pvcOpma&|h%WDMrMHyp0X9K8Cx;Y|*x~LtA-PXW9WRQ< zJ3Jlk7u=`aZr6D^7?LjOvKs7_Lz<46=Vi6~n%u2OmlV0rBbxaz4n%&??SJ!#AN9P` zbaWIc%6+2u>GN~fFS*w$AS zU3x|JY5suP?GaDE8wj}&SY7UwUe)xzphr~u?Pl=I@lKKdJmc-wVlG}b6Ourd05B(De5|WXE?fFIv4Gu`{mL7 j^5}kv|57?9-G8}IAKfpH?w3dR%jT8q=zjVCdcXWPOdu@z literal 0 HcmV?d00001 diff --git a/languages/wp-china-yes-zh_CN.po b/languages/wp-china-yes-zh_CN.po new file mode 100644 index 0000000..08cf984 --- /dev/null +++ b/languages/wp-china-yes-zh_CN.po @@ -0,0 +1,160 @@ +msgid "" +msgstr "" +"Project-Id-Version: WP-China-Yes\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-08-23 03:41+0000\n" +"PO-Revision-Date: 2024-08-23 12:20+0800\n" +"Last-Translator: \n" +"Language-Team: 简体中文\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.4.4\n" +"X-Loco-Version: 2.6.10; wp-6.6\n" +"X-Domain: wp-china-yes\n" + +#: Service/Setting.php:54 +msgid "" +"萌芽加速(adminCDN)" +"将 WordPress 依赖的静态文件切换为公共资源,加快网站访问速度。您可按需启用需" +"要加速的项目,更多细节控制和功能,请关注 adminCDN 项目。" +msgstr "" +"萌芽加速(adminCDN)" +"将 WordPress 依赖的静态文件切换为公共资源,加快网站访问速度。您可按需启用需" +"要加速的项目,更多细节控制和功能,请关注 adminCDN 项目。" + +#: Service/Setting.php:72 +msgid "" +"初认头像(Cravatar)Gravatar 在中国的完美替代方案,您可以在 Cravatar.com 上传头像,更多选项请" +"安装 WPAavatar 插件。(任何开发者均可在自己的产品中集成该服务,不局限于 " +"WordPress)" +msgstr "" +"初认头像(Cravatar)Gravatar 在中国的完美替代方案,您可以在 Cravatar.com 上传头像,更多选项请" +"安装 WPAavatar 插件。(任何开发者均可在自己的产品中集成该服务,不局限于 " +"WordPress)" + +#: Service/Setting.php:86 +msgid "" +"文风字体(Windfonts)为您的网页渲染中文字体并对主题、插件内的字体进行加速;优化模式可优化浏览器" +"字体调用。" +msgstr "" +"文风字体(Windfonts)为您的网页渲染中文字体并对主题、插件内的字体进行加速;优化模式可优化浏览器" +"字体调用。" + +#: Service/Setting.php:109 +msgid "" +"文派叶子🍃(WP-" +"China-Yes)支持自动监控各加速节点可用性,当节点不可用时自动切换至可用节" +"点或关闭加速,以保证您的网站正常访问。" +msgstr "" +"文派叶子🍃(WP-" +"China-Yes)支持自动监控各加速节点可用性,当节点不可用时自动切换至可用节" +"点或关闭加速,以保证您的网站正常访问。" + +#: Service/Setting.php:98 +msgid "" +"文派叶子🍃(WP-" +"China-Yes)独家特色功能,让您拥有清爽整洁的 WordPress 后台,清除各类常用" +"插件侵入式后台广告、通知及无用信息;启用后若存在异常拦截,请切换为手动模式," +"查看可优化插件列表。" +msgstr "" +"文派叶子🍃(WP-" +"China-Yes)独家特色功能,让您拥有清爽整洁的 WordPress 后台,清除各类常用" +"插件侵入式后台广告、通知及无用信息;启用后若存在异常拦截,请切换为手动模式," +"查看可优化插件列表。" + +#: Service/Setting.php:41 +msgid "" +"官方加速源(WPMirror)直接从 .org 反代至大陆分发;文派开源(WenPai.org)中国境内自建托管仓库,同时集成文" +"派翻译平台。" +msgstr "" +"官方加速源(WPMirror)直接从 .org 反代至大陆分发;文派开源(WenPai.org)中国境内自建托管仓库,同时集成文" +"派翻译平台。" + +#. Author URI of the plugin +msgid "https://wp-china-yes.com" +msgstr "https://wp-china-yes.com" + +#. Name of the plugin +#: Service/Setting.php:143 Service/Setting.php:144 +msgid "WP-China-Yes" +msgstr "WP-China-Yes" + +#: Plugin.php:52 +#, php-format +msgid "" +"WP-China-Yes 插件需要 PHP 5.6.0 或更高版本,当前版本为 %s,插件已自动禁用。" +msgstr "" +"WP-China-Yes 插件需要 PHP 5.6.0 或更高版本,当前版本为 %s,插件已自动禁用。" + +#: Service/Setting.php:71 +msgid "初认头像" +msgstr "初认头像" + +#: Service/Setting.php:97 +msgid "广告拦截" +msgstr "广告拦截" + +#: Service/Setting.php:40 +msgid "应用市场" +msgstr "应用市场" + +#. Description of the plugin +msgid "" +"文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽," +"生生不息。" +msgstr "" +"文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽," +"生生不息。" + +#. Author of the plugin +msgid "文派开源" +msgstr "文派开源" + +#: Service/Setting.php:85 +msgid "文风字体" +msgstr "文风字体" + +#: Plugin.php:71 +msgid "检测到不兼容的插件 Kill 429,已自动禁用!" +msgstr "检测到不兼容的插件 Kill 429,已自动禁用!" + +#: Plugin.php:65 +msgid "检测到不兼容的插件 WP-China-Plus,已自动禁用!" +msgstr "检测到不兼容的插件 WP-China-Plus,已自动禁用!" + +#: Plugin.php:78 +msgid "" +"检测到已在 WordPress 配置文件中设置代理服务器,这可能会导致插件无法正常工" +"作!" +msgstr "" +"检测到已在 WordPress 配置文件中设置代理服务器,这可能会导致插件无法正常工" +"作!" + +#: Plugin.php:59 +msgid "检测到旧版插件 WP-China-No,已自动禁用!" +msgstr "检测到旧版插件 WP-China-No,已自动禁用!" + +#: Service/Setting.php:108 +msgid "自动监控" +msgstr "自动监控" + +#: Service/Setting.php:53 +msgid "萌芽加速" +msgstr "萌芽加速" + +#: Service/Setting.php:32 Service/Setting.php:155 +msgid "设置" +msgstr "设置" diff --git a/languages/wp-china-yes-zh_TW.mo b/languages/wp-china-yes-zh_TW.mo new file mode 100644 index 0000000000000000000000000000000000000000..69ac10ceb5e68effc045a644c6af17621786528e GIT binary patch literal 5492 zcmchb+jARN9mf|4(3)!lr93dO;~AbhvK=?cBu!oc-O;NBR576Hx)zOZa>bpTFSq1AIcC!yjDFeI6fte;%?G^5ho;;m;U9b3zcF zK%V%bAp8;IpFpyCzyGozd==v#J|_r0kY32|LjD7ijh}d)%NKO{eaPDwe_6j@&}A0# zJjP3qmmvQMX@NY`A_!+8mmt}Gf77J``6b+c0yzLZ{sqbOF=G0@ zyl%DicH2yLyD06?DmyXx?ua@Yr%o4*d8Ohm@pIIkaMSTs;@c%3VdptzxQwSt_95|X(XF&tQCs9I@eZNE5j{5JZ6nNoiX(_`R>>@p zrEM}Ch9fTPvvo(jq2G!mnU?Y!BvFQ%BomVN$7$j~DlXF49!>d}%9?RfaTznk$}a4k zqLdFvrTNMmblX&?A38HjGJa*zBVO$f{$Wz|RGX?;m<7zxxg;&+A& zJ^f~j(eQzZT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mUh@#d^v_hN{JTI!$VnDMxqtV2v{4ZoZZmO_ehFG#tE0 zXEo+ON|_t}s#|N6sg=}cZm>L-Zbq4tj4~%(hbXf=g)r6YSQTm`~Lt+IkMXvW>VyKq!upt+F+Xd=oi5BVsspu?ca-6p4l_(j2S^EleX|14B#6CFi^ z&H5d5PzpwgEBP$QS!wD5PcWV>0`>ZJ萌芽加速(adminCDN)" +"将 WordPress 依赖的静态文件切换为公共资源,加快网站访问速度。您可按需启用需" +"要加速的项目,更多细节控制和功能,请关注 adminCDN 项目。" +msgstr "" +"萌芽加速(adminCDN)" +"將 WordPress 依賴的靜態檔案切換為公共資源,加快網站訪問速度。您可按需啟用需" +"要加速的專案,更多細節控制和功能,請關注 adminCDN 專案。" + +#: Service/Setting.php:72 +msgid "" +"初认头像(Cravatar)Gravatar 在中国的完美替代方案,您可以在 Cravatar.com 上传头像,更多选项请" +"安装 WPAavatar 插件。(任何开发者均可在自己的产品中集成该服务,不局限于 " +"WordPress)" +msgstr "" +"初認頭像(Cravatar)Gravatar 在中國的完美替代方案,您可以在 Cravatar.com 上傳頭像,更多選項請" +"安裝 WPAavatar 外掛。(任何開發者均可在自己的產品中整合該服務,不侷限於 " +"WordPress)" + +#: Service/Setting.php:86 +msgid "" +"文风字体(Windfonts)为您的网页渲染中文字体并对主题、插件内的字体进行加速;优化模式可优化浏览器" +"字体调用。" +msgstr "" +"文風字型(Windfonts)為您的網頁渲染中文字型並對主題、外掛內的字型進行加速;最佳化模式可最佳化瀏" +"覽器字型呼叫。" + +#: Service/Setting.php:109 +msgid "" +"文派叶子🍃(WP-" +"China-Yes)支持自动监控各加速节点可用性,当节点不可用时自动切换至可用节" +"点或关闭加速,以保证您的网站正常访问。" +msgstr "" +"文派葉子🍃(WP-" +"China-Yes)支援自動監控各加速節點可用性,當節點不可用時自動切換至可用節" +"點或關閉加速,以保證您的網站正常訪問。" + +#: Service/Setting.php:98 +msgid "" +"文派叶子🍃(WP-" +"China-Yes)独家特色功能,让您拥有清爽整洁的 WordPress 后台,清除各类常用" +"插件侵入式后台广告、通知及无用信息;启用后若存在异常拦截,请切换为手动模式," +"查看可优化插件列表。" +msgstr "" +"文派葉子🍃(WP-" +"China-Yes)獨家特色功能,讓您擁有清爽整潔的 WordPress 後臺,清除各類常用" +"外掛侵入式後臺廣告、通知及無用資訊;啟用後若存在異常攔截,請切換為手動模式," +"檢視可最佳化外掛列表" +"。" + +#: Service/Setting.php:41 +msgid "" +"官方加速源(WPMirror)直接从 .org 反代至大陆分发;文派开源(WenPai.org)中国境内自建托管仓库,同时集成文" +"派翻译平台。" +msgstr "" +"官方加速源(WPMirror)直接從 .org 反代至大陸分發;文派開源(WenPai.org)中國境內自建託管倉庫,同時整合文" +"派翻譯平臺。" + +#. Author URI of the plugin +msgid "https://wp-china-yes.com" +msgstr "https://wp-china-yes.com" + +#. Name of the plugin +#: Service/Setting.php:143 Service/Setting.php:144 +msgid "WP-China-Yes" +msgstr "文派葉子" + +#: Plugin.php:52 +#, php-format +msgid "" +"WP-China-Yes 插件需要 PHP 5.6.0 或更高版本,当前版本为 %s,插件已自动禁用。" +msgstr "" +"WP-China-Yes 外掛程式需要PHP 5.6.0 或更高版本,目前版本為%s,外掛程式已自動" +"停用。" + +#: Service/Setting.php:71 +msgid "初认头像" +msgstr "初認頭像" + +#: Service/Setting.php:97 +msgid "广告拦截" +msgstr "廣告攔截" + +#: Service/Setting.php:40 +msgid "应用市场" +msgstr "應用市場" + +#. Description of the plugin +msgid "" +"文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽," +"生生不息。" +msgstr "" +"文派葉子 🍃(WP-China-Yes)是中國 WordPress 生態基礎設施軟體,猶如落葉新芽," +"生生不息。" + +#. Author of the plugin +msgid "文派开源" +msgstr "文派開源" + +#: Service/Setting.php:85 +msgid "文风字体" +msgstr "文風字體" + +#: Plugin.php:71 +msgid "检测到不兼容的插件 Kill 429,已自动禁用!" +msgstr "偵測到不相容的插件Kill 429,已自動停用!" + +#: Plugin.php:65 +msgid "检测到不兼容的插件 WP-China-Plus,已自动禁用!" +msgstr "偵測到不相容的外掛程式WP-China-Plus,已自動停用!" + +#: Plugin.php:78 +msgid "" +"检测到已在 WordPress 配置文件中设置代理服务器,这可能会导致插件无法正常工" +"作!" +msgstr "" +"偵測到已在WordPress 設定檔中設定代理伺服器,這可能會導致外掛無法正常運作!" + +#: Plugin.php:59 +msgid "检测到旧版插件 WP-China-No,已自动禁用!" +msgstr "偵測到舊版外掛程式WP-China-No,已自動停用!" + +#: Service/Setting.php:108 +msgid "自动监控" +msgstr "自動監控" + +#: Service/Setting.php:53 +msgid "萌芽加速" +msgstr "萌芽加速" + +#: Service/Setting.php:32 Service/Setting.php:155 +msgid "设置" +msgstr "設定" diff --git a/wp-china-yes.php b/wp-china-yes.php index 51a627d..be3c2fe 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -4,7 +4,7 @@ * Description: 文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽,生生不息。 * Author: 文派开源 * Author URI: https://wp-china-yes.com - * Version: 3.6.3 + * Version: 3.6.4 * License: GPLv3 or later * Text Domain: wp-china-yes * Domain Path: /languages @@ -19,7 +19,7 @@ namespace WenPai\ChinaYes; defined( 'ABSPATH' ) || exit; -define( 'CHINA_YES_VERSION', '3.6.3' ); +define( 'CHINA_YES_VERSION', '3.6.4' ); define( 'CHINA_YES_PLUGIN_FILE', __FILE__ ); define( 'CHINA_YES_PLUGIN_URL', plugin_dir_url( CHINA_YES_PLUGIN_FILE ) ); define( 'CHINA_YES_PLUGIN_PATH', plugin_dir_path( CHINA_YES_PLUGIN_FILE ) );