Skip to content

Commit

Permalink
Dev Added missing translation to calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 23, 2024
1 parent 1649edf commit 8a9027d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/core/QuestionTypes/Date/RenderDate.php
Expand Up @@ -94,7 +94,7 @@ public function setMinDate()
$this->minDate = '{' . $this->getQuestionAttribute('date_min') . '}';
}
} else {
$this->minDate = '1900-01-01'; // Why 1900 ?
$this->minDate = '1900-01-01'; // We need some default value
}
}

Expand Down
Expand Up @@ -193,11 +193,9 @@ private function getLocalizationOptionsString()
$locale = $this->getValue('locale', $this->pluginOptions, 'en');
$tooltips = $this->getConvertedTempusOptions($this->getTranslatedTooltips());
foreach ($tooltips as $key => $tooltip) {
$localeScript .= " $key: '$tooltip',
";
$localeScript .= " $key: '$tooltip',\n";
}
$localeScript .= " dayViewHeaderFormat: { month: 'long', year: 'numeric' },
locale: '$locale'";
$localeScript .= " dayViewHeaderFormat: { month: 'long', year: 'numeric' },\nlocale: '$locale'";

return "{
$localeScript
Expand Down Expand Up @@ -399,6 +397,7 @@ private function getTranslatedTooltips()
'clear' => gT('Clear selection'),
'prevMonth' => gT('Previous month'),
'nextMonth' => gT('Next month'),
"selectMonth" => gT('Select month'),
'selectYear' => gT('Select year'),
'prevYear' => gT('Previous year'),
'nextYear' => gT('Next year'),
Expand Down

0 comments on commit 8a9027d

Please sign in to comment.