Forum Moderators: open

Message Too Old, No Replies

chanage language of web page

chanage language web page

         

anibis

1:35 pm on Jan 27, 2004 (gmt 0)

10+ Year Member



Hello there,

Can any one help me how to change the language of any page.

I have some dynamic pages like asp files and the data comes from database.

What I need is to display the page content to diffrent languages.

Suppose user selects Germany and the page content changes to german language.

Can any one help in solving this issue?

With regards
Anirban

DrDoc

3:50 pm on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then, what you need to do is pass an argument to the page (for example, in the query string) telling it which language to use (for example
lang=de
). Of course, this requires that you have the necessary translations in your file already. Then, after parsing the query string, you can do something like:

if(lang=='de') {
// German text
}
else {
// default text
}