Add mafe-translation

This commit is contained in:
Marco Antonio Nina
2014-04-02 13:18:33 -04:00
parent 47d20cbaa5
commit eefe693852
2 changed files with 1 additions and 6 deletions

View File

@@ -33,8 +33,7 @@ CLI::taskDescription(<<<EOT
EOT
);
//CLI::taskArg('lang', true);
//CLI::taskArg('workspace', true);
CLI::taskArg('workspace', true, true);
CLI::taskOpt("lang", "You must specify language on which rebuild of the case cache list builder will be done; if you don't specify this, it will use 'en' by default", "l:","lang=");
CLI::taskRun('run_create_translation');
@@ -47,11 +46,8 @@ function run_create_translation($args, $opts)
$loadConstants = false;
$workspaces = get_workspaces_from_args($args);
print_r($workspaces);
$lang = array_key_exists("lang", $opts) ? $opts['lang'] : 'en';
//$app->loadEnvironment("marcoantonio3", $loadConstants);
$translation = new Translation();
CLI::logging("Updating labels Mafe ...\n");
foreach ($workspaces as $workspace) {

View File

@@ -577,7 +577,6 @@ class Translation extends BaseTranslation
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 ');
}