Add locale support to extract-strings console

- Remove reliance on available locales setting
- Add reliance on translation path setting
- Only create a new translation when a single language is provided
- Remove debug comments
This commit is contained in:
Hypolite Petovan 2018-11-18 11:35:04 -05:00
commit 0c3013adeb
2 changed files with 11 additions and 24 deletions

View file

@ -10,7 +10,7 @@ class ExtractStrings extends BaseRoute
public function __invoke(array $args)
{
return (new \Friendica\Directory\Controllers\Console\ExtractStrings(
$this->container->get('settings')['i18n']['locales'],
$this->container->get('settings')['i18n']['path'],
$args
));
}