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
- Go to Language detection and selection (/en/admin/config/regional/language/detection)
- Enable
Account administration pagesoption and save. Make sure the new selection is at the top of the list so it gets considered first. - Edit your user profile and select French as the preferred UI language, save
- Run the
gcwebandgcweb_translationmigration 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wxt-bootstrap-change-footer-menu-labguage-3456827-2.patch | 4.07 KB | smulvih2 |
Comments
Comment #2
smulvih2With this patch, all footer menus should show in the same language as the content, regardless of language configuration.
Comment #3
sylus commentedI think this makes sense and your certainly closer to it then I have been
Committed and attributed!