moving the cache file translation.es location in ./workflow/engine/content/translation to shared directory to solve the problem in balanced environments and write permissions
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
if (! isset ( $_GET ['u'] )) {
|
||||
$aFields ['URL'] = '';
|
||||
}
|
||||
@@ -89,8 +91,9 @@
|
||||
$_SESSION ['FAILED_LOGINS'] = $sFailedLogins;
|
||||
|
||||
//translation
|
||||
require_once "classes/model/Translation.php";
|
||||
$translationsTable = Translation::getTranslationEnvironments();
|
||||
$Translations = G::getModel("Translation");
|
||||
$translationsTable = $Translations->getTranslationEnvironments();
|
||||
|
||||
$availableLangArray = array ();
|
||||
$availableLangArray [] = array ('LANG_ID' => 'char', 'LANG_NAME' => 'char' );
|
||||
foreach ( $translationsTable as $locale ) {
|
||||
|
||||
@@ -77,11 +77,9 @@ function getWorkspacesAvailable() {
|
||||
}
|
||||
$availableWorkspace = getWorkspacesAvailable ();
|
||||
|
||||
require_once "classes/model/Translation.php";
|
||||
|
||||
$translationsTable = Translation::getTranslationEnvironments();
|
||||
//g::pr($translationsTable); die;
|
||||
//$availableLang = getLangFiles ();
|
||||
//Translations
|
||||
$Translations = G::getModel("Translation");
|
||||
$translationsTable = $Translations->getTranslationEnvironments();
|
||||
|
||||
$availableLangArray = array ();
|
||||
$availableLangArray [] = array ('LANG_ID' => 'char', 'LANG_NAME' => 'char' );
|
||||
|
||||
@@ -113,21 +113,18 @@
|
||||
|
||||
case 'getLangList':
|
||||
|
||||
require_once 'classes/model/Translation.php';
|
||||
$Translations = G::getModel('Translation');
|
||||
$result = new stdClass();
|
||||
$result->rows = Array();
|
||||
|
||||
|
||||
$langs = Translation::getTranslationEnvironments();
|
||||
$langs = $Translations->getTranslationEnvironments();
|
||||
foreach($langs as $lang){
|
||||
$result->rows[] = Array('LAN_ID'=>$lang['LOCALE'], 'LAN_NAME'=>$lang['LANGUAGE']);
|
||||
}
|
||||
//print_r($langs);
|
||||
//$result->rows = $lang->getActiveLanguages();
|
||||
|
||||
|
||||
print(G::json_encode($result));
|
||||
break;
|
||||
|
||||
|
||||
case 'build':
|
||||
$sqlToExe = Array();
|
||||
G::LoadClass('configuration');
|
||||
|
||||
@@ -51,7 +51,7 @@ try {
|
||||
$translationRow = new Translation();
|
||||
$response = new stdClass();
|
||||
$translationsEnvList = $translationRow->getTranslationEnvironments();
|
||||
|
||||
//print_r($translationsEnvList); die;
|
||||
$i = 0;
|
||||
foreach( $translationsEnvList as $locale=>$translationRow) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user