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. |