+ + + +
-
@@ -104,4 +104,8 @@ $lang->upgrade->mergeByProject = "獨立的迭代:可以選擇若干迭代
$lang->upgrade->mergeByMoreLink = "關聯多個產品的迭代:選擇這個迭代歸屬於哪一個產品。";
$lang->upgrade->mergeRepoTips = "將選中的版本庫歸併到所選產品下。";
+$lang->upgrade->needBuild4Add = '本次升級新增全文檢索功能,需要創建索引。';
+$lang->upgrade->needBuild4Adjust = '本次升級全文檢索功能有調整,需要創建索引。';
+$lang->upgrade->buildIndex = '創建索引';
+
include dirname(__FILE__) . '/version.php';
diff --git a/module/upgrade/model.php b/module/upgrade/model.php
index 1c3fa749b8..80c0e9175d 100644
--- a/module/upgrade/model.php
+++ b/module/upgrade/model.php
@@ -2761,6 +2761,7 @@ class upgradeModel extends model
$fromVersion = $this->config->installedVersion;
$needProcess = array();
if(strpos($fromVersion, 'biz') === false and (strpos($fromVersion, 'pro') === false ? version_compare($fromVersion, '8.3', '<') : version_compare($fromVersion, 'pro5.4', '<'))) $needProcess['updateFile'] = true;
+ if(strpos($fromVersion, 'max') === false and version_compare($fromVersion, '15.0', '<')) $needProcess['search'] = true;
return $needProcess;
}
diff --git a/module/upgrade/view/afterexec.html.php b/module/upgrade/view/afterexec.html.php
index e416a1d6f3..04b1a53f30 100644
--- a/module/upgrade/view/afterexec.html.php
+++ b/module/upgrade/view/afterexec.html.php
@@ -87,4 +87,58 @@ function updateFile(link)
}
+createLink('search', 'buildIndex');
+ $needBuild = $lang->upgrade->needBuild4Add;
+}
+?>
+
+
+
From 4794f0cb0b6e63ce159f3fdedb064696b003a43a Mon Sep 17 00:00:00 2001
From: holan20180123 <56391770@qq.com>
Date: Wed, 7 Apr 2021 13:54:23 +0800
Subject: [PATCH 4/8] * Finish task #37114,37115.
---
module/doc/control.php | 4 +-
module/doc/lang/de.php | 39 +++++---
module/doc/lang/en.php | 145 ++++++++++++++--------------
module/doc/lang/fr.php | 39 +++++---
module/doc/lang/vi.php | 39 +++++---
module/doc/lang/zh-cn.php | 145 ++++++++++++++--------------
module/doc/lang/zh-tw.php | 4 +
module/doc/model.php | 6 +-
module/doc/view/objectlibs.html.php | 6 +-
module/doc/view/side.html.php | 2 +-
10 files changed, 235 insertions(+), 194 deletions(-)
diff --git a/module/doc/control.php b/module/doc/control.php
index f22d3705c9..8b4fdd7e6e 100644
--- a/module/doc/control.php
+++ b/module/doc/control.php
@@ -551,7 +551,9 @@ class doc extends control
{
if($confirm == 'no')
{
- die(js::confirm($this->lang->doc->confirmDelete, inlink('delete', "docID=$docID&confirm=yes")));
+ $type = $this->dao->select('type')->from(TABLE_DOC)->where('id')->eq($docID)->fetch('type');
+ $tips = $type == 'chapter' ? $this->lang->doc->confirmDeleteChapter : $this->lang->doc->confirmDelete;
+ die(js::confirm($tips, inlink('delete', "docID=$docID&confirm=yes")));
}
else
{
diff --git a/module/doc/lang/de.php b/module/doc/lang/de.php
index c040fe7d92..cb9b85d325 100644
--- a/module/doc/lang/de.php
+++ b/module/doc/lang/de.php
@@ -48,6 +48,8 @@ $lang->doc->item = ' Einträge';
$lang->doc->num = 'Doks';
$lang->doc->searchResult = 'Suchergebnis';
$lang->doc->mailto = 'Mailto';
+$lang->doc->noModule = 'No document in this lib, please create it';
+$lang->doc->noChapter = 'No chapters or articles in this book. Please add chapters and articles.';
$lang->doc->moduleDoc = 'Nach Modulen';
$lang->doc->searchDoc = 'Suche';
@@ -74,6 +76,7 @@ $lang->doc->diff = 'Diff';
$lang->doc->diffAction = 'Diff Document';
$lang->doc->sort = 'Sortierung';
$lang->doc->manageType = 'Kategorie verwalten';
+$lang->doc->createBook = 'Create Book';
$lang->doc->manageBook = 'Manage Book';
$lang->doc->editBook = 'Edit Book';
$lang->doc->editType = 'Bearbeiten';
@@ -159,22 +162,26 @@ $lang->doc->mail->edit = new stdclass();
$lang->doc->mail->create->title = "%s created document #%s:%s";
$lang->doc->mail->edit->title = "%s edited document #%s:%s";
-$lang->doc->confirmDelete = "Möchten Sie dieses Dokument löschen?";
-$lang->doc->confirmDeleteLib = "Möchten Sie diese Bibliothek löschen?";
-$lang->doc->errorEditSystemDoc = "System Dokumentenbibliothek darf nicht geändert werden.";
-$lang->doc->errorEmptyProduct = "Kein {$lang->productCommon}. Kann nicht erstellt werden.";
-$lang->doc->errorEmptyProject = "Kein {$lang->executionCommon}. Kann nicht erstellt werden.";
-$lang->doc->errorMainSysLib = "Diese Bibliothek kann nicht gelöscht werden.";
-$lang->doc->accessDenied = "Zugriff verweigert!";
-$lang->doc->versionNotFount = 'Existiert nicht in diesem Build.';
-$lang->doc->noDoc = 'Keine Dokumente. ';
-$lang->doc->cannotCreateOffice = 'Sorry, %s can only be created in ZenTao Enterprise. Contact us at renee@easysoft.ltd to try ZenTao Enterprise.';
-$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; -$lang->doc->noSearchedDoc = 'Nichts gesucht.'; -$lang->doc->noEditedDoc = 'Sie haben kein Dokument bearbeitet.'; -$lang->doc->noOpenedDoc = 'Sie haben kein Dokument erstellt.'; -$lang->doc->noCollectedDoc = 'Sie haben kein Dokument gesammelt.'; -$lang->doc->errorEmptyLib = 'No data in document library.'; +$lang->doc->confirmDelete = "Möchten Sie dieses Dokument löschen?"; +$lang->doc->confirmDeleteLib = "Möchten Sie diese Bibliothek löschen?"; +$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?"; +$lang->doc->errorEditSystemDoc = "System Dokumentenbibliothek darf nicht geändert werden."; +$lang->doc->errorEmptyProduct = "Kein {$lang->productCommon}. Kann nicht erstellt werden."; +$lang->doc->errorEmptyProject = "Kein {$lang->executionCommon}. Kann nicht erstellt werden."; +$lang->doc->errorMainSysLib = "Diese Bibliothek kann nicht gelöscht werden."; +$lang->doc->accessDenied = "Zugriff verweigert!"; +$lang->doc->versionNotFount = 'Existiert nicht in diesem Build.'; +$lang->doc->noDoc = 'Keine Dokumente. '; +$lang->doc->noArticle = 'No articles.'; +$lang->doc->noLib = 'No libraries. '; +$lang->doc->noBook = 'The WIKI library has not created a manual, please create a new one :)'; +$lang->doc->cannotCreateOffice = 'Sorry, %s can only be created in ZenTao Enterprise. Contact us at renee@easysoft.ltd to try ZenTao Enterprise.'; +$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; +$lang->doc->noSearchedDoc = 'Nichts gesucht.'; +$lang->doc->noEditedDoc = 'Sie haben kein Dokument bearbeitet.'; +$lang->doc->noOpenedDoc = 'Sie haben kein Dokument erstellt.'; +$lang->doc->noCollectedDoc = 'Sie haben kein Dokument gesammelt.'; +$lang->doc->errorEmptyLib = 'No data in document library.'; $lang->doc->noticeAcl['lib']['product']['default'] = 'Users who can access the selected product can access it.'; $lang->doc->noticeAcl['lib']['product']['custom'] = 'Users who can access the selected product or users in the whiltelist can access it.'; diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php index 2feaaf0ed2..a1cf4294c5 100644 --- a/module/doc/lang/en.php +++ b/module/doc/lang/en.php @@ -10,60 +10,61 @@ * @link http://www.zentao.net */ /* Fields. */ -$lang->doc->common = 'Document'; -$lang->doc->id = 'ID'; -$lang->doc->product = $lang->productCommon; -$lang->doc->project = 'Project'; -$lang->doc->execution = $lang->executionCommon; -$lang->doc->lib = 'Library'; -$lang->doc->module = 'Category'; -$lang->doc->title = 'Name'; -$lang->doc->digest = 'Summary'; -$lang->doc->comment = 'Comment'; -$lang->doc->type = 'Type'; -$lang->doc->content = 'Text'; -$lang->doc->keywords = 'Tags'; -$lang->doc->url = 'URL'; -$lang->doc->files = 'Files'; -$lang->doc->addedBy = 'Author'; -$lang->doc->addedDate = 'Added'; -$lang->doc->editedBy = 'UpdatedBy'; -$lang->doc->editedDate = 'UpdatedDate'; -$lang->doc->version = 'Version'; -$lang->doc->basicInfo = 'Basic Info'; -$lang->doc->deleted = 'Deleted'; -$lang->doc->fileObject = 'Dependent Item'; -$lang->doc->whiteList = 'White List'; -$lang->doc->contentType = 'Format'; -$lang->doc->separator = ""; -$lang->doc->fileTitle = 'File Name'; -$lang->doc->filePath = 'File Path'; -$lang->doc->extension = 'Extension'; -$lang->doc->size = 'Size'; -$lang->doc->download = 'Download'; -$lang->doc->acl = 'Right'; -$lang->doc->fileName = 'Files'; -$lang->doc->groups = 'Groups'; -$lang->doc->users = 'Users'; -$lang->doc->item = ' Items'; -$lang->doc->num = 'Documents'; -$lang->doc->searchResult = 'Search Result'; -$lang->doc->mailto = 'Mailto'; -$lang->doc->noModule = 'No document in this lib, please create it'; +$lang->doc->common = 'Document'; +$lang->doc->id = 'ID'; +$lang->doc->product = $lang->productCommon; +$lang->doc->project = 'Project'; +$lang->doc->execution = $lang->executionCommon; +$lang->doc->lib = 'Library'; +$lang->doc->module = 'Category'; +$lang->doc->title = 'Name'; +$lang->doc->digest = 'Summary'; +$lang->doc->comment = 'Comment'; +$lang->doc->type = 'Type'; +$lang->doc->content = 'Text'; +$lang->doc->keywords = 'Tags'; +$lang->doc->url = 'URL'; +$lang->doc->files = 'Files'; +$lang->doc->addedBy = 'Author'; +$lang->doc->addedDate = 'Added'; +$lang->doc->editedBy = 'UpdatedBy'; +$lang->doc->editedDate = 'UpdatedDate'; +$lang->doc->version = 'Version'; +$lang->doc->basicInfo = 'Basic Info'; +$lang->doc->deleted = 'Deleted'; +$lang->doc->fileObject = 'Dependent Item'; +$lang->doc->whiteList = 'White List'; +$lang->doc->contentType = 'Format'; +$lang->doc->separator = ""; +$lang->doc->fileTitle = 'File Name'; +$lang->doc->filePath = 'File Path'; +$lang->doc->extension = 'Extension'; +$lang->doc->size = 'Size'; +$lang->doc->download = 'Download'; +$lang->doc->acl = 'Right'; +$lang->doc->fileName = 'Files'; +$lang->doc->groups = 'Groups'; +$lang->doc->users = 'Users'; +$lang->doc->item = ' Items'; +$lang->doc->num = 'Documents'; +$lang->doc->searchResult = 'Search Result'; +$lang->doc->mailto = 'Mailto'; +$lang->doc->noModule = 'No document in this lib, please create it'; +$lang->doc->noChapter = 'No chapters or articles in this book. Please add chapters and articles.'; -$lang->doc->moduleDoc = 'By Module'; -$lang->doc->searchDoc = 'Search'; -$lang->doc->fast = 'Quick Entry'; -$lang->doc->allDoc = 'All Documents'; -$lang->doc->openedByMe = 'My'; -$lang->doc->editedByMe = 'Edited By Me'; -$lang->doc->orderByOpen = 'Recent Added'; -$lang->doc->orderByEdit = 'Recent Updated'; -$lang->doc->orderByVisit = 'Last Visited'; -$lang->doc->todayEdited = 'Updated Today'; -$lang->doc->pastEdited = 'Total Updated'; -$lang->doc->myDoc = 'My Documents'; -$lang->doc->myCollection = 'My Favorites'; +$lang->doc->moduleDoc = 'By Module'; +$lang->doc->searchDoc = 'Search'; +$lang->doc->fast = 'Quick Entry'; +$lang->doc->allDoc = 'All Documents'; +$lang->doc->openedByMe = 'My'; +$lang->doc->editedByMe = 'Edited By Me'; +$lang->doc->orderByOpen = 'Recent Added'; +$lang->doc->orderByEdit = 'Recent Updated'; +$lang->doc->orderByVisit = 'Last Visited'; +$lang->doc->todayEdited = 'Updated Today'; +$lang->doc->pastEdited = 'Total Updated'; +$lang->doc->myDoc = 'My Documents'; +$lang->doc->myCollection = 'My Favorites'; /* Methods list */ $lang->doc->index = 'Document Home'; @@ -76,6 +77,7 @@ $lang->doc->diff = 'Diff'; $lang->doc->diffAction = 'Diff Document'; $lang->doc->sort = 'Rank Document'; $lang->doc->manageType = 'Manage Category'; +$lang->doc->createBook = 'Create Book'; $lang->doc->manageBook = 'Manage Book'; $lang->doc->editBook = 'Edit Book'; $lang->doc->editType = 'Edit'; @@ -164,23 +166,26 @@ $lang->doc->mail->edit = new stdclass(); $lang->doc->mail->create->title = "%s created document #%s:%s"; $lang->doc->mail->edit->title = "%s edited document #%s:%s"; -$lang->doc->confirmDelete = "Do you want to delete this document?"; -$lang->doc->confirmDeleteLib = "Do you want to delete this document library?"; -$lang->doc->errorEditSystemDoc = "You don't have to change system document library."; -$lang->doc->errorEmptyProduct = "No {$lang->productCommon}. It cannot be created."; -$lang->doc->errorEmptyProject = "No {$lang->executionCommon}. It cannot be created."; -$lang->doc->errorMainSysLib = "This library cannot be deleted."; -$lang->doc->accessDenied = "Access is denied!"; -$lang->doc->versionNotFount = 'It does not exist in this build.'; -$lang->doc->noDoc = 'No documents. '; -$lang->doc->noLib = 'No libraries. '; -$lang->doc->cannotCreateOffice = 'Sorry, %s can only be created in ZenTao Enterprise. Contact us at renee@easysoft.ltd to try ZenTao Enterprise.'; -$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; -$lang->doc->noSearchedDoc = 'No documents found.'; -$lang->doc->noEditedDoc = 'You have not edited any documents.'; -$lang->doc->noOpenedDoc = 'You have not created any documents.'; -$lang->doc->noCollectedDoc = 'You have not favorited any documents.'; -$lang->doc->errorEmptyLib = 'No data in document library.'; +$lang->doc->confirmDelete = "Do you want to delete this document?"; +$lang->doc->confirmDeleteLib = "Do you want to delete this document library?"; +$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?"; +$lang->doc->errorEditSystemDoc = "You don't have to change system document library."; +$lang->doc->errorEmptyProduct = "No {$lang->productCommon}. It cannot be created."; +$lang->doc->errorEmptyProject = "No {$lang->executionCommon}. It cannot be created."; +$lang->doc->errorMainSysLib = "This library cannot be deleted."; +$lang->doc->accessDenied = "Access is denied!"; +$lang->doc->versionNotFount = 'It does not exist in this build.'; +$lang->doc->noDoc = 'No documents. '; +$lang->doc->noArticle = 'No articles.'; +$lang->doc->noLib = 'No libraries. '; +$lang->doc->noBook = 'The WIKI library has not created a manual, please create a new one :)'; +$lang->doc->cannotCreateOffice = 'Sorry, %s can only be created in ZenTao Enterprise. Contact us at renee@easysoft.ltd to try ZenTao Enterprise.'; +$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; +$lang->doc->noSearchedDoc = 'No documents found.'; +$lang->doc->noEditedDoc = 'You have not edited any documents.'; +$lang->doc->noOpenedDoc = 'You have not created any documents.'; +$lang->doc->noCollectedDoc = 'You have not favorited any documents.'; +$lang->doc->errorEmptyLib = 'No data in document library.'; $lang->doc->noticeAcl['lib']['product']['default'] = 'Users who can access the selected product can access it.'; $lang->doc->noticeAcl['lib']['product']['custom'] = 'Users who can access the selected product or users in the whiltelist can access it.'; diff --git a/module/doc/lang/fr.php b/module/doc/lang/fr.php index a946d5cab8..97cc1f68c0 100644 --- a/module/doc/lang/fr.php +++ b/module/doc/lang/fr.php @@ -48,6 +48,8 @@ $lang->doc->item = ' Objets'; $lang->doc->num = 'Documents'; $lang->doc->searchResult = 'Résultat de Recherche'; $lang->doc->mailto = 'Mailto'; +$lang->doc->noModule = 'No document in this lib, please create it'; +$lang->doc->noChapter = 'No chapters or articles in this book. Please add chapters and articles.'; $lang->doc->moduleDoc = 'Par Module'; $lang->doc->searchDoc = 'Rechercher'; @@ -74,6 +76,7 @@ $lang->doc->diff = 'Diff'; $lang->doc->diffAction = 'Document Diff'; $lang->doc->sort = 'Rang Document'; $lang->doc->manageType = 'Gérer Catégories'; +$lang->doc->createBook = 'Create Book'; $lang->doc->manageBook = 'Manage Book'; $lang->doc->editBook = 'Edit Book'; $lang->doc->editType = 'Editer'; @@ -159,22 +162,26 @@ $lang->doc->mail->edit = new stdclass(); $lang->doc->mail->create->title = "%s created document #%s:%s"; $lang->doc->mail->edit->title = "%s edited document #%s:%s"; -$lang->doc->confirmDelete = "Voulez-vous supprimer ce document ?"; -$lang->doc->confirmDeleteLib = "Voulez-vous supprimer cette Bibliothèque ?"; -$lang->doc->errorEditSystemDoc = "Vous n'avez pas besoin de changer de système de Bibliothèque."; -$lang->doc->errorEmptyProduct = "Aucun {$lang->productCommon}. Il ne peut pas être créé."; -$lang->doc->errorEmptyProject = "Aucun {$lang->executionCommon}. Il ne peut pas être créé."; -$lang->doc->errorMainSysLib = "Cette Bibliothèque ne peut pas être supprimée."; -$lang->doc->accessDenied = "Access is denied !"; -$lang->doc->versionNotFount = "N'existe pas dans ce build."; -$lang->doc->noDoc = 'Aucun documents. '; -$lang->doc->cannotCreateOffice = 'Désolé, %s peut seulement être créé dans ZenTao Enterprise. Contactez Zentao à renee@easysoft.ltd pour essayer ZenTao Enterprise.'; -$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; -$lang->doc->noSearchedDoc = 'Aucun documents trouvé.'; -$lang->doc->noEditedDoc = "Vous n'avez pas mis à jour de documents."; -$lang->doc->noOpenedDoc = "Vous n'avez pas ajouté de documents."; -$lang->doc->noCollectedDoc = "Vous avez aucun document dans vos favoris."; -$lang->doc->errorEmptyLib = 'No data in document library.'; +$lang->doc->confirmDelete = "Voulez-vous supprimer ce document ?"; +$lang->doc->confirmDeleteLib = "Voulez-vous supprimer cette Bibliothèque ?"; +$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?"; +$lang->doc->errorEditSystemDoc = "Vous n'avez pas besoin de changer de système de Bibliothèque."; +$lang->doc->errorEmptyProduct = "Aucun {$lang->productCommon}. Il ne peut pas être créé."; +$lang->doc->errorEmptyProject = "Aucun {$lang->executionCommon}. Il ne peut pas être créé."; +$lang->doc->errorMainSysLib = "Cette Bibliothèque ne peut pas être supprimée."; +$lang->doc->accessDenied = "Access is denied !"; +$lang->doc->versionNotFount = "N'existe pas dans ce build."; +$lang->doc->noDoc = 'Aucun documents. '; +$lang->doc->noArticle = 'No articles.'; +$lang->doc->noLib = 'No libraries. '; +$lang->doc->noBook = 'The WIKI library has not created a manual, please create a new one :)'; +$lang->doc->cannotCreateOffice = 'Désolé, %s peut seulement être créé dans ZenTao Enterprise. Contactez Zentao à renee@easysoft.ltd pour essayer ZenTao Enterprise.'; +$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; +$lang->doc->noSearchedDoc = 'Aucun documents trouvé.'; +$lang->doc->noEditedDoc = "Vous n'avez pas mis à jour de documents."; +$lang->doc->noOpenedDoc = "Vous n'avez pas ajouté de documents."; +$lang->doc->noCollectedDoc = "Vous avez aucun document dans vos favoris."; +$lang->doc->errorEmptyLib = 'No data in document library.'; $lang->doc->noticeAcl['lib']['product']['default'] = 'Les utilisateurs qui ont accès au Product peuvent y accéder.'; $lang->doc->noticeAcl['lib']['product']['custom'] = 'Les utilisateurs qui ont accès au Product ou les utilisateurs de la Liste Blanche peuvent y accéder.'; diff --git a/module/doc/lang/vi.php b/module/doc/lang/vi.php index e09202592b..0e46cd2b46 100644 --- a/module/doc/lang/vi.php +++ b/module/doc/lang/vi.php @@ -48,6 +48,8 @@ $lang->doc->item = ' Items'; $lang->doc->num = 'Documents'; $lang->doc->searchResult = 'Search kết quả'; $lang->doc->mailto = 'Mailto'; +$lang->doc->noModule = 'No document in this lib, please create it'; +$lang->doc->noChapter = 'No chapters or articles in this book. Please add chapters and articles.'; $lang->doc->moduleDoc = 'By Module'; $lang->doc->searchDoc = 'Tìm kiếm'; @@ -74,6 +76,7 @@ $lang->doc->diff = 'Diff'; $lang->doc->diffAction = 'Diff tài liệu'; $lang->doc->sort = 'Đánh giá tài liệu'; $lang->doc->manageType = 'Quản lý danh mục'; +$lang->doc->createBook = 'Create Book'; $lang->doc->manageBook = 'Manage Book'; $lang->doc->editBook = 'Edit Book'; $lang->doc->editType = 'Sửa'; @@ -159,22 +162,26 @@ $lang->doc->mail->edit = new stdclass(); $lang->doc->mail->create->title = "%s created document #%s:%s"; $lang->doc->mail->edit->title = "%s edited document #%s:%s"; -$lang->doc->confirmDelete = "Bạn có muốn xóa this document?"; -$lang->doc->confirmDeleteLib = "Bạn có muốn xóa this document library?"; -$lang->doc->errorEditSystemDoc = "You don't have to change system document library."; -$lang->doc->errorEmptyProduct = "Không có {$lang->productCommon}. It cannot be created."; -$lang->doc->errorEmptyProject = "Không có {$lang->executionCommon}. It cannot be created."; -$lang->doc->errorMainSysLib = "This library không thể xóa."; -$lang->doc->accessDenied = "Access bị từ chối!"; -$lang->doc->versionNotFount = 'Nó does not exist in bản dựng này.'; -$lang->doc->noDoc = 'Không có documents. '; -$lang->doc->cannotCreateOffice = 'Sorry, %s can only be created in ZenTao Enterprise. Contact us at renee@easysoft.ltd to try ZenTao Enterprise.'; -$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; -$lang->doc->noSearchedDoc = 'Không có documents found.'; -$lang->doc->noEditedDoc = 'Bạn có not edited any documents.'; -$lang->doc->noOpenedDoc = 'Bạn chưa tạo any documents.'; -$lang->doc->noCollectedDoc = 'Bạn có not favorited any documents.'; -$lang->doc->errorEmptyLib = 'No data in document library.'; +$lang->doc->confirmDelete = "Bạn có muốn xóa this document?"; +$lang->doc->confirmDeleteLib = "Bạn có muốn xóa this document library?"; +$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?"; +$lang->doc->errorEditSystemDoc = "You don't have to change system document library."; +$lang->doc->errorEmptyProduct = "Không có {$lang->productCommon}. It cannot be created."; +$lang->doc->errorEmptyProject = "Không có {$lang->executionCommon}. It cannot be created."; +$lang->doc->errorMainSysLib = "This library không thể xóa."; +$lang->doc->accessDenied = "Access bị từ chối!"; +$lang->doc->versionNotFount = 'Nó does not exist in bản dựng này.'; +$lang->doc->noDoc = 'Không có documents. '; +$lang->doc->noArticle = 'No articles.'; +$lang->doc->noLib = 'No libraries. '; +$lang->doc->noBook = 'The WIKI library has not created a manual, please create a new one :)'; +$lang->doc->cannotCreateOffice = 'Sorry, %s can only be created in ZenTao Enterprise. Contact us at renee@easysoft.ltd to try ZenTao Enterprise.'; +$lang->doc->notSetOffice = "
To create a %s document, you need to configure office convert.
"; +$lang->doc->noSearchedDoc = 'Không có documents found.'; +$lang->doc->noEditedDoc = 'Bạn có not edited any documents.'; +$lang->doc->noOpenedDoc = 'Bạn chưa tạo any documents.'; +$lang->doc->noCollectedDoc = 'Bạn có not favorited any documents.'; +$lang->doc->errorEmptyLib = 'No data in document library.'; $lang->doc->noticeAcl['lib']['product']['default'] = 'Users who can access the selected product có thể truy cập nó.'; $lang->doc->noticeAcl['lib']['product']['custom'] = 'Users who can access the selected product or users in the whiltelist có thể truy cập nó.'; diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php index fa29fb7786..8e48737b0d 100644 --- a/module/doc/lang/zh-cn.php +++ b/module/doc/lang/zh-cn.php @@ -10,60 +10,61 @@ * @link http://www.zentao.net */ /* 字段列表。*/ -$lang->doc->common = '文档'; -$lang->doc->id = '文档编号'; -$lang->doc->product = '所属' . $lang->productCommon; -$lang->doc->project = '所属项目'; -$lang->doc->execution = '所属' . $lang->executionCommon; -$lang->doc->lib = '所属文档库'; -$lang->doc->module = '所属分类'; -$lang->doc->title = '文档标题'; -$lang->doc->digest = '文档摘要'; -$lang->doc->comment = '文档备注'; -$lang->doc->type = '文档类型'; -$lang->doc->content = '文档正文'; -$lang->doc->keywords = '关键字'; -$lang->doc->url = '文档URL'; -$lang->doc->files = '附件'; -$lang->doc->addedBy = '由谁添加'; -$lang->doc->addedDate = '添加时间'; -$lang->doc->editedBy = '由谁更新'; -$lang->doc->editedDate = '更新时间'; -$lang->doc->version = '版本号'; -$lang->doc->basicInfo = '基本信息'; -$lang->doc->deleted = '已删除'; -$lang->doc->fileObject = '所属对象'; -$lang->doc->whiteList = '白名单'; -$lang->doc->contentType = '文档格式'; -$lang->doc->separator = ""; -$lang->doc->fileTitle = '附件名'; -$lang->doc->filePath = '地址'; -$lang->doc->extension = '类型'; -$lang->doc->size = '大小'; -$lang->doc->download = '下载'; -$lang->doc->acl = '权限'; -$lang->doc->fileName = '附件'; -$lang->doc->groups = '分组'; -$lang->doc->users = '用户'; -$lang->doc->item = '项'; -$lang->doc->num = '文档数量'; -$lang->doc->searchResult = '搜索结果'; -$lang->doc->mailto = '抄送给'; -$lang->doc->noModule = '文档库下没有目录和文档,请维护目录或者创建文档'; +$lang->doc->common = '文档'; +$lang->doc->id = '文档编号'; +$lang->doc->product = '所属' . $lang->productCommon; +$lang->doc->project = '所属项目'; +$lang->doc->execution = '所属' . $lang->executionCommon; +$lang->doc->lib = '所属文档库'; +$lang->doc->module = '所属分类'; +$lang->doc->title = '文档标题'; +$lang->doc->digest = '文档摘要'; +$lang->doc->comment = '文档备注'; +$lang->doc->type = '文档类型'; +$lang->doc->content = '文档正文'; +$lang->doc->keywords = '关键字'; +$lang->doc->url = '文档URL'; +$lang->doc->files = '附件'; +$lang->doc->addedBy = '由谁添加'; +$lang->doc->addedDate = '添加时间'; +$lang->doc->editedBy = '由谁更新'; +$lang->doc->editedDate = '更新时间'; +$lang->doc->version = '版本号'; +$lang->doc->basicInfo = '基本信息'; +$lang->doc->deleted = '已删除'; +$lang->doc->fileObject = '所属对象'; +$lang->doc->whiteList = '白名单'; +$lang->doc->contentType = '文档格式'; +$lang->doc->separator = ""; +$lang->doc->fileTitle = '附件名'; +$lang->doc->filePath = '地址'; +$lang->doc->extension = '类型'; +$lang->doc->size = '大小'; +$lang->doc->download = '下载'; +$lang->doc->acl = '权限'; +$lang->doc->fileName = '附件'; +$lang->doc->groups = '分组'; +$lang->doc->users = '用户'; +$lang->doc->item = '项'; +$lang->doc->num = '文档数量'; +$lang->doc->searchResult = '搜索结果'; +$lang->doc->mailto = '抄送给'; +$lang->doc->noModule = '文档库下没有目录和文档,请维护目录或者创建文档'; +$lang->doc->noChapter = '手册下没有章节和文章,请维护手册'; -$lang->doc->moduleDoc = '按模块浏览'; -$lang->doc->searchDoc = '搜索'; -$lang->doc->fast = '快速访问'; -$lang->doc->allDoc = '所有文档'; -$lang->doc->openedByMe = '由我创建'; -$lang->doc->editedByMe = '由我编辑'; -$lang->doc->orderByOpen = '最近添加'; -$lang->doc->orderByEdit = '最近更新'; -$lang->doc->orderByVisit = '最近访问'; -$lang->doc->todayEdited = '今日更新'; -$lang->doc->pastEdited = '往日更新'; -$lang->doc->myDoc = '我的文档'; -$lang->doc->myCollection = '我的收藏'; +$lang->doc->moduleDoc = '按模块浏览'; +$lang->doc->searchDoc = '搜索'; +$lang->doc->fast = '快速访问'; +$lang->doc->allDoc = '所有文档'; +$lang->doc->openedByMe = '由我创建'; +$lang->doc->editedByMe = '由我编辑'; +$lang->doc->orderByOpen = '最近添加'; +$lang->doc->orderByEdit = '最近更新'; +$lang->doc->orderByVisit = '最近访问'; +$lang->doc->todayEdited = '今日更新'; +$lang->doc->pastEdited = '往日更新'; +$lang->doc->myDoc = '我的文档'; +$lang->doc->myCollection = '我的收藏'; /* 方法列表。*/ $lang->doc->index = '文档主页'; @@ -76,6 +77,7 @@ $lang->doc->diff = '对比'; $lang->doc->diffAction = '对比文档'; $lang->doc->sort = '文档排序'; $lang->doc->manageType = '维护目录'; +$lang->doc->createBook = '创建手册'; $lang->doc->manageBook = '维护手册'; $lang->doc->editBook = '编辑手册'; $lang->doc->editType = '编辑目录'; @@ -164,23 +166,26 @@ $lang->doc->mail->edit = new stdclass(); $lang->doc->mail->create->title = "%s创建了文档 #%s:%s"; $lang->doc->mail->edit->title = "%s编辑了文档 #%s:%s"; -$lang->doc->confirmDelete = "您确定删除该文档吗?"; -$lang->doc->confirmDeleteLib = "您确定删除该文档库吗?"; -$lang->doc->errorEditSystemDoc = "系统文档库无需修改。"; -$lang->doc->errorEmptyProduct = "没有{$lang->productCommon},无法创建文档"; -$lang->doc->errorEmptyProject = "没有{$lang->executionCommon},无法创建文档"; -$lang->doc->errorMainSysLib = "该系统文档库不能删除!"; -$lang->doc->accessDenied = "您没有权限访问!"; -$lang->doc->versionNotFount = '该版本文档不存在'; -$lang->doc->noDoc = '暂时没有文档。'; -$lang->doc->noLib = '暂时没有文档库。'; -$lang->doc->cannotCreateOffice = '
对不起,企业版才能创建%s文档。
试用企业版,请联系我们:4006-8899-23 0532-86893032。
'; -$lang->doc->notSetOffice = "创建%s文档,需要配置Office转换设置。
"; -$lang->doc->noSearchedDoc = '没有搜索到任何文档。'; -$lang->doc->noEditedDoc = '您还没有编辑任何文档。'; -$lang->doc->noOpenedDoc = '您还没有创建任何文档。'; -$lang->doc->noCollectedDoc = '您还没有收藏任何文档。'; -$lang->doc->errorEmptyLib = '文档库暂无数据。'; +$lang->doc->confirmDelete = "您确定删除该文档吗?"; +$lang->doc->confirmDeleteLib = "您确定删除该文档库吗?"; +$lang->doc->confirmDeleteChapter = "您确定删除该章节吗?"; +$lang->doc->errorEditSystemDoc = "系统文档库无需修改。"; +$lang->doc->errorEmptyProduct = "没有{$lang->productCommon},无法创建文档"; +$lang->doc->errorEmptyProject = "没有{$lang->executionCommon},无法创建文档"; +$lang->doc->errorMainSysLib = "该系统文档库不能删除!"; +$lang->doc->accessDenied = "您没有权限访问!"; +$lang->doc->versionNotFount = '该版本文档不存在'; +$lang->doc->noDoc = '暂时没有文档。'; +$lang->doc->noArticle = '暂时没有文章。'; +$lang->doc->noLib = '暂时没有文档库。'; +$lang->doc->noBook = 'WIKI库还未创建手册,请新建 :)'; +$lang->doc->cannotCreateOffice = '
对不起,企业版才能创建%s文档。
试用企业版,请联系我们:4006-8899-23 0532-86893032。
'; +$lang->doc->notSetOffice = "创建%s文档,需要配置Office转换设置。
"; +$lang->doc->noSearchedDoc = '没有搜索到任何文档。'; +$lang->doc->noEditedDoc = '您还没有编辑任何文档。'; +$lang->doc->noOpenedDoc = '您还没有创建任何文档。'; +$lang->doc->noCollectedDoc = '您还没有收藏任何文档。'; +$lang->doc->errorEmptyLib = '文档库暂无数据。'; $lang->doc->noticeAcl['lib']['product']['default'] = '有所选产品访问权限的用户可以访问。'; $lang->doc->noticeAcl['lib']['product']['custom'] = '有所选产品访问权限或白名单里的用户可以访问。'; diff --git a/module/doc/lang/zh-tw.php b/module/doc/lang/zh-tw.php index ac78959b60..b9922cc6d0 100644 --- a/module/doc/lang/zh-tw.php +++ b/module/doc/lang/zh-tw.php @@ -74,6 +74,7 @@ $lang->doc->diff = '對比'; $lang->doc->diffAction = '對比文檔'; $lang->doc->sort = '文檔排序'; $lang->doc->manageType = '維護分類'; +$lang->doc->createBook = '創建手冊'; $lang->doc->manageBook = '維護手冊'; $lang->doc->editBook = '編輯手冊'; $lang->doc->editType = '編輯分類'; @@ -170,6 +171,9 @@ $lang->doc->errorMainSysLib = "該系統文檔庫不能刪除!"; $lang->doc->accessDenied = "您沒有權限訪問!"; $lang->doc->versionNotFount = '該版本文檔不存在'; $lang->doc->noDoc = '暫時沒有文檔。'; +$lang->doc->noArticle = '暫時沒有文章。'; +$lang->doc->noLib = '暫時沒有文檔庫'; +$lang->doc->noBook = 'WIKI庫還沒有創建手冊,請新建 :)'; $lang->doc->cannotCreateOffice = '
對不起,企業版才能創建%s文檔。
試用企業版,請聯繫我們:4006-8899-23 0532-86893032。
'; $lang->doc->notSetOffice = "創建%s文檔,需要配置Office轉換設置。
"; $lang->doc->noSearchedDoc = '沒有搜索到任何文檔。'; diff --git a/module/doc/model.php b/module/doc/model.php index 62c03a2e19..ca40125a68 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1703,7 +1703,11 @@ class docModel extends model */ public function buildCreateButton4Doc($objectType, $objectID, $libID) { - if($libID) + if($objectType == 'book') + { + $html = html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), '' . $this->lang->doc->createBook, '', 'class="btn btn-secondary iframe"'); + } + elseif($libID) { $html = "
From 7dae38a2a3564fa25c872ecaea32b22e89c7cd1f Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 7 Apr 2021 14:05:37 +0800 Subject: [PATCH 5/8] * Finish task #37295. --- module/my/view/requirement.html.php | 2 +- module/my/view/story.html.php | 2 +- module/story/control.php | 9 ++++++--- module/story/js/common.js | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/module/my/view/requirement.html.php b/module/my/view/requirement.html.php index 7383b26bd7..dfd2e3eb2d 100644 --- a/module/my/view/requirement.html.php +++ b/module/my/view/requirement.html.php @@ -156,7 +156,7 @@ createLink('story', 'batchEdit', 'productID=0&executionID=0&branch=0&storyType=requirement'); + $actionLink = $this->createLink('story', 'batchEdit', "productID=0&executionID=0&branch=0&storyType=requirement&from={$app->rawMethod}"); $misc = "data-form-action='$actionLink'"; echo html::commonButton($lang->edit, $misc); } diff --git a/module/my/view/story.html.php b/module/my/view/story.html.php index 747cd8680d..fd0be6d3c9 100644 --- a/module/my/view/story.html.php +++ b/module/my/view/story.html.php @@ -159,7 +159,7 @@ createLink('story', 'batchEdit', 'productID=0&executionID=0&branch=0&storyType=story'); + $actionLink = $this->createLink('story', 'batchEdit', "productID=0&executionID=0&branch=0&storyType=story&from={$app->rawMethod}"); $misc = "data-form-action='$actionLink'"; echo html::commonButton($lang->edit, $misc); } diff --git a/module/story/control.php b/module/story/control.php index fd040c19e1..8503465fe6 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -618,10 +618,13 @@ class story extends control * * @param int $productID * @param int $executionID + * @param int $branch + * @param string $storyType + * @param string $from * @access public * @return void */ - public function batchEdit($productID = 0, $executionID = 0, $branch = 0, $storyType = 'story') + public function batchEdit($productID = 0, $executionID = 0, $branch = 0, $storyType = 'story', $from = '') { $this->lang->product->switcherMenu = $this->product->getSwitcher($productID); $this->story->replaceURLang($storyType); @@ -645,8 +648,8 @@ class story extends control else if($this->app->openApp == 'my') { $this->loadModel('my')->setMenu(); - $this->lang->my->menu->work['subModule'] = 'story'; - $this->lang->my->menu->contribute['subModule'] = 'story'; + if($from == 'work') $this->lang->my->menu->work['subModule'] = 'story'; + if($from == 'contribute') $this->lang->my->menu->contribute['subModule'] = 'story'; } /* Load model. */ diff --git a/module/story/js/common.js b/module/story/js/common.js index d10373ef4e..8cc11344f3 100644 --- a/module/story/js/common.js +++ b/module/story/js/common.js @@ -7,7 +7,7 @@ $(function() if(typeof(execution) != 'undefined') rawModule = 'projectstory'; if(['project', 'projectstory'].indexOf(rawModule) === -1 && app != 'qa') { - $('#navbar .nav li').removeClass('active'); + if(app != 'my') $('#navbar .nav li').removeClass('active'); $("#navbar .nav li[data-id=" + storyType + ']').addClass('active'); $('#subNavbar li[data-id="' + storyType + '"]').addClass('active'); } From 82df33e2056d10490aa22ed166a49bcaac49fc90 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 7 Apr 2021 14:12:06 +0800 Subject: [PATCH 6/8] * Fix bug. --- module/execution/control.php | 2 +- module/execution/view/task.html.php | 2 +- module/task/control.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 95558e6b3a..241ecf71b9 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2063,7 +2063,7 @@ class execution extends control $this->session->set('execution', ''); $this->executeHooks($executionID); - die(js::locate(inlink('index'), 'parent')); + die(js::reload('parent')); } } diff --git a/module/execution/view/task.html.php b/module/execution/view/task.html.php index 8443f62667..7e8f1d88fb 100644 --- a/module/execution/view/task.html.php +++ b/module/execution/view/task.html.php @@ -117,7 +117,7 @@ body {margin-bottom: 25px;}