Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feature: check localization command#174

Merged
corpsee merged 3 commits into
php-censor:masterphp-censor/php-censor:masterfrom
caouecs:check_localizationsCopy head branch name to clipboard
May 1, 2018
Merged

feature: check localization command#174
corpsee merged 3 commits into
php-censor:masterphp-censor/php-censor:masterfrom
caouecs:check_localizationsCopy head branch name to clipboard

Conversation

@caouecs

@caouecs caouecs commented May 1, 2018

Copy link
Copy Markdown
Contributor

Contribution type

new feature on resources

Description of change

A command to check localization files, with English version :

bin/console php-censor:check-localizations

You can choose languages list (separated by commas) with "lang" option :

bin/console php-censor:check-localizations --langs=fr,ru

If you need tags with same translations than English version, vous can choose the "same" option :

bin/console php-censor:check-localizations --same=1

And you can combine options :

bin/console php-censor:check-localizations --langs=fr,ru --same=1

$this->add(new CheckLocalizationCommand());
}

public function getHelp()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHPCensor\Console\Application::getHelp::PHPCensor\Console\Application::getHelp is missing a docblock.

@caouecs caouecs mentioned this pull request May 1, 2018
/**
* Loops through running.
*/
protected function execute(InputInterface $input, OutputInterface $output)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class PHPCensor\Command\CheckLocalizationCommand::execute is missing a docblock.

/**
* Loops through running.
*/
protected function execute(InputInterface $input, OutputInterface $output)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class PHPCensor\Command\CheckLocalizationCommand::execute is missing a docblock.

@corpsee corpsee added this to the 1.0 milestone May 1, 2018
@corpsee

corpsee commented May 1, 2018

Copy link
Copy Markdown
Member

@caouecs Thank you! I will try to test and merge the request today. Very useful command 👍

$output->writeln('<info>Check localizations!</info>');
$output->writeln('');

$sameThanEnglish = (isset($input->getOption('same'))) ? $input->getOption('same') : false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /home/travis/build/php-censor/php-censor/src/Command/CheckLocalizationCommand.php on line 63

@corpsee corpsee merged commit 3cdedcd into php-censor:master May 1, 2018
corpsee added a commit that referenced this pull request May 1, 2018
@caouecs caouecs deleted the check_localizations branch May 3, 2018 20:42
@corpsee corpsee removed this from the Version 1.0.* (patch) milestone May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.