Improvement import languages
- file .po is loaded in folder content/translations.
This commit is contained in:
@@ -97,6 +97,12 @@ try {
|
||||
);
|
||||
$configuration->saveConfig( 'LANGUAGE_META', $importResults->lang );
|
||||
|
||||
$dir = PATH_CORE . 'content' . PATH_SEP . 'translations' . PATH_SEP;
|
||||
if (! is_writable( $dir )) {
|
||||
throw new Exception( G::LoadTranslation( 'ID_CONTENT_FOLDER_PERMISSIONS' ) );
|
||||
}
|
||||
G::uploadFile($languageFile, $dir, $languageFilename, 0777);
|
||||
|
||||
ini_set( 'max_execution_time', $sMaxExecutionTime );
|
||||
|
||||
} catch (Exception $oError) {
|
||||
|
||||
Reference in New Issue
Block a user