mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 03:29:37 +08:00
refactor:当Loco Translate作为WP China Yes的一部分的时候因为应用环境单一,就不需要太多防呆的消息警告了,所以去掉一切不必要的消息
This commit is contained in:
parent
aad6ea29a6
commit
62b0cbe197
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue