Skip to content
Snippets Groups Projects
Commit a82c95a8 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

mark strings as translatable, fixes #698

parent 0a45ff76
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ class Search_ModuleController extends MVVController ...@@ -164,7 +164,7 @@ class Search_ModuleController extends MVVController
$this->indexURL(['sterm' => $this->sterm, 'type' => 'Studiengang']), $this->indexURL(['sterm' => $this->sterm, 'type' => 'Studiengang']),
'id' 'id'
); );
$options = [0 => 'Alle']; $options = [0 => _('Alle')];
if(!empty($drill_down['studiengaenge']['objects'])){ if(!empty($drill_down['studiengaenge']['objects'])){
foreach ($drill_down['studiengaenge']['objects'] as $studiengang) { foreach ($drill_down['studiengaenge']['objects'] as $studiengang) {
$options[$studiengang->studiengang_id] = $studiengang->name; $options[$studiengang->studiengang_id] = $studiengang->name;
...@@ -180,7 +180,7 @@ class Search_ModuleController extends MVVController ...@@ -180,7 +180,7 @@ class Search_ModuleController extends MVVController
$this->indexURL(['sterm' => $this->sterm, 'type' => 'Fach']), $this->indexURL(['sterm' => $this->sterm, 'type' => 'Fach']),
'id' 'id'
); );
$options = [0 => 'Alle']; $options = [0 => _('Alle')];
if(!empty($drill_down['faecher']['objects'])){ if(!empty($drill_down['faecher']['objects'])){
foreach ($drill_down['faecher']['objects'] as $fach) { foreach ($drill_down['faecher']['objects'] as $fach) {
$options[$fach->fach_id] = $fach->name; $options[$fach->fach_id] = $fach->name;
...@@ -197,7 +197,6 @@ class Search_ModuleController extends MVVController ...@@ -197,7 +197,6 @@ class Search_ModuleController extends MVVController
'id' 'id'
); );
$widget->class = 'institute-list'; $widget->class = 'institute-list';
$options = [0 => 'Alle'];
$widget->addElement(new SelectElement(0, _('Alle')), 'select-all'); $widget->addElement(new SelectElement(0, _('Alle')), 'select-all');
if(!empty($drill_down['institutes']['objects'])){ if(!empty($drill_down['institutes']['objects'])){
foreach ($drill_down['institutes']['objects'] as $institut) { foreach ($drill_down['institutes']['objects'] as $institut) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment