Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Many languages?

Status
Not open for further replies.

NevG

Programmer
Oct 10, 2000
162
GB
Hi gang

does anyone know the easiest method of converting a web page content into several different languages?

I am contemplating going down the DLL' and database route unless I can find a better suggestion.

I dont really want to have a page for each language as this will amount to far too many pages.

Thanks for any help

Nev G
 
What I have done is have a link on the first page. Pass thru a query string a value that represents that language...set that to a session variable. If language is english, grab a text file that has all data in english...if german, grab that one, etc. there will be many if/else statements depending on the number of languages...or you can store the data in a db..i choose text files because they don't need to put a strain (if there will be one) on a database... hope that helps.

mike
 
nevg,

I should add something to my previous suggestion:
set up an array of languages instead of going thru a series of if/elses..loop thru the array. if the query string value matches one of the array elements, then set session variable that way. its less code and will give the same results.

mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top