aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/search
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-02-22 08:42:21 +0100
committerJan-Hendrik Willms <tleilax+github@gmail.com>2022-02-22 08:42:21 +0100
commit0935cd55d35815779f7c7ece68c215cf26e613a7 (patch)
treedde8ad609e8bb14dfbbc88b461be21bf18df5a72 /app/controllers/search
parent3df90678612ab656fac5aaf0a09caabc296a8e98 (diff)
mark strings as translatable, fixes #698
Diffstat (limited to 'app/controllers/search')
-rw-r--r--app/controllers/search/module.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/search/module.php b/app/controllers/search/module.php
index edede22..dd555e0 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) {