Stop using grunt and use grumphp and robo instead

This commit is contained in:
Pierre Rudloff 2019-11-30 16:33:39 +01:00
parent b7fc304375
commit 2f3ab77e8b
16 changed files with 1590 additions and 2430 deletions

View file

@ -9,7 +9,7 @@ namespace Alltube;
use Aura\Session\Segment;
use Symfony\Component\Process\Process;
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\MoFileLoader;
use Symfony\Component\Translation\Loader\PoFileLoader;
/**
* Class used to manage locales.
@ -72,11 +72,11 @@ class LocaleManager
$this->setLocale(new Locale($cookieLocale));
}
$this->translator->addLoader('gettext', new MoFileLoader());
$this->translator->addLoader('gettext', new PoFileLoader());
foreach ($this->getSupportedLocales() as $locale) {
$this->translator->addResource(
'gettext',
__DIR__ . '/../i18n/' . $locale->getIso15897() . '/LC_MESSAGES/Alltube.mo',
__DIR__ . '/../i18n/' . $locale->getIso15897() . '/LC_MESSAGES/Alltube.po',
$locale->getIso15897()
);
}