Skip to content

Commit

Permalink
hotfix: translation support for availaility table month names
Browse files Browse the repository at this point in the history
  • Loading branch information
chriwen committed Apr 25, 2021
1 parent 0540c77 commit e7c472f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/View/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ public static function renderTable($atts): string
$print .= "<tr><th colspan='2' class='sortless'>" . $desc . "</th><th class='sortless' colspan='" . $colspan . "'>";

if ($colspan > 1) {
$print .= strftime('%B') . "</th>";
$print .= date_i18n('F') . "</th>";
} else {
$print .= strftime('%b') . "</th>";
$print .= date_i18n('M'). "</th>";
}

if ($month_cols > 1) {
$month2 = strftime('%B', strtotime($days_dates[$days - 1]));
$month2 = date_i18n('F', strtotime($days_dates[$days - 1]));
} else {
$month2 = strftime('%b', strtotime($days_dates[$days - 1]));
$month2 = date_i18n('M', strtotime($days_dates[$days - 1]));
}

if ($colspan < $days) {
Expand Down

0 comments on commit e7c472f

Please sign in to comment.