Posted on 2011-05-11
I want to create a Spanish version of my site. I have an idea how to do this but, being new to PHP, I thought I would see if perhaps I'm missing something, or there is a better way.
My thought is to drop the English version I have down into an English Folder and create a Spanish folder at the same level.
The site top index file will default and jump into the English folder. The user can switch languages, which will write a language cookie to his browser and use header() to switch to the other folder.
The top index file will look for a language cookie coming from the user and use it to jump into one folder or the other, so a user returning to the site will immediately see the language they selected the last time they visited the site.
I know there are language packages that can express various phrases in multiple languages, but I want a complete translation of the site into Spanish - everything: testimonials, articles, image text - everything.
Thanks for any suggestions.