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-11 10:25:40 -04:00
parent 8eec1347dd
commit d1ea074d0b
3 changed files with 4 additions and 6 deletions

View File

@@ -283,9 +283,8 @@ class Translation extends BaseTranslation {
if (file_exists(PATH_CORE . "META-INF" . PATH_SEP . "translation.".$locale)) {
G::rm_dir(PATH_DATA . "META-INF" . PATH_SEP . "translation.".$locale);
}
if (file_exists(PATH_CORE . '/content/translations/processmaker.'.$locale.'.po')) {
G::rm_dir(PATH_CORE . '/content/translations/processmaker.'.$locale.'.po');
if (file_exists(PATH_CORE . PATH_SEP . 'content' . PATH_SEP . 'translations' . PATH_SEP . 'processmaker' . $locale . '.po')) {
G::rm_dir(PATH_CORE . PATH_SEP . 'content' . PATH_SEP . 'translations' . PATH_SEP . 'processmaker' . $locale . '.po');
}
}
}