Umami changes the admin interface language based on the current page

Created on 13 June 2019, over 5 years ago
Updated 29 March 2024, 7 months ago

Problem/Motivation

If you are logged in to Umami as a user with English configured, the admin interface changes in to Spanish with no regard to your preferred language. And vice versa.

This is problematic as users will have a language they prefer to use for their admin interface, even if working on content in a different language. Changing this with content appears jarring, and may give the impression that is a limitation on Drupal's multilingual capability.

Proposed resolution

Change the configuration so that the admin interface uses the users' configured language, not the language of the content being viewed.
Ensure there are example users with obviously Spanish names who have Spanish as their configured language.
@ckrina has suggested:

  • Author: Gregorio Sรกnchez
  • Editor: Marรญa Garcรญa

Remaining tasks

All the things.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

๐Ÿ“Œ Task
Status

Fixed

Version

10.3 โœจ

Component
Umamiย  โ†’

Last updated 1 day ago

  • Maintained by
  • ๐Ÿ‡ฎ๐Ÿ‡ชIreland @markconroy
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @smaz
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @kjay
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States @shaal
Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom Eli-T Manchester

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

    The blocked was merged and released already, so let's see if patch still applies.

  • Status changed to Needs work 8 months ago
  • The Needs Review Queue Bot โ†’ tested this issue.

    While you are making the above changes, we recommend that you convert this patch to a merge request โ†’ . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

    Rerolled and converted to a MR.

  • Pipeline finished with Failed
    8 months ago
    #113364
  • Status changed to Needs work 8 months ago
  • The Needs Review Queue Bot โ†’ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide โ†’ to find step-by-step guides for working with issues.

  • Pipeline finished with Canceled
    8 months ago
    Total: 96s
    #113373
  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

    I've created the "spanish-speakers" author and editor. Had to fix the user creation logic a bit for allowing that. Thought about moving that info from hardcoded to a csv as we do with content, but probably overkill unless we need more custom data in the future.

  • Pipeline finished with Failed
    8 months ago
    #113376
  • Status changed to Needs work 8 months ago
  • The Needs Review Queue Bot โ†’ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide โ†’ to find step-by-step guides for working with issues.

  • Pipeline finished with Failed
    8 months ago
    Total: 481s
    #113396
  • Pipeline finished with Failed
    8 months ago
    Total: 623s
    #113409
  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ
  • Pipeline finished with Success
    8 months ago
    Total: 488s
    #113435
  • Status changed to Needs work 7 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Left a comment on MR.

    This feels like a bug though. Is it just Umami it's happening on or a bug with a core module? Believe we should have test coverage for the bug.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

    For the +Needs tests tag, I don't think we have that requirement on Umami.

  • Pipeline finished with Failed
    7 months ago
    Total: 214s
    #113891
  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

    @smustgrave

    This feels like a bug though. Is it just Umami it's happening on or a bug with a core module? Believe we should have test coverage for the bug.

    Not a bug, just different configuration defaults than standard profile. We want to demo in Umami that this is possible, but won't make sense to have that as default for e.g. the standard profile.

  • Pipeline finished with Success
    7 months ago
    Total: 615s
    #114038
  • Status changed to Needs review 7 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ
  • Status changed to RTBC 7 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    From slack sounds like @markconroy doesn't think this needs tests

  • Status changed to Fixed 7 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    @Berdir I agree that our language negotiation configuration form needs a lot of work but I don't think that should hold us back making umami a good example.

    Committed 0e6acad and pushed to 11.x. Thanks!
    Committed 1837cf5 and pushed to 10.3.x. Thanks!

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

Production build 0.71.5 2024