Multi Language Site Creation Using MVC C# , ASP.NET Using Visual Studio 2013 – Kannada / Arabic / English

Scenario : You want to create an web application which supports multi language. Your site may contain models , form labels, hyper links which needs to be in the required language. We can also have a language switcher. Solution : Use Resource .resx xml file. Tools Required : Visual Studio 2013 Features: Extend as many number of Languages you want Form can be created with different language labels Link labels can be changed language switch option Easily editable Resource Files Create New Project Select Web ==> Asp.net MVC4 Web Application ==> Project Name :: Haneef Select Internet Application Right Click Project Name ==> Add New Folder ==> Name it as Resources Right Click Resources Folder which we created ==> Add New Item Select General Tab from left Hand Side  and Select Resources File from Right Side Name the new file as  LangText.Resx Now Enter the string Name and Value as shown below, Click Access Modifier as Public, Then Click Save All as shown Now Right Click LangText.Resx ==> Copy Paste to Same Folder Now Rename the Pasted File as LangText.Ar.Resx Now Edit the Content of Resx file to include Arabic Translations and Save. Now Again make a copy for Kannada […]

» Read more