The Speed of Going Local

      Comments Off on The Speed of Going Local

p. Localization is becoming more and more important for web designers and developers. It’s coming to a web site near you soon and you need to know how to do it and do it fast. And it isn’t only about swapping strings that you understand with ones you don’t, it is about doing it quickly and smoothly to give your site a global image.

p. “Pablo Hoch”: has done a little research into 3 methods of implementing localization using PHP and their relative speed impacts on your site. He shares his research with us in his blog entry “Benchmarking PHP Localization – Is gettext fast enough?”: The obligatory pull-quote says:

bq. I wrote a version using the “gettext PHP extension”: (“gettext Ext.”), one using “PHP-gettext”: (“gettext PHP”, a gettext implementation written in pure PHP) and a version that does not use gettext at all, instead it uses an array that contains all the translations (“String ID”).

p. Even though he used “Debian”: instead of “Gentoo”: as the testing platform, I believe his results are still valid. Since I don’t want to spoil it for you, I won’t tell you what method is the fastest, you’ll have to click the link to find out.