https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29588
Bug ID: 29588
Summary: Yesterday and tomorrow in datepicker don't translate
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: I18N/L10N
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Depends on: 29478
Tomorrow, Yesterday and or in the new Flatpickr datepicker don't translate.
Today does, I am not sure why. I think it should be either only one underscore
in an .inc file or it's something else. I tried updating the po files locally,
but the strings didn't show up.
++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc
@@ -34,6 +34,7 @@
<!-- / calendar.inc -->
[% Asset.js("js/calendar.js") | $raw %]
[% Asset.js("lib/flatpickr/flatpickr.min.js") | $raw %]
+[% Asset.js("lib/flatpickr/shortcut-buttons-flatpickr.min.js") | $raw %]
<script>
flatpickr.l10ns.default.weekdays = flatpickr_weekdays;
flatpickr.l10ns.default.months = flatpickr_months;
@@ -84,6 +85,38 @@
$(on_close_focus).focus();
}
},
+ plugins: [
+ ShortcutButtonsPlugin({
+ button: [
+ {
+ label: __("Yesterday")
+ },
+ {
+ label: __("Today")
+ },
+ {
+ label: __("Tomorrow")
+ }
+ ],
+ label: "or",
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29478
[Bug 29478] flatpickr misses quick shortcut to "Today" date
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/