Summary: | Calendar is not properly translated on OPAC | ||
---|---|---|---|
Product: | Koha | Reporter: | Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski> |
Component: | OPAC | Assignee: | 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
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 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"). Are the translations resources also split between OPAC and Intranet ? I can't manage to have the translation working with a single _ It should use a single underscore as it's a template file, not a script... and yes, different files for OPAC and staff translations. |