create the translation folder at installation page

This commit is contained in:
Fernando Ontiveros
2025-04-05 07:55:20 +00:00
parent 012025c432
commit ba61a274d4
4 changed files with 8 additions and 6 deletions

View File

@@ -47,7 +47,6 @@ class InstallerModule extends Controller
$this->path_shared = PATH_TRUNK . 'shared/';
$this->path_sep = PATH_SEP;
$this->systemName = '';
//$this->path_documents = ;
$this->path_translations = PATH_CORE . 'js/labels/';
$this->path_translationsMafe = PATH_HOME . 'public_html/translations/';
}
@@ -92,7 +91,6 @@ class InstallerModule extends Controller
$this->setJSVar('path_translationsMafe', $this->path_translationsMafe);
$this->setView('installer/main');
G::RenderPage('publish', 'extJs');
}
@@ -339,6 +337,7 @@ class InstallerModule extends Controller
}
$info->pathTranslations = new stdclass();
G::verifyPath($_REQUEST['pathTranslations'], true);
$info->pathTranslations->message = G::LoadTranslation('ID_TRANSLATION_NOT_WRITEABLE');
$info->pathTranslations->result = G::is_writable_r($_REQUEST['pathTranslations'], $noWritableFiles);
if ($info->pathTranslations->result) {
@@ -348,8 +347,11 @@ class InstallerModule extends Controller
}
$info->pathTranslationsMafe = new stdclass();
G::verifyPath($_REQUEST['pathTranslationsMafe'], true);
$info->pathTranslationsMafe->message = G::LoadTranslation('ID_MAFE_TRANSLATION_NOT_WRITEABLE');
$info->pathTranslationsMafe->result = G::is_writable_r($_REQUEST['pathTranslationsMafe'], $noWritableFiles);
if ($info->pathTranslationsMafe->result) {
$info->pathTranslationsMafe->message = $writable;
} else {