Skip to content

Commit

Permalink
WIP: festival: Allow translating lineup and timetable headers
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijskooijman committed Sep 2, 2020
1 parent a8cd575 commit 26d9fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/datatypes/festival.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ protected function lineupView(HyphaRequest $request) {
$this->html->find('#langList')->append(hypha_indexLanguages($this->pageListNode, $this->language, self::PATH_LINEUP));

$html = '';
$header = $this->getConfigElement(self::CONFIG_ID_LINEUP_HEADER);
$header = $this->getConfigElement(self::CONFIG_ID_LINEUP_HEADER, null, $this->language);
if ($header)
$html .= '<div class="header">' . $header->html() . '</div>';
foreach($this->getContributions() as $contribution) {
Expand Down Expand Up @@ -1042,7 +1042,7 @@ protected function timetableView(HyphaRequest $request) {
$locations = $this->getConfigElement(self::CONFIG_ID_LOCATIONS, self::CONFIG_TAG_LOCATIONS)->children();

$html = '';
$header = $this->getConfigElement(self::CONFIG_ID_TIMETABLE_HEADER);
$header = $this->getConfigElement(self::CONFIG_ID_TIMETABLE_HEADER, null, $this->language);
if ($header)
$html .= '<div class="header">' . $header->html() . '</div>';
// iterate over all dates
Expand Down

0 comments on commit 26d9fc0

Please sign in to comment.