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:
Erik Amaru Ortiz
2010-12-23 22:30:39 +00:00
parent b575d9098c
commit 4792ab0512
8 changed files with 53 additions and 23 deletions

View File

@@ -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 ) {

View File

@@ -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' );

View File

@@ -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');

View File

@@ -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) {