Hello to all experts
I have a very perplexing problem and would like to know if what I am trying to do is possible in PHP.
I have designed a website for a local Golf and Country Club and the client have requested the site to be made available in 5 different languages. Normally I would do it the old-school way and build a complete duplicate site in a separate directory using the second language and link between them but with 5 foreign languages, this would be a colossal effort.
So what I want to achieve is to duplicate the databases in each of the languages and then load the appropriate language that the user selects from a list.
This means that I need to be able to select the language by using one of 5 connection scripts and have all page in the site use the same connection script until another language is chosen and then all the pages use the new connections script.
I just can't seem to figure out how to accomplish this and I'm beginning to wonder if can even be done in PHP. Can anyone out there confirm if this can be done?
Please see the attach flowchart to see what I mean.
Thanks to all.