Old 03-03-2006, 17:51   #1 (permalink)
borislav j
Registered User
 
Join Date: Feb 2004
Location: los angeles
Posts: 1
Send a message via AIM to borislav j
WebSite in two languages

I am making website in two different languages (english and spanish). Can somebody tell me how to do this. I know I need to make two directories, but I don't know how?
Please help!
Thnx
  Reply With Quote
Old 04-03-2006, 16:23   #2 (permalink)
tobor
Senior Member
 
tobor's Avatar
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 162
your root directory would look like this

index.php
en <- folder for english stuff
sp <- folder for spanish stuff

index.php contents would check the headers for the accepted language. If it's English, forward the user to the 'en' directory. If it's Spanish, forward the user to the 'sp' folder.
And then add a session var, or cookie, indicating that this is their preferred language.
You can do this Javascript or ASP or ColdFusion, or whatever.
Also the index pages in the 'en' directory and the 'sp' directory should sepcify the proper character-set, in the meta-header, for those pages.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8