added german date format for ticks in calender view + corresponding translation

This commit is contained in:
Christian Kleinbach 2020-04-23 12:03:15 +02:00 committed by Igor Scheller
parent 386814805a
commit e4712658a4
2 changed files with 7 additions and 2 deletions

View File

@ -222,14 +222,14 @@ class ShiftCalendarRenderer
return div('tick day'); return div('tick day');
} }
return div('tick day', [ return div('tick day', [
date('m-d<b\r />H:i', $time) date(__('m-d'), $time) .'<br>'.date(__('H:i'), $time)
]); ]);
} elseif ($time % (60 * 60) == 0) { } elseif ($time % (60 * 60) == 0) {
if (!$label) { if (!$label) {
return div('tick hour'); return div('tick hour');
} }
return div('tick hour', [ return div('tick hour', [
date('m-d<b\r />H:i', $time) date(__('m-d'), $time) .'<br>'.date(__('H:i'), $time)
]); ]);
} }
return div('tick'); return div('tick');

View File

@ -2280,6 +2280,11 @@ msgstr "noch nicht"
msgid "Become %s" msgid "Become %s"
msgstr "Werde ein %s" msgstr "Werde ein %s"
#: includes/view/ShiftCalenderRenderer.php:225
#: includes/view/ShiftCalenderRenderer.php:232
msgid "m-d"
msgstr "d.m."
#: includes/view/ShiftEntry_view.php:18 #: includes/view/ShiftEntry_view.php:18
#, php-format #, php-format
msgid "Do you want to sign off %s from shift %s from %s to %s as %s?" msgid "Do you want to sign off %s from shift %s from %s to %s as %s?"