BUG 9902 Error uploading a new language in Zend ServerSOLVED
- Not loaded correctly. - scans all languages.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user