Multi-Language Support with CSS Style Switcher
Friday, July 14th, 2006Yesterday I ran into an issue with a client that wants multi-language support on their website. I had 2 things going for me when I started looking into this. 1) The client could create and update all of the languages and 2) A thought came out of nowhere to use a style sheet switcher to display and hide divs with the alternate content in it. I would not recommend hiding and displaying divs if your site is huge, but my client only has about 10 categories on their site and only a few paragraphs on each page. I began searching on the web and I found a style switcher on A List Apart. Sure, I could have coded it myself, but why waste my time doing that when Zeldman provides it for you? I already setup a sample page and it loaded quote fast. I will follow up with the final site once the project is complete. I also noticed that Dan Cederholm is using a switcher on his site for a different purpose, but it is evidence that he find them useful. My test case - mult-language support - is the first I have seen of its kind.
Update: The style sheet switcher worked great! You can view it at www.stewartmexico.com.
