Skip to content
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

The helper "progress" is not defined when translate:cleanup #17

Open
ritterg opened this issue May 13, 2016 · 0 comments
Open

The helper "progress" is not defined when translate:cleanup #17

ritterg opened this issue May 13, 2016 · 0 comments

Comments

@ritterg
Copy link

ritterg commented May 13, 2016

When I try to clean up translations I get the error

[Symfony\Component\Console\Exception\InvalidArgumentException]
The helper "progress" is not defined.

There seems to be a problem with ProgressHelper (removed from Symfony)

The Progress Helper was deprecated in Symfony 2.5 and removed in Symfony 3.0. You should now use the Progress Bar instead which is more powerful.

A quick fix for me (in CleanUpCommand.php) was to include ProgressBar
use Symfony\Component\Console\Helper\ProgressBar;

replace line 64
$this->progress = $this->getHelperSet()->get('progress');
by
$this->progress = new ProgressBar($this->output, 50);
(Note: 50 is an arbitrary number, should be replaced by the real number of files)

and replace line 102
$this->progress->start($this->output, count($lines, COUNT_RECURSIVE));
by
$this->progress->start();

Only a quick fix, but maybe a starting point?

davidporos92 added a commit to davidporos92/laravel-translate that referenced this issue Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant