Answered by:
Multi Language Website

Question
-
User1654973284 posted
Hi friend,
How to create multilanguage web site
Friday, September 19, 2014 3:46 AM
Answers
-
User-760709272 posted
I googled your question and found these
http://code.msdn.microsoft.com/AspNet-Multilingual-WebSite-6db1ec9b
http://blog.lingohub.com/developers/2013/04/internationalization-i18n-in-net-mvc/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 19, 2014 3:59 AM -
User1176121428 posted
Hi rajusoft,
Thanks for your post.
Hi friend,
How to create multilanguage web site
Please following these steps:
Step 1: Create new a website project (I’m using VS2012 in this demo)
Step 2: Once your project created you need to add App_GlobalResources folder to your project.
This is an easy action. To create the folder, in Solution Explorer, just right-click the name of your Web site, click Add Folder, and then click App_GlobalResources folder. There can only be one of these folders in an application, and it must be located at the root of the application.
Step 3: After that, right-click on App_GlobalRrsources folder and select Resources File to create new files for additional languages. You can define the name for language files as the pattern “name.language-culture.resx”. In this demo I will define two files name as chienvh.language.resx (English) and chienvh.language.vi-vn.resx (Vietnamese).
Step 4: Open two resource files to define the name and value (notice leaving the names as a keys as the same in those files)
Step 5: Create new a class file with the name as BasePage.
In this file you will do the work to initialize the Culture, and then, hence, when you creating a new webpage then in the code-behind of that file you need to inherit from BasePage instead of default option as System.Web.UI.Page
Step 6: Create a new webpage with the name as Default.aspx, then open the code behind of this file and change inheritance from System.Web.UI.Page to BasePage.
Step 7: Use asp:Literal control to get data from resource files
More information:
#ASP.NET Website and C# with Multi-Language
http://www.codeproject.com/Tips/586948/ASP-NET-Website-and-Csharp-with-Multi-Language
#Create Multi-language ASP.NET Website
http://www.codeproject.com/Tips/644196/Create-Multi-language-ASP-NET-Website
Hope this can be helpful.
Best Regards,
Eileen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 22, 2014 9:22 PM
All replies
-
User-760709272 posted
I googled your question and found these
http://code.msdn.microsoft.com/AspNet-Multilingual-WebSite-6db1ec9b
http://blog.lingohub.com/developers/2013/04/internationalization-i18n-in-net-mvc/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 19, 2014 3:59 AM -
User1176121428 posted
Hi rajusoft,
Thanks for your post.
Hi friend,
How to create multilanguage web site
Please following these steps:
Step 1: Create new a website project (I’m using VS2012 in this demo)
Step 2: Once your project created you need to add App_GlobalResources folder to your project.
This is an easy action. To create the folder, in Solution Explorer, just right-click the name of your Web site, click Add Folder, and then click App_GlobalResources folder. There can only be one of these folders in an application, and it must be located at the root of the application.
Step 3: After that, right-click on App_GlobalRrsources folder and select Resources File to create new files for additional languages. You can define the name for language files as the pattern “name.language-culture.resx”. In this demo I will define two files name as chienvh.language.resx (English) and chienvh.language.vi-vn.resx (Vietnamese).
Step 4: Open two resource files to define the name and value (notice leaving the names as a keys as the same in those files)
Step 5: Create new a class file with the name as BasePage.
In this file you will do the work to initialize the Culture, and then, hence, when you creating a new webpage then in the code-behind of that file you need to inherit from BasePage instead of default option as System.Web.UI.Page
Step 6: Create a new webpage with the name as Default.aspx, then open the code behind of this file and change inheritance from System.Web.UI.Page to BasePage.
Step 7: Use asp:Literal control to get data from resource files
More information:
#ASP.NET Website and C# with Multi-Language
http://www.codeproject.com/Tips/586948/ASP-NET-Website-and-Csharp-with-Multi-Language
#Create Multi-language ASP.NET Website
http://www.codeproject.com/Tips/644196/Create-Multi-language-ASP-NET-Website
Hope this can be helpful.
Best Regards,
Eileen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 22, 2014 9:22 PM