Bugzilla – Attachment 177195 Details for
Bug 38973
Calendar is not properly translated on OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38973: Calendar is not properly translated on OPAC
Bug-38973-Calendar-is-not-properly-translated-on-O.patch (text/plain), 2.26 KB, created by
Baptiste Wojtkowski (bwoj)
on 2025-01-27 13:20:46 UTC
(
hide
)
Description:
Bug 38973: Calendar is not properly translated on OPAC
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-01-27 13:20:46 UTC
Size:
2.26 KB
patch
obsolete
>From 78b4dba0a7161853b12003b6b67eabc5d0eac241 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Mon, 27 Jan 2025 14:14:07 +0100 >Subject: [PATCH] Bug 38973: Calendar is not properly translated on OPAC > >TEST PLAN: >1 - Activate PatronSelfRegistration and select a PatronSelfRegistrationDefaultCategory >2 - Have any language installed on which there is a properly translated calendar here https://your-intranet/cgi-bin/koha/members/memberentry.pl?op=add_form >3 - Notice the calendar here is not translated: https://your-opac/cgi-bin/koha/opac-memberentry.pl >4 - Apply patch >5 - Translate again >6 - Try again 3 and notice it now works >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >index edd8ba56..720e0a40 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >@@ -3,13 +3,13 @@ > [% USE raw %] > <script> > var flatpickr_weekdays = { >- shorthand: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], >- longhand: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ] >+ shorthand: [ __("Sun"), __("Mon"), __("Tue"), __("Wed"), __("Thu"), __("Fri"), __("Sat")], >+ longhand: [ __("Sunday"), __("Monday"), __("Tuesday"), __("Wednesday"), __("Thursday"), __("Friday"), __("Saturday") ] > }; > > var flatpickr_months = { >- shorthand: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], >- longhand: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] >+ shorthand: [ __("Jan"), __("Feb"), __("Mar"), __("Apr"), __("May"), __("Jun"), __("Jul"), __("Aug"), __("Sep"), __("Oct"), __("Nov"), __("Dec")], >+ longhand: [ __("January"), __("February"), __("March"), __("April"), __("May"), __("June"), __("July"), __("August"), __("September"), __("October"), __("November"), __("December")] > }; > var debug = "[% debug | html %]"; > var dateformat_pref = "[% Koha.Preference('dateformat') | html %]"; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38973
: 177195