Add file translation Mafe

This commit is contained in:
Marco Antonio Nina
2014-04-10 12:30:51 -04:00
parent d4c2700c75
commit 0c28857ab0
4 changed files with 62 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ class Language extends BaseLanguage
* @param string $bXml
* @return void
*/
public function import ($sLanguageFile, $updateXml = true, $updateDB = true)
public function import ($sLanguageFile, $updateXml = true, $updateDB = true, $generateMafe = true)
{
try {
G::LoadSystem( 'i18n_po' );
@@ -288,6 +288,11 @@ class Language extends BaseLanguage
$trn->addTranslationEnvironment( $LOCALE, $POHeaders, $countItemsSuccess );
}
if ($generateMafe) {
$trn = new Translation();
$trn->generateFileTranslationMafe();
}
//fill the results
$results = new stdClass();
$results->recordsCount = $countItems;