Asp .Net Page with different languages
-
I am studyng Web pages which include some different languages, and one image which let to change from English to German and so on, and the new page appears automaticly in the chosen language, and thinking about how to get it I find two possible ways: 1) keep all the texts in different xml files and generate the page with the xml file associated to the language. 2) Creat a different page for every language and call the one selected. This are the ways I know and which I can solve the problem, but do you know if is there any other easier way of do it. Best Regards
-
I am studyng Web pages which include some different languages, and one image which let to change from English to German and so on, and the new page appears automaticly in the chosen language, and thinking about how to get it I find two possible ways: 1) keep all the texts in different xml files and generate the page with the xml file associated to the language. 2) Creat a different page for every language and call the one selected. This are the ways I know and which I can solve the problem, but do you know if is there any other easier way of do it. Best Regards
Yes, the first one is the exact thing to do. You need to use resource for all static text in your website, so that based on the culture or user you can reproduce the page. Also for database data, you need to store both, or you can use any translation tool like google translator, bing Translation api etc to dynamically translate those data when you display it on the web page. We generally dont store pages, rather we create reusable resources, which might be used in many web pages. You can read this article : http://www.beansoftware.com/asp.net-tutorials/globalisation-multilingual-cultureinfo.aspx[^] :rose:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
Visit My Website-->**