2. Front-end: OnChangeLanguage event when user changes the language we can change his PreferredLanguageId too
I don't think it is a good idea to change an user setting without prompting him.
I thought, that if user changes website language, then he's better understands that new language, then old language he was using.
That's absolutely right. But as an user, I sometime change language to see something in another language, for example if the content isn't available in my lang, but only in primary one, or just to see how website looks in another language... Am I a weird front-end user? :)
1. All Email Events should rely on new PreferredLanguageId field for language selection.
Tags used in email to generate URL must add lang directory to URI
What you mean by:
- tags? In-Portal don't have any tag functionality in base installation.
- lang directory?
sorry, I meant things like <inp2:m_BaseUrl/>, <inp2:u_ConfirmPasswordLink no_amp="1"/>, specially this last one: as user have lost his password, he's not logged in, and in-portal can't redirect him to correct lang -or may lang redirect could happen if cookie is present, even for non logged-in users?
a. NULL value will indicate that we need to use Site Primary language for this User
I'd rather propose that default value in drop-down and in DB is primary lang. Two reason for this:
- isn't easier to rely on the field, instead of guessing that we need to use primary lang, because the field is empty? This field should be authoritative in all cases, from my point of view
- from user view point; having a blank field for Preffered language, while he receive emails in a language, isn't coherent
Since this field isn't required, then having empty default value is absolutely natural. From user view point empty communication language would mean - "I don't care what language you use to communicate". Also after user registration that communication field is filled automatically from current website language. Then this field isn't really empty one, when user see it for the first time.
if it's filled when user is registering, then it can' be empty when user see it :) I'd just think it's strange to have a first blank value in drop-down.
You select the group you want to mail, and you create your text. You have a new ML drop-down field in top right corner, and you can switch to another lang and start writing in this language. When mails are sent, if user's preffered lang match an available lang in email begin sent, then send it using this lang.
Too complicated really. Even professional mailing systems doesn't have this. For example ActiveCampaign.
Then how to mail an user group, and targetting users of the same language? It's sad if ML features aren't deployed everywhere, and specially about Preffered lang, I think it's very important for emailing. Without a way to sort users by lang for emailing, it means that every website which send newsletter would need to export users DB and filter them, each time they need to send an email campaign.