Add mafe-translation
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 ');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user