diff --git a/module/translate/control.php b/module/translate/control.php index cd40a38f61..a88db64ec0 100644 --- a/module/translate/control.php +++ b/module/translate/control.php @@ -160,6 +160,13 @@ class translate extends control if($_POST) { + $statusFile = $this->loadModel('upgrade')->checkSafeFile(); + if($statusFile) + { + $this->app->loadLang('editor'); + $this->send(array('result' => 'fail', 'message' => str_replace('\n', '
', sprintf($this->lang->editor->noticeOkFile, $statusFile)))); + } + $this->translate->addTranslation($language, $module, $referLang); if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload')); diff --git a/module/translate/css/common.css b/module/translate/css/common.css new file mode 100644 index 0000000000..7799fc1387 --- /dev/null +++ b/module/translate/css/common.css @@ -0,0 +1 @@ +code{padding-left: 0px !important;}