From 0935cd55d35815779f7c7ece68c215cf26e613a7 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Tue, 22 Feb 2022 08:42:21 +0100 Subject: [PATCH] mark strings as translatable, fixes #698 --- app/controllers/search/module.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/search/module.php b/app/controllers/search/module.php index edede226fde..dd555e097c2 100644 --- a/app/controllers/search/module.php +++ b/app/controllers/search/module.php @@ -164,7 +164,7 @@ class Search_ModuleController extends MVVController $this->indexURL(['sterm' => $this->sterm, 'type' => 'Studiengang']), 'id' ); - $options = [0 => 'Alle']; + $options = [0 => _('Alle')]; if(!empty($drill_down['studiengaenge']['objects'])){ foreach ($drill_down['studiengaenge']['objects'] as $studiengang) { $options[$studiengang->studiengang_id] = $studiengang->name; @@ -180,7 +180,7 @@ class Search_ModuleController extends MVVController $this->indexURL(['sterm' => $this->sterm, 'type' => 'Fach']), 'id' ); - $options = [0 => 'Alle']; + $options = [0 => _('Alle')]; if(!empty($drill_down['faecher']['objects'])){ foreach ($drill_down['faecher']['objects'] as $fach) { $options[$fach->fach_id] = $fach->name; @@ -197,7 +197,6 @@ class Search_ModuleController extends MVVController 'id' ); $widget->class = 'institute-list'; - $options = [0 => 'Alle']; $widget->addElement(new SelectElement(0, _('Alle')), 'select-all'); if(!empty($drill_down['institutes']['objects'])){ foreach ($drill_down['institutes']['objects'] as $institut) { -- GitLab