New labels from 22 Oct

Snitz™ .NET Core
https://www.reddick.co.uk/mvc/Topic/Posts/4855?pagenum=1
Jul 01, 2025 20:34

Topic


sadra
New labels from 22 Oct
Oct 22, 2018 04:33


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=blackeyeblackeyeblackeyeblackeye

 

Replies ...


sadra
10/22/2018 3:38:55 AM..ToLocalTime().ToForumDisplay()


Registration forms:

sadra
10/22/2018 4:56:51 AM..ToLocalTime().ToForumDisplay()


sadra
10/22/2018 7:12:38 AM..ToLocalTime().ToForumDisplay()


Blog Strings:
HuwR
10/22/2018 1:46:30 PM..ToLocalTime().ToForumDisplay()


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
sadra
10/23/2018 4:38:46 AM..ToLocalTime().ToForumDisplay()


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.
HuwR
10/23/2018 11:31:24 AM..ToLocalTime().ToForumDisplay()


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.
sadra
11/2/2018 12:00:57 PM..ToLocalTime().ToForumDisplay()


ok
HuwR
11/2/2018 1:10:59 PM..ToLocalTime().ToForumDisplay()


May be able to do this when I release the userfields mod, will look into it.
sadra
11/3/2018 3:50:30 AM..ToLocalTime().ToForumDisplay()


thumbsUp
© 2016-2025 Snitz™ Forums MVC