I want to do a site with suport for more languages, just like it is here on this site.I got some questions about this i just need to clarify before i start working with it.
1. I seen some tutorials about Globalization and Localization and they use .resx to get the different texts from. Now i guess that is for lets say the headers, menus and so on, im i right? not body text e.i a blog post.
2. How can i do/how do i do to get e.i text from a database depending on the lang? e.i presentation text is in 3 langs..
Tips, articles, examples or explinations is welcome
Thanks in advance
Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution.
Answer for your first query is, whenever we are localizaing an application all text which displayed to the user should come from resx file or database. If your application takes input from user then, it should allow user to type in his/her own language.
For your second query, if you are using database instead of resx file, then all the text should be stored in key- value pair form similar to resx file's key-value pair. Then fetch the data and put it in aplication. Refere below link for more information.
Jedi302
Member
210 Points
184 Posts
Language change on site database - just a push in the right direction
Nov 05, 2009 12:35 PM|LINK
Hi.
I want to do a site with suport for more languages, just like it is here on this site.I got some questions about this i just need to clarify before i start working with it.
1. I seen some tutorials about Globalization and Localization and they use .resx to get the different texts from. Now i guess that is for lets say the headers, menus and so on, im i right? not body text e.i a blog post.
2. How can i do/how do i do to get e.i text from a database depending on the lang? e.i presentation text is in 3 langs..
Tips, articles, examples or explinations is welcome
Thanks in advance
sayyazahmad
Member
469 Points
92 Posts
Re: Language change on site database - just a push in the right direction
Nov 05, 2009 11:26 PM|LINK
The contents can be translated to any language by Google Translation API.
leena.d.pati...
Member
430 Points
79 Posts
Re: Language change on site database - just a push in the right direction
Nov 06, 2009 02:43 AM|LINK
Hi,
Answer for your first query is, whenever we are localizaing an application all text which displayed to the user should come from resx file or database. If your application takes input from user then, it should allow user to type in his/her own language.
Please refer below link for more information-
http://msdn.microsoft.com/en-us/goglobal/bb688110.aspx
For your second query, if you are using database instead of resx file, then all the text should be stored in key- value pair form similar to resx file's key-value pair. Then fetch the data and put it in aplication. Refere below link for more information.
http://msdn.microsoft.com/en-us/library/aa479334.aspx
Hope this will give you a quite fair idea :)
Leena
Please remember to mark replies as answers if you find them useful.
Jedi302
Member
210 Points
184 Posts
Re: Language change on site database - just a push in the right direction
Nov 09, 2009 11:37 AM|LINK
thanks leena.d.patil. the information was pretty good.. i get the idea now i just have to execute it :)
any code examples is appriciated
leena.d.pati...
Member
430 Points
79 Posts
Re: Language change on site database - just a push in the right direction
Nov 10, 2009 02:22 AM|LINK
Hi,
Refer below link-
http://msdn.microsoft.com/en-us/library/ms227982.aspx
It contains code samples for fetching values from '.resx' file.
Leena
Please remember to mark replies as answers if you find them useful.