-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
2.5, 3.5.9, 3.6.7, 3.7.3, 3.8, 4.1.2
-
MOODLE_25_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_401_STABLE
-
MDL-40699-UI-language-changes-when-logging-out-of-Moodle
-
-
3
-
4.0 holding pattern 4, 4.0 holding pattern 5
ISSUE SUMMARY
When you logout of Moodle, the site language reverts back to the default instead of being maintained when you log out. When you log in, the language may switch on you if your preferred langauge is different from the current language. This confuses users and, in cases of unilingual users, may cause them to be unable to understand the screen before them if the language changes unexpectedly. This makes it an accessibility issue for them, regardless of whether or not they have any disability.
DESIRED OUTCOME
When logging in or out, the UI language of the web site should be controlled by the user using the language toggle.
PROPOSED SOLUTION
In 2008, David Mudrák stated it well when he said "if you manually select the language at the front page, it will remain selected even after you log in, regardless your user profile, browser preferences and site default. This is the expected behaviour as manual selections should always have precedence". See https://moodle.org/mod/forum/discuss.php?d=105495 for context.
This is the most intuitive and expected behaviour from an end user's perspective.
Beginning with that, this is what I suggest:
or perhaps even better, more intuitive and simpler IMHO...
The last step, Store the language to the current session, should (optionally?) also include saving the setting to the user's profile unless you can think of a scenario where the user would actually want to set their preferred language to be different from the language of the UI.
The only thing missing from the diagram is when a course forces the language of the UI. That should override the session language but not change it (or whatever way it currently works).
The proposed solution above should not affect Moodle installations which are unilingual.
- links to