Nick Clemens
a6985d167e
Witht the changes in calendar.inc there can be a js error where the timepicker is not included. Moving the changes to timepicker.inc should resolve this Note: in previous patches the amnames/pmnames were removed. It is possible they had no effect because they were declared in two files, so I have left them in timepicker.inc Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
25 lines
935 B
PHP
25 lines
935 B
PHP
<!-- timepicker.inc -->
|
|
<script>
|
|
/* Localization of the timepicker plugin */
|
|
jQuery(function($){
|
|
$.timepicker.regional[''] = {
|
|
timeFormat: "[% IF Koha.Preference('TimeFormat') == '12hr' %]hh:mm TT[% ELSE %]HH:mm[% END %]",
|
|
currentText: _("Now"),
|
|
closeText: _("Done"),
|
|
amNames: [_("AM"), _("A")],
|
|
pmNames: [_("PM"), _("P")],
|
|
timeSuffix: "",
|
|
timeOnlyTitle: _("Choose time"),
|
|
timeText: _("Time"),
|
|
hourText: _("Hour"),
|
|
minuteText: _("Minute"),
|
|
secondText: _("Second"),
|
|
millisecText: _("Millisecond"),
|
|
microsecText: _("Microsecond"),
|
|
timezoneText: _("Time zone"),
|
|
[% IF ( bidi ) %] isRTL: true [% ELSE %] isRTL: false [% END %]
|
|
};
|
|
$.timepicker.setDefaults($.timepicker.regional['']);
|
|
});
|
|
</script>
|
|
<!-- / timepicker.inc -->
|