Remove remaining gettext functions

This commit is contained in:
Pierre Rudloff 2019-11-29 22:56:41 +01:00
parent d5fcb3475d
commit cc55fabe14
1 changed files with 4 additions and 3 deletions

View File

@ -151,13 +151,14 @@ class Config
{
$this->applyOptions($options);
$this->getEnv();
$localeManager = LocaleManager::getInstance();
if (empty($this->genericFormats)) {
// We don't put this in the class definition so it can be detected by xgettext.
$this->genericFormats = [
'best' => _('Best'),
'bestvideo+bestaudio' => _('Remux best video with best audio'),
'worst' => _('Worst'),
'best' => $localeManager->t('Best'),
'bestvideo+bestaudio' => $localeManager->t('Remux best video with best audio'),
'worst' => $localeManager->t('Worst'),
];
}