View Single Post

  #1 (permalink)  
Old 11-04-2008, 12:53 AM
ziycon's Avatar
ziycon ziycon is offline
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 410
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default Multi-Language Site

I'm about to start work on a new project of mine and i want to build in the future functionality of multiple languages.

The way i have it in my head is that i would have a select field on every page with the different menu options and using AJAX, when a user changes the language on any page the new language will follow the user throughout the site until changed again.

Example:
The index.php page has a default of English so it loads with the en.php file which holds all site variables in English. Once the language has been changed the the session variable that was set to en.php by default will change to the new language French by putting the fr.php into the language session variable.

The problem is how do i refresh the page without reloading it completely. The reason being i cant see a way that the AJAX can reload all the page variables or am i wrong.
If i enclosed the whole site in a span would it refresh upon a new language being selected?

Any help appreciated as always.
Reply With Quote