From 62b0cbe1976d1ce00bfe9acdfc693e8d3a98b35c Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Tue, 14 Jul 2020 11:48:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E5=BD=93Loco=20Translate=E4=BD=9C?= =?UTF-8?q?=E4=B8=BAWP=20China=20Yes=E7=9A=84=E4=B8=80=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=9B=A0=E4=B8=BA=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8D=95=E4=B8=80=EF=BC=8C=E5=B0=B1=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=A4=AA=E5=A4=9A=E9=98=B2=E5=91=86=E7=9A=84?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E8=AD=A6=E5=91=8A=E4=BA=86=EF=BC=8C=E6=89=80?= =?UTF-8?q?=E4=BB=A5=E5=8E=BB=E6=8E=89=E4=B8=80=E5=88=87=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/loco-translate/src/admin/file/EditController.php | 3 ++- vendor/loco-translate/src/ajax/FsConnectController.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vendor/loco-translate/src/admin/file/EditController.php b/vendor/loco-translate/src/admin/file/EditController.php index 55fb85c..202ec3d 100644 --- a/vendor/loco-translate/src/admin/file/EditController.php +++ b/vendor/loco-translate/src/admin/file/EditController.php @@ -126,9 +126,10 @@ class Loco_admin_file_EditController extends Loco_admin_file_BaseController { if( $potfile->exists() ){ try { $potdata = Loco_gettext_Data::load( $potfile ); + /* if( ! $potdata->equalSource($data) ){ Loco_error_AdminNotices::debug( sprintf( __("Translations don't match template. Run sync to update from %s",'loco-translate'), $potfile->basename() ) ); - } + }*/ } catch( Exception $e ){ // translators: Where %s is the name of the invalid POT file diff --git a/vendor/loco-translate/src/ajax/FsConnectController.php b/vendor/loco-translate/src/ajax/FsConnectController.php index d85abe0..e3e5bcd 100644 --- a/vendor/loco-translate/src/ajax/FsConnectController.php +++ b/vendor/loco-translate/src/ajax/FsConnectController.php @@ -109,10 +109,10 @@ class Loco_ajax_FsConnectController extends Loco_mvc_AjaxController { } else if( 'move' === $type ){ $message = __('This directory is managed by WordPress. Removed files may be restored during updates','loco-translate'); - } + }/* else { $message = __('Changes to this file may be overwritten or deleted when you update WordPress','loco-translate'); - } + }*/ $this->set('warning',$message); } }