refactor:当Loco Translate作为WP China Yes的一部分的时候因为应用环境单一,就不需要太多防呆的消息警告了,所以去掉一切不必要的消息

This commit is contained in:
sunxiyuan 2020-07-14 11:48:12 +08:00
parent aad6ea29a6
commit 62b0cbe197
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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);
}
}