-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add command fop:translations:import #262
base: dev
Are you sure you want to change the base?
Conversation
php bin/console fop:translations:import ISO_CODE
$errors = $languagePackImporter->import($iso); | ||
if (empty($errors)) { | ||
$this->io->text('lang '.$iso.' added !'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If 1 is for failure.
Does the code must be
if (!empty($errors)) {
return Command::FAILURE_EXIT;
}
$this->io->text('lang '.$iso.' added !');
return Command::SUCCESS:
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, too, the management and the display of the errors with the Command::FAILURE
return could be done.
Co-authored-by: Jonathan Danse <[email protected]>
Co-authored-by: Touxten <[email protected]>
Co-authored-by: Jonathan Danse <[email protected]>
Add new command for import translation package.
php bin/console fop:translations:import ISO_CODE