Problem/Motivation

I have a Canada.ca site where there is a requirement for the user to set their preferred UI language. For example, if I am a French user, I can change my UI language to French, then when I edit content in English I can see the field names and UI elements in French.

What I notice is, if I set my UI language to French, the footer menus are always French. This is incorrect. Since these menus are only on the forward-facing theme (wxt_bootstrap or extension) they should act as content and follow the language of the page.

Steps to reproduce

  1. Go to Language detection and selection (/en/admin/config/regional/language/detection)
  2. Enable Account administration pages option and save. Make sure the new selection is at the top of the list so it gets considered first.
  3. Edit your user profile and select French as the preferred UI language, save
  4. Run the gcweb and gcweb_translation migration groups.

Now when you toggle the home page between English and French, you can see the footer menus (and branch menu) are always in French.

Proposed resolution

Change the visibility condition of these blocks in wxt_bootstrap config to use content language detection instead of UI.

Comments

smulvih2 created an issue. See original summary.

smulvih2’s picture

Status: Active » Needs review
StatusFileSize
new4.07 KB

With this patch, all footer menus should show in the same language as the content, regardless of language configuration.

sylus’s picture

Status: Needs review » Fixed

I think this makes sense and your certainly closer to it then I have been

Committed and attributed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.