strategy for multilinguage site
Posted: Sat Mar 28, 2009 2:14 pm
I am developing a multi-lingual site. User can click on any page on language button on top right of page which passes a $_GET variable back to program which will load appropriate language variables from language file and present page in appropriate language. I load language preference as a $_SESSION variable for future reference.
Now, when user changes languages, I send user back to default home page because I have lost previous parameters. I was wondering if there is a way that I can force current $_GET and $_POST values back into the page submit so that user will return to his current page, but in the new requested language... or maybe there is a better way of doing this.
I hope that I am expressing myself clearly.
Now, when user changes languages, I send user back to default home page because I have lost previous parameters. I was wondering if there is a way that I can force current $_GET and $_POST values back into the page submit so that user will return to his current page, but in the new requested language... or maybe there is a better way of doing this.
I hope that I am expressing myself clearly.