diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index 81fdf00..2e4dab8 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -41,6 +41,9 @@ // stuff in the new installer section database upgrade fails without this global $default; +// traducir carpeta 'DroppedDocuments' +define('DROPPED_DOCUMENTS_FOLDER', 'Documentos personales'); + if (defined('DMS_DEFAULTS_INCLUDED')) { return; diff --git a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php index c65a0de..416b213 100644 --- a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php +++ b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php @@ -75,7 +75,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { // Check for the DropDocuments folder in root - if(!Folder::FolderExistsName('DroppedDocuments', $iRootID)) + if(!Folder::FolderExistsName(DROPPED_DOCUMENTS_FOLDER, $iRootID)) { // We need to be admin to create the folder and update its permissions $this->ktapi = new KTAPI(); @@ -92,7 +92,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { } } - $iDropDocsFolderID = $this->getFolderID('DroppedDocuments'); + $iDropDocsFolderID = $this->getFolderID(DROPPED_DOCUMENTS_FOLDER); // Check for users folder if(!Folder::FolderExistsName($sUserName, $iDropDocsFolderID)) @@ -136,7 +136,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { /* ** Get the Dropped Documents folder object and assign the user to the role */ // Get the DroppedDocuments folder - $dropDocsFolder = $root->get_folder_by_name('/DroppedDocuments'); + $dropDocsFolder = $root->get_folder_by_name('/'.DROPPED_DOCUMENTS_FOLDER); if(PEAR::isError($dropDocsFolder)){ $default->log->debug('MyDropDocuments: could not get DroppedDocuments folder '.$dropDocsFolder->getMessage()); @@ -208,7 +208,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { } //Create dropdocuments folder - $dropDocsFolder = $root->add_folder('DroppedDocuments'); + $dropDocsFolder = $root->add_folder(DROPPED_DOCUMENTS_FOLDER); if(PEAR::isError($dropDocsFolder)){ $default->log->debug('MyDropDocuments: could not create DroppedDocuments folder '.$dropDocsFolder->getMessage());