I want a public class to display a different textbox label based on the language used on a page. For example if QueryString lang is english then the Display name should be "Email" elseif the lang if French the Display name should be "Courrier Electronique" etc etc...
Unfortunately I can't (or maybe I can!!) nest an if statement in a class to determine the language. How can I accomplish that?
string Language_qs = Convert.ToString(HttpContext.Current.Request.QueryString["lang"]);
public class LoginViewModel
{
[Required]
[Display(Name = "Email")]
[EmailAddress]
public string Email { get; set; }
}