BUG 6476 improvements to translation support

related tioo commit: 4a7047
Translations Supports was fixed and solve multiples bugs: 6137, 6474, 6476, 6513, 6560, 6597, 6599
This commit is contained in:
Erik Amaru Ortiz
2011-05-09 15:50:31 -04:00
parent ead22a80e6
commit 779927d11e
4 changed files with 476 additions and 474 deletions

View File

@@ -22,6 +22,8 @@
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
require_once "classes/model/Language.php";
global $RBAC;
$access = $RBAC->userCanAccess('PM_SETUP_ADVANCE');
@@ -48,7 +50,6 @@ try {
$sMaxExecutionTime = ini_get('max_execution_time');
ini_set('max_execution_time', '0');
G::LoadClass('languages');
G::LoadClass('configuration');
$languageFile = $_FILES['form']['tmp_name']['LANGUAGE_FILENAME'];
@@ -66,12 +67,9 @@ try {
fclose($handle);
}
$languages = new languages();
$language = new Language();
$configuration = new Configurations;
$importResults = $languages->importLanguage($languageFile);
//G::SendTemporalMessage('IMPORT_LANGUAGE_SUCCESS', 'info', 'labels');
//G::header('location: languages');
$importResults = $language->import($languageFile);
$result->msg = G::LoadTranslation('IMPORT_LANGUAGE_SUCCESS') . "\n";
$result->msg .= "PO File num. records: " . $importResults->recordsCount . "\n";