I am building a simple CMS in ASP.NET MVC. Can anyone provide me any help how to do it as multi language site, link or tutorial, to change the language in server side, I post news in that cms, so when I press English, it should show me the text in English, Spanish and so on..
So this is the model class :
- public int Id { get; set; }
- public string Content { get; set; }
- public string Ctl { get; set; }
- public Nullable PublishDate { get; set; }
- public Nullable ExpiryDate { get; set; }
- public Nullable Exclude { get; set; }
- public string Title1 { get; set; }
- public string Title2 { get; set; }
- public string Title3 { get; set; }
- public string Title4 { get; set; }
- public string Title5 { get; set; }
- [AllowHtml]
-
- public string ShortDescription1 { get; set; }
- [AllowHtml]
-
- public string ShortDescription2 { get; set; }
- [AllowHtml]
-
- public string ShortDescription3 { get; set; }
- [AllowHtml]
-
- public string ShortDescription4 { get; set; }
- [AllowHtml]
-
- public string ShortDescription5 { get; set; }
- [AllowHtml]
-
- public string LongDescription1 { get; set; }
- [AllowHtml]
-
- public string LongDescription2 { get; set; }
- [AllowHtml]
-
- public string LongDescription3 { get; set; }
- [AllowHtml]
-
- public string LongDescription4 { get; set; }
- [AllowHtml]
-
- public string LongDescription5 { get; set; }
- public Nullable InsertDate { get; set; }
- public string InsertBy { get; set; }
- public int OrderBy { get; set; }
I want to make such a cms that when I press English, it shows me the news from database in English, I want to support 5 languages, that's why I created 5 titles fields, 5 long and short descriptions and so on.