mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-05 14:33:49 +09:00
Update dependencies
This commit is contained in:
@@ -20,6 +20,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Symfony\Component\Translation\Provider\FilteringProvider;
|
||||
use Symfony\Component\Translation\Provider\TranslationProviderCollection;
|
||||
use Symfony\Component\Translation\Reader\TranslationReaderInterface;
|
||||
use Symfony\Component\Translation\TranslatorBag;
|
||||
@@ -130,6 +131,12 @@ EOF
|
||||
$force = $input->getOption('force');
|
||||
$deleteMissing = $input->getOption('delete-missing');
|
||||
|
||||
if (!$domains && $provider instanceof FilteringProvider) {
|
||||
$domains = $provider->getDomains();
|
||||
}
|
||||
|
||||
// Reading local translations must be done after retrieving the domains from the provider
|
||||
// in order to manage only translations from configured domains
|
||||
$localTranslations = $this->readLocalTranslations($locales, $domains, $this->transPaths);
|
||||
|
||||
if (!$domains) {
|
||||
|
||||
0
vendor/symfony/translation/DataCollector/TranslationDataCollector.php
vendored
Executable file → Normal file
0
vendor/symfony/translation/DataCollector/TranslationDataCollector.php
vendored
Executable file → Normal file
@@ -54,6 +54,7 @@
|
||||
"en_MS": "en_001",
|
||||
"en_MT": "en_001",
|
||||
"en_MU": "en_001",
|
||||
"en_MV": "en_001",
|
||||
"en_MW": "en_001",
|
||||
"en_MY": "en_001",
|
||||
"en_NA": "en_001",
|
||||
@@ -116,6 +117,8 @@
|
||||
"es_UY": "es_419",
|
||||
"es_VE": "es_419",
|
||||
"ff_Adlm": "root",
|
||||
"hi_Latn": "en_IN",
|
||||
"ks_Deva": "root",
|
||||
"nb": "no",
|
||||
"nn": "no",
|
||||
"pa_Arab": "root",
|
||||
|
||||
5
vendor/symfony/translation/TranslatorBag.php
vendored
5
vendor/symfony/translation/TranslatorBag.php
vendored
@@ -94,7 +94,10 @@ final class TranslatorBag implements TranslatorBagInterface
|
||||
$obsoleteCatalogue = new MessageCatalogue($locale);
|
||||
|
||||
foreach ($operation->getDomains() as $domain) {
|
||||
$obsoleteCatalogue->add($operation->getObsoleteMessages($domain), $domain);
|
||||
$obsoleteCatalogue->add(
|
||||
array_diff($operation->getMessages($domain), $operation->getNewMessages($domain)),
|
||||
$domain
|
||||
);
|
||||
}
|
||||
|
||||
$diff->addCatalogue($obsoleteCatalogue);
|
||||
|
||||
Reference in New Issue
Block a user