Skip to content

Commit 0051c9f

Browse files
authored
Minor: Fix typo in locale description in a few commands (#286)
* Fix locale description in a few commands * Split use statements * Remove unused namespace and split namespaces
1 parent 6343e79 commit 0051c9f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Command/DeleteObsoleteCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
*/
2929
class DeleteObsoleteCommand extends Command
3030
{
31-
use BundleTrait, StorageTrait;
31+
use BundleTrait;
32+
use StorageTrait;
3233

3334
protected static $defaultName = 'translation:delete-obsolete';
3435

@@ -72,7 +73,7 @@ protected function configure()
7273
->setName(self::$defaultName)
7374
->setDescription('Delete all translations marked as obsolete.')
7475
->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
75-
->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', null)
76+
->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', null)
7677
->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want remove translations from.')
7778
;
7879
}

Command/DownloadCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
use Translation\Bundle\Service\CacheClearer;
2121
use Translation\Bundle\Service\ConfigurationManager;
2222
use Translation\Bundle\Service\StorageManager;
23-
use Translation\Bundle\Model\Configuration;
2423

2524
/**
2625
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
2726
*/
2827
class DownloadCommand extends Command
2928
{
30-
use BundleTrait, StorageTrait;
29+
use BundleTrait;
30+
use StorageTrait;
3131

3232
protected static $defaultName = 'translation:download';
3333

Command/ExtractCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function configure()
8989
->setName(self::$defaultName)
9090
->setDescription('Extract translations from source code.')
9191
->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
92-
->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false)
92+
->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false)
9393
->addOption('hide-errors', null, InputOption::VALUE_NONE, 'If we should print error or not')
9494
->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want extract translations from.')
9595
;

0 commit comments

Comments
 (0)