Skip to content

Commit

Permalink
Bulk updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Oct 17, 2023
1 parent e9551fe commit ba976f7
Show file tree
Hide file tree
Showing 11 changed files with 829 additions and 319 deletions.
7 changes: 5 additions & 2 deletions src/Console/Command/ApplicationChecker/TranslatorChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace ArrayAccess\TrayDigita\Console\Command\ApplicationChecker;

use ArrayAccess\TrayDigita\Console\Command\Traits\WriterHelperTrait;
use ArrayAccess\TrayDigita\L10n\Languages\Locale;
use ArrayAccess\TrayDigita\L10n\Translations\Interfaces\TranslatorInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -83,12 +84,14 @@ public function check(InputInterface $input, OutputInterface $output): int
);
}

$localeInfo = Locale::getInfo($translator->getLanguage());
$this->writeIndent(
$output,
sprintf(
'<info>%s</info> [<comment>%s</comment>]',
'<info>%s</info> [<comment>%s</comment>]%s',
$this->translateContext('Current Language', 'console'),
$translator->getLanguage()
$translator->getLanguage(),
$localeInfo ? sprintf(' (<info>%s</info>)', $localeInfo['name']) : ''
),
OutputInterface::VERBOSITY_VERBOSE
);
Expand Down
Loading

0 comments on commit ba976f7

Please sign in to comment.