Bug 38973

Summary: Calendar is not properly translated on OPAC
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: OPACAssignee: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 38973: Calendar is not properly translated on OPAC

Description Baptiste Wojtkowski (bwoj) 2025-01-27 12:44:07 UTC
In the OPAC, calender is not well translated as it is in the intranet
Comment 1 Baptiste Wojtkowski (bwoj) 2025-01-27 13:20:46 UTC
Created attachment 177195 [details] [review]
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
Comment 2 Owen Leonard 2025-01-27 15:01:59 UTC
calendar.js in the staff interface is a JS file, so it uses the double-underscore function ( __("Sun") ). calendar.inc is a Template Toolkit file so it should use a single underscore: _("Sun").
Comment 3 Baptiste Wojtkowski (bwoj) 2025-02-06 14:38:39 UTC
Are the translations resources also split between OPAC and Intranet ?
I can't manage to have the translation working with a single _
Comment 4 Katrin Fischer 2025-03-22 19:56:36 UTC
It should use a single underscore as it's a template file, not a script... and yes, different files for OPAC and staff translations.