-
Type: Feature Request
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.1.1-RC1
-
Fix Version/s: 5.2.0-B1
-
Component/s: Localization
-
Labels:None
-
External issue URL:
-
Additional information:
-
Change Log Message:New functionality to specify preferred Language for User
-
Story Points:1
-
External issue ID:929
-
Copy Issue Key:
-
Patch Instructions:
We need to create a functionality to remember User Preferred Language and then being able to apply it to Email Event sending and auto-loading User Language on Login.
For that we should ad a NEW User field called PreferredLanguageId (default NULL) and store there user Language selection (option formatter).
The value in this field can changed in 3 places:
1. Front-end: Drop-down with currently available Languages (need to count in SiteDomain options) on User Profile form - user can select and save.
2. Front-end: OnChangeLanguage event when user changes the language we can change his PreferredLanguageId too.
3. Admin: when Admin can edit users profile.
[B]APPLICATIONS:[/B]
1. All Email Events should rely on new PreferredLanguageId field for language selection.
2. Automatically Load users language (do redirect if needed) on Login if
currently loaded and preferred languages are different.
[B]NOTES:[/B]
a. NULL value will indicate that we need to use Site Primary language for this User.
b. in case if user (or Admin) has selected the Preferred Language which was disabled or removed (ID is not matching) or it's not in the list of available for current SiteDomain - system should automatically default to Front-end Primary language.