Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to give multiple language(english,french,etc.) selection in my website.
website include (images language conversion not happend).
pls provide solution except google tools.
Posted
Comments
Saraniraj 29-Oct-12 9:02am    
images are static content so cannot change...


content changes coding are



http://msdn.microsoft.com/en-us/library/ms227427.aspx

http://dreamdotnet.blogspot.com/2007/01/tutorial-translating-aspnet-web.html

You can use resx files for multiple language, and use the ResXResourceWrite for update it (if you want that users will be able to update the files: http://msdn.microsoft.com/en-us/library/system.resources.resxresourcewriter.aspx)

This solution is good only for static content, if you want to be able to translate content from the database (for example if you have products stored in your database, and you want that the description of the product will be multilingual too). In this case you'll need to change you DB Scheme in order to support multilingual content.

PS you can use GetLocalResourceObject("key") in order to retrieve values without using web controls.

If you're using MVC, see the following question: How to localize ASP.NET MVC application?


or


(google translate)



http://www.vsasp.net/apis/google-translate/

The following are some good references :

http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx[^]
http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx[^]

and for image files i hope it can be done using resource files.

WebResources.aspx.resx - The base resource file. This is the default (fallback) resource file
WebResources.aspx.ta-IN.resx - A resource file for tamil(India)
WebResources.aspx.en-US.resx - A resource file for english(USA)

The resource file contains key/value pairs. Each pair is an individual resource
Ex. key = Button1.Text and value = Verify for WebResources.aspx.en-US.resx file.
key = Button1.Text and value = சரி பார் for WebResources.aspx.ta-IN.resx file.

Like above, u can have two image files separately for two different culture.
 
Share this answer
 
You can use Content Management system(CMS)

one such good cms is episerver with lots of features
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900