Improvement import languages
- file .po is loaded in folder content/translations.
This commit is contained in:
@@ -275,9 +275,11 @@ class Language extends BaseLanguage
|
||||
$oLanguage->update( array ('LAN_ID' => $languageID,'LAN_ENABLED' => '1'
|
||||
) );
|
||||
|
||||
$trn = new Translation();
|
||||
$trn->generateFileTranslation( $LOCALE );
|
||||
$trn->addTranslationEnvironment( $LOCALE, $POHeaders, $countItemsSuccess );
|
||||
if ($updateXml) {
|
||||
$trn = new Translation();
|
||||
$trn->generateFileTranslation( $LOCALE );
|
||||
$trn->addTranslationEnvironment( $LOCALE, $POHeaders, $countItemsSuccess );
|
||||
}
|
||||
|
||||
//fill the results
|
||||
$results = new stdClass();
|
||||
|
||||
Reference in New Issue
Block a user