Bootstrap OPAC: Alert banner can't be translated

Bug #1909142 reported by Terran McCanna
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Low
Unassigned

Bug Description

In 3.6 Bootstrap OPAC:

There's a new OPAC alert banner that is controlled in config.tt2 (ctx.maintenance_message) but there doesn't seem to be a way to add a translation that can be switched when the locale picker changes.

(As a workaround, the translation can be added in the same message string so that both show.)

Tags: i18n opac
tags: added: i18n
Eva Cerninakova (ece)
Changed in evergreen:
status: New → Confirmed
Revision history for this message
Linda Jansova (skolkova-s) wrote :

Looking at the code at https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/templates-bootstrap/opac/parts/config.tt2;h=7409a4b4ec44b9f24ecc0910f3999ccc9acba8e3;hb=HEAD (line 197), it seems to me that the string is still not marked for translation in the current code.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Marking the current string for translation won't be good enough because it is meant to be changed as the situation warrants.

Translating the alert message would require some additional code to detect the currently chosen language and a way for staff or an administrator to add translated versions of the alert message so that they can be picked appropriately.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

This came to me after hitting "Post Comment:"

As a bonus, it would be nice to make it changeable/displayable via the staff client, preferably with a permission to control it. This way, it would not require access to the web server to be able to update the message.

Revision history for this message
Terran McCanna (tmccanna) wrote :

Re comment #3 - there is a wish list for that at https://bugs.launchpad.net/evergreen/+bug/1903873

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.