diff --git a/module/editor/control.php b/module/editor/control.php index 15acd0ccf5..d9bae4609e 100644 --- a/module/editor/control.php +++ b/module/editor/control.php @@ -147,7 +147,7 @@ class editor extends control $statusFile = $this->loadModel('upgrade')->checkSafeFile(); if($statusFile) { - die(js::alert(sprintf($this->lang->editor->noticeOkFile, $statusFile))); + die(js::alert(sprintf($this->lang->editor->noticeOkFile, str_replace('\\', '/', $statusFile)))); } if($filePath and $_POST) { diff --git a/module/editor/lang/de.php b/module/editor/lang/de.php index c15c1740f2..624035bbe1 100644 --- a/module/editor/lang/de.php +++ b/module/editor/lang/de.php @@ -36,7 +36,7 @@ $lang->editor->editFileError = 'Sie können nur ZenTao Dateien verändern!'; $lang->editor->notWritable = "Nicht beschreibbar. Berechtigung erforderlich. Bitte versuchen Sie chmod 777 -R "; $lang->editor->notDelete = 'Kann nicht gelöscht werden. Bitte prüfen Sie Ihre Berechtigungen!'; $lang->editor->emptyFileName = 'Bitte geben Sie einen Dateinamen an!'; -$lang->editor->onlyLocalVisit = "This feature only works when the IP is 127.0.0.1. Document"; +$lang->editor->onlyLocalVisit = "This feature only works when the IP is 127.0.0.1. Help"; $lang->editor->translate['config.php'] = 'config'; $lang->editor->translate['control.php'] = 'control'; diff --git a/module/editor/lang/en.php b/module/editor/lang/en.php index a41017054c..64e9f2b9f4 100644 --- a/module/editor/lang/en.php +++ b/module/editor/lang/en.php @@ -36,7 +36,7 @@ $lang->editor->editFileError = 'You can only modify ZenTao files!'; $lang->editor->notWritable = "Not wirtable. Permission is required. Please try chmod 777 -R "; $lang->editor->notDelete = 'Cannot be deleted. Please check your permissions!'; $lang->editor->emptyFileName = 'Please enter a File Name!'; -$lang->editor->onlyLocalVisit = "This feature only works when the IP is 127.0.0.1. Document"; +$lang->editor->onlyLocalVisit = "This feature only works when the IP is 127.0.0.1. Help"; $lang->editor->translate['config.php'] = 'config'; $lang->editor->translate['control.php'] = 'control'; diff --git a/module/translate/control.php b/module/translate/control.php index ba781fa399..4d49efd32d 100644 --- a/module/translate/control.php +++ b/module/translate/control.php @@ -175,7 +175,7 @@ class translate extends control if($statusFile) { $this->app->loadLang('editor'); - $this->send(array('result' => 'fail', 'callback' => 'bootAlert("' . str_replace('\n', '
', sprintf($this->lang->editor->noticeOkFile, $statusFile) . '")'))); + $this->send(array('result' => 'fail', 'callback' => 'bootAlert("' . str_replace('\n', '
', sprintf($this->lang->editor->noticeOkFile, str_replace('\\', '/', $statusFile)) . '")'))); } $this->translate->addTranslation($language, $module, $referLang); diff --git a/module/translate/lang/de.php b/module/translate/lang/de.php new file mode 100644 index 0000000000..76e90168be --- /dev/null +++ b/module/translate/lang/de.php @@ -0,0 +1,66 @@ + + * @package translate + * @version $Id$ + * @link http://www.zentao.net + */ +$lang->translate->common = 'Translate'; +$lang->translate->index = 'Home'; +$lang->translate->addLang = 'Add Language'; +$lang->translate->module = 'Translate Module'; +$lang->translate->review = 'Review'; +$lang->translate->reviewAction = 'Review Translation'; +$lang->translate->result = 'Save Review Result'; +$lang->translate->batchPass = 'Batch Pass'; +$lang->translate->export = 'Export Lang File'; +$lang->translate->setting = 'Settings'; +$lang->translate->chooseModule = 'Choose Module'; + +$lang->translate->name = 'Language'; +$lang->translate->code = 'Code'; +$lang->translate->key = 'Key'; +$lang->translate->reference = 'Reference Language'; +$lang->translate->status = 'Status'; +$lang->translate->refreshPage = 'Refresh'; +$lang->translate->reason = 'Reason'; + +$lang->translate->reviewTurnon = 'Review'; +$lang->translate->reviewTurnonList['1'] = 'On'; +$lang->translate->reviewTurnonList['0'] = 'Off'; + +$lang->translate->resultList['pass'] = 'Pass'; +$lang->translate->resultList['reject'] = 'Reject'; + +$lang->translate->group = 'View'; +$lang->translate->allTotal = 'Total'; +$lang->translate->translatedTotal = 'Translated'; +$lang->translate->changedTotal = 'Modified'; +$lang->translate->reviewedTotal = 'Reviewed'; +$lang->translate->translatedProgress = 'Translation %'; +$lang->translate->reviewedProgress = 'Review %'; + +$lang->translate->builtIn = 'Built-in Language'; +$lang->translate->finished = 'Finished Translation'; +$lang->translate->progress = '%s Done'; +$lang->translate->count = '(%s languages)'; + +$lang->translate->finishedLang = 'Translated'; +$lang->translate->translatingLang = 'Translating'; +$lang->translate->allItems = 'All Items:%s'; + +$lang->translate->statusList['waiting'] = 'Waiting'; +$lang->translate->statusList['translated'] = 'Done'; +$lang->translate->statusList['reviewed'] = 'Reviewed'; +$lang->translate->statusList['rejected'] = 'Rejected'; +$lang->translate->statusList['changed'] = 'Modified'; + +$lang->translate->notice = new stdclass(); +$lang->translate->notice->failDirPriv = "You don't have the privilege to write this directory. Please edit your privilege.
%s"; +$lang->translate->notice->failCopyFile = "Failed to copy %s to %s. Please edit your privilege."; +$lang->translate->notice->failUnique = "Item with Code %s exists."; +$lang->translate->notice->failMaxInput = "Edit the value of max_input_vars to % in php.ini to make sure your form is submitted."; +$lang->translate->notice->failRuleCode = "『Code』 shoud be letters, numbers and underlines.";