Need ability to pick what displays for Preferred Language

Bug #1979348 reported by Jennifer Pringle
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

Evergreen 3.9
Chrome

The Bootstrap Preferred Language drop down (which goes with the localized A/Y templates) currently displays all locales in the drop down, regardless of whether you use them or not.

Currently the workaround is to delete other locales from the database (i18n_locale table I think). Ideally this table should instead have a flag that allows locales to be hidden in the OPAC.

Tags: i18n opac
Revision history for this message
Christine Morgan (cmorgan-z) wrote :

Agreed! Hiding unused and unhiding locales is much preferred over having to delete and re-add when necessary.

Changed in evergreen:
status: New → Confirmed
Revision history for this message
John Amundson (jamundson) wrote :

+1 to adding a flag.

We do not use translations in our setup, so it's confusing that "Preferred Language" displays at all, both in the OPAC and patron edit/registration.

If a flag is added, perhaps if all locales are set to hidden, the preferred language field could be hidden completely. Alternatively, a setting could control whether it displays. (I can open a new bug on this if needed.)

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

I think the field should only display if translations are enabled in the OPAC/Staff Client.

I *can* see uses for the field even when translations are not enabled, but given how the field uses the existing i18n/translation table, it makes sense to use the same settings, at least to me.

Revision history for this message
Rogan Hamby (rogan-hamby) wrote : Re: [Bug 1979348] Re: Need ability to pick what displays for Preferred Language

I agree that it would be intuitive to display none if no locales are
used. +1 to a flag

On Wed, Feb 8, 2023 at 3:40 PM Jason Stephenson <email address hidden>
wrote:

> I think the field should only display if translations are enabled in the
> OPAC/Staff Client.
>
> I *can* see uses for the field even when translations are not enabled,
> but given how the field uses the existing i18n/translation table, it
> makes sense to use the same settings, at least to me.
>
> --
> You received this bug notification because you are a member of Evergreen
> Bug Wranglers, which is subscribed to Evergreen.
> Matching subscriptions: evergreenbugs
> https://bugs.launchpad.net/bugs/1979348
>
> Title:
> Need ability to pick what displays for Preferred Language
>
> Status in Evergreen:
> Confirmed
>
> Bug description:
> Evergreen 3.9
> Chrome
>
> The Bootstrap Preferred Language drop down (which goes with the
> localized A/Y templates) currently displays all locales in the drop
> down, regardless of whether you use them or not.
>
> Currently the workaround is to delete other locales from the database
> (i18n_locale table I think). Ideally this table should instead have a
> flag that allows locales to be hidden in the OPAC.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/evergreen/+bug/1979348/+subscriptions
>
>

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.