Registration email to user for attention need to translate: (or any strings hidden etc)
Hello SadraTest, Your registration has been approved.
In order to complete the registration process we need to verify your email address, please click on or paste the following link in your browser address bar
https://www.reddick.co.uk/mvc/Account/RegisterConfirmation/tFelf_eEAP3kfOF3gdkhew2?usr=111 Sent from Snitz™ MVC Dev Site
Or...
Password Reset dialogues...
Hello Sadra,
A password reset was requested for this account, If you did not request the reset, please ignore this email and contact one of the forum Administrators.
If you do wish to reset your password, please use the link below to confirm the reset. Reset password : https://www.reddick.co.uk/mvc/Account/ResetPassword/?id=
Emails need to be manually translated, they are a one off translation, i.e. they are not user but Forum specific so you have to change the email templates themselves if you want to translate them.
They live in the views\emails
ALL users will get emails in the language you translate them into not in their selected language, so you may want to use dual language email. This is because emails are processed in the background by a custom job processor and know nothing about users
This is because emails are processed in the background by a custom job processor and know nothing about users
نوشته شده توسط HuwR
Can not recognize the required language from the user's cookie?
It might be good if some user features such as username, gender, language, and local time are stored in a cookie so that they can be used whenever needed.
No, the background processor does not interact with clients browser it is a totally separate process independent from the forum code, it just knows about the data required for the email.
I could add the users lang to the email object so the processor could deal with Multilanguage emails, but this is a biggish change as it would also require changes to the userprofile (lang is currently stored in cookie and would need adding to the members table in order to work (you can't read someone else's cookie if you send an email to them)) so not going to happen just yet.