Bug 38973 - Calendar is not properly translated on OPAC
Summary: Calendar is not properly translated on OPAC
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Baptiste Wojtkowski (bwoj)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-27 12:44 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2025-03-22 19:56 UTC (History)
0 users

See Also:
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 (2.26 KB, patch)
2025-01-27 13:20 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.