BUG 9902 Error uploading a new language in Zend ServerSOLVED
- Not loaded correctly. - scans all languages.
This commit is contained in:
@@ -295,7 +295,7 @@ class workspaceTools {
|
|||||||
require_once 'classes/model/Translation.php';
|
require_once 'classes/model/Translation.php';
|
||||||
$translation = new Translation();
|
$translation = new Translation();
|
||||||
$information = $translation->getTranslationEnvironments();
|
$information = $translation->getTranslationEnvironments();
|
||||||
|
$arrayLang = array();
|
||||||
foreach ($information as $key => $value) {
|
foreach ($information as $key => $value) {
|
||||||
$arrayLang[] = trim($value['LOCALE']);
|
$arrayLang[] = trim($value['LOCALE']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -382,7 +382,6 @@ class Content extends BaseContent {
|
|||||||
FROM CONTENT_BACKUP");
|
FROM CONTENT_BACKUP");
|
||||||
$statement->executeQuery();
|
$statement->executeQuery();
|
||||||
|
|
||||||
$connection = Propel::getConnection('workflow');
|
|
||||||
$statement = $connection->prepareStatement("DROP TABLE CONTENT_BACKUP");
|
$statement = $connection->prepareStatement("DROP TABLE CONTENT_BACKUP");
|
||||||
$statement->executeQuery();
|
$statement->executeQuery();
|
||||||
|
|
||||||
@@ -419,7 +418,7 @@ class Content extends BaseContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fastInsertContent ($ConCategory, $ConParent, $ConId, $ConLang, $ConValue) {
|
function fastInsertContent ($ConCategory, $ConParent, $ConId, $ConLang, $ConValue) {
|
||||||
$ConValue = htmlentities($ConValue, ENT_QUOTES, "UTF-8");
|
$ConValue = mysql_real_escape_string($ConValue);
|
||||||
$connection = Propel::getConnection('workflow');
|
$connection = Propel::getConnection('workflow');
|
||||||
$statement = $connection->prepareStatement("INSERT INTO CONTENT_BACKUP (
|
$statement = $connection->prepareStatement("INSERT INTO CONTENT_BACKUP (
|
||||||
CON_CATEGORY, CON_PARENT, CON_ID , CON_LANG, CON_VALUE)
|
CON_CATEGORY, CON_PARENT, CON_ID , CON_LANG, CON_VALUE)
|
||||||
|
|||||||
@@ -283,9 +283,8 @@ class Translation extends BaseTranslation {
|
|||||||
if (file_exists(PATH_CORE . "META-INF" . PATH_SEP . "translation.".$locale)) {
|
if (file_exists(PATH_CORE . "META-INF" . PATH_SEP . "translation.".$locale)) {
|
||||||
G::rm_dir(PATH_DATA . "META-INF" . PATH_SEP . "translation.".$locale);
|
G::rm_dir(PATH_DATA . "META-INF" . PATH_SEP . "translation.".$locale);
|
||||||
}
|
}
|
||||||
|
if (file_exists(PATH_CORE . PATH_SEP . 'content' . PATH_SEP . 'translations' . PATH_SEP . 'processmaker' . $locale . '.po')) {
|
||||||
if (file_exists(PATH_CORE . '/content/translations/processmaker.'.$locale.'.po')) {
|
G::rm_dir(PATH_CORE . PATH_SEP . 'content' . PATH_SEP . 'translations' . PATH_SEP . 'processmaker' . $locale . '.po');
|
||||||
G::rm_dir(PATH_CORE . '/content/translations/processmaker.'.$locale.'.po');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user