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