BUG 9902 Error uploading a new language in Zend ServerSOLVED

- Not loaded correctly.
- scans all languages.
This commit is contained in:
Marco Antonio Nina
2012-10-10 17:07:14 -04:00
parent fc1fd9bf3d
commit 8eec1347dd
4 changed files with 68 additions and 41 deletions

View File

@@ -292,15 +292,12 @@ class workspaceTools {
*/
public function upgradeContent($workSpace=SYS_SYS) {
$this->initPropel(true);
require_once('classes/model/Language.php');
G::LoadThirdParty('pear/json', 'class.json');
$lang = array();
foreach (System::listPoFiles() as $poFile) {
$poName = basename($poFile);
$names = explode(".", basename($poFile));
$extension = array_pop($names);
$langid = array_pop($names);
$arrayLang[] = $langid;
require_once 'classes/model/Translation.php';
$translation = new Translation();
$information = $translation->getTranslationEnvironments();
foreach ($information as $key => $value) {
$arrayLang[] = trim($value['LOCALE']);
}
require_once('classes/model/Content.php');
$regenerateContent = new Content();