User language preference is ignored when the default site language is the same as the selected one in the user account

Created on 9 November 2017, about 7 years ago
Updated 1 May 2023, over 1 year ago

User language preference is ignored when the default site language is the same as the selected one in the user account.

I want to keep English as the default site language but French selected as the fall back language in . I want this mainly to avoid some Drush messages to appear in French. With this settings all the site interface is translated to French. Fine.

But I want the site in English for the administrator. Then I enabled the User detection method and set English for the user admin account. This setting is ignored, the site still in French for the admin user.

Steps to reproduce:

  • Install new site with standard profile
  • Enable Interface translation module
  • Add a new language (French in this case)
  • Keep english as default language
  • In language Detection and selection page enable only User and Selected language detection methods
  • Select French in Selected language configuration page
  • Edit your admin account and select English in Site language

Site still in French while you're logging in with English language selected as your preference.

This doesn't happen if the site default language is other than English.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
Language systemΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡ͺπŸ‡ΈSpain jmsosso

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Tried replicating in 10.1 following the steps in the issue summary but could not replicate the issue. Are there additional steps to trigger this now? If no one else can replicate probably can be closed out.

  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡ΉπŸ‡ΌTaiwan g-brodiei

    Followed the steps from summary with screenshots, and can't reproduce this issue as well.
    Closing this bug as cannot reproduce, if OP may be able to reproduce, please reopen this issue and update the reproduce steps, thanks!

    1. Install new site with standard profile [Success, I choose 10.0.8 and 9.5.8]
    2. Enable Interface translation module [automatically installs dependency language module]
    3. Add a new language (French in this case) [same]
    4. Keep english as default language [same]
    5. In language Detection and selection page enable only User and Selected language detection methods [same]
    6. Select French in Selected language configuration page [same]
    7. Edit your admin account and select English in Site language [same]

    Final result:
    P.S. The screen shot was taken after I finished the config setup with admin logged in. So the interface appears in English.

    Logged in as admin, displays English interface:

    Logged out viewing as anon, displays French interface:

Production build 0.71.5 2024