mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #16120
[Bug 1266320] Re: Feature request: Institution-specific default languages
It sounds simple enough, but it turns out there are some weird corner
cases, the most obvious of which is if a user belongs to multiple
institutions that specify languages. Here is how I have implemented it,
which I think is the most straightforward way:
1. The institution's language setting doesn't show up unless there are
at least two languages installed in the site (the same as the user's
language setting)
2. Each institution can set a language for their users, or they can
leave it on "site default".
3. If a user belongs to multiple institutions that specify a language,
then we arbitrarily use the language from the "first" institution. This
is an okay solution because the language is *only* a default. If the
user ever chooses a specific language, either via their account settings
or the pre-login language menu, existing code ensures that will override
the default henceforth.
4. The existing system is that the user's language account preference
can be a specific language, or it can be the string "default" (or NULL),
in which case you use the site default. This remains true, except now,
if you choose "default" we use your institution default if you have one,
and otherwise we use the site default.
5. In the user language menu, if your default is an institution language
then we say "<institution display name> (English)" instead of "Site
default (English)".
The wonky things about this are: 1) arbitrarily picking one language if
you belong to multiple institutions that specify languages; 2) if you
switch between institutions with different selected languages, your
displayed language will change even though you didn't manually change it
(but that's kind of the point); 3) if you switch institutions with
different languages, the value you see selected in the user language
menu will be different even though you didn't change it, i.e. it can
change from "UNR (English)" to "Site default (English)". But I believe
those are acceptable design compromises that won't cause too much user
confusion.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1266320
Title:
Feature request: Institution-specific default languages
Status in Mahara ePortfolio:
In Progress
Bug description:
This feature would allow an institution to specify the default
language for its users.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1266320/+subscriptions
References