Add mafe-translation

This commit is contained in:
Marco Antonio Nina
2014-04-02 13:16:26 -04:00
parent e5e62da380
commit 47d20cbaa5
4 changed files with 88 additions and 2 deletions

View File

@@ -573,5 +573,19 @@ class Translation extends BaseTranslation
}
return false;
}
public function generateTransaltionMafe ($lang='en')
{
if (!file_exists(PATH_TRUNK .'vendor/colosa/MichelangeloFE/' . 'labels.php')) {
throw new Exception( PATH_TRUNK .'vendor/colosa/MichelangeloFE/' . 'labels.php');
throw new Exception( 'labels.php not exist in MAFE ');
}
include PATH_TRUNK .'vendor/colosa/MichelangeloFE/' . 'labels.php';
foreach ($labels as $key => $row) {
$this->addTranslation ('LABEL', 'ID_MAFE_'.MD5($row), $lang, $row);
}
}
}