Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevArticles:
Localizing Your Website
Jul 14, 2003 @ 12:23:47

If you've been looking for an extremely simple way to get a bit of localization into your site, but didn't know how to start, then this new piece from DevArticles might just be for you.

Simple Localisation with PHP just uses a simple cookie/session system to record which language they have chosen and replace the strings accordingly. It allows you to set a default as well as add any language that you'd like, but, unfortunately, you will have to do all of the translations yourself.

While this is a simple way to get the job done on a smaller site, it's not a very good solution for something (like this site) that is very text heavy. There are some other options for translation like that, but they're not nearly as easy to implement.

tagged:

Link:


Trending Topics: