|
-
September 21st, 2007, 06:09 AM
#1
multilanguage site
Hello all!
I want to construct a multi-language site. I have my data stored in a database and I wanted to know if there is a way of me knowing which language the user sees. Imagine having a little flag on top of the page and when tha users presses it, he/she will see the data in english or in german or in greek etc... How can I keep track of the language though? If, for example, tha user selects ENGLISH in index.html, and then browses through the entire site, how can I know in every page, that I must retrieve the english data from my database?
Thank you!
-
September 21st, 2007, 06:23 AM
#2
Re: multilanguage site
You could look into globalization and localization in ASP.NET. It uses resource files that are saved next to the aspx files that hold the strings for everything on a page. It uses the accept-language values of the browser to determine what language to show. Then you can just request data with the same language as the currently displayed language.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|