d gj

d gj

  • NA
  • 64
  • 2.7k

Multilanguage .NET cms

Aug 8 2017 4:08 AM
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 :
  1. public int Id { getset; }  
  2. public string Content { getset; }  
  3. public string Ctl { getset; }  
  4. public Nullable PublishDate { getset; }  
  5. public Nullable ExpiryDate { getset; }  
  6. public Nullable Exclude { getset; }  
  7. public string Title1 { getset; }  
  8. public string Title2 { getset; }  
  9. public string Title3 { getset; }  
  10. public string Title4 { getset; }  
  11. public string Title5 { getset; }  
  12. [AllowHtml]  
  13.   
  14. public string ShortDescription1 { getset; }  
  15. [AllowHtml]  
  16.   
  17. public string ShortDescription2 { getset; }  
  18. [AllowHtml]  
  19.   
  20. public string ShortDescription3 { getset; }  
  21. [AllowHtml]  
  22.   
  23. public string ShortDescription4 { getset; }  
  24. [AllowHtml]  
  25.   
  26. public string ShortDescription5 { getset; }  
  27. [AllowHtml]  
  28.   
  29. public string LongDescription1 { getset; }  
  30. [AllowHtml]  
  31.   
  32. public string LongDescription2 { getset; }  
  33. [AllowHtml]  
  34.   
  35. public string LongDescription3 { getset; }  
  36. [AllowHtml]  
  37.   
  38. public string LongDescription4 { getset; }  
  39. [AllowHtml]  
  40.   
  41. public string LongDescription5 { getset; }  
  42. public Nullable InsertDate { getset; }  
  43. public string InsertBy { getset; }  
  44. public int OrderBy { getset; }  
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.

Answers (4)