Archive for the 'PHP' Category

Benchmarking PHP Localization – Is gettext fast enough?

Monday, April 10th, 2006

Last year, I wrote a post about using gettext to localize PHP web pages. Gettext makes it easy to maintain the translations and always provides a fallback locale. But is it fast? I created a simple web page to compare the performance of various localization methods for PHP. It only contains 3 localized strings and […]

Localizing PHP web sites using gettext

Saturday, August 6th, 2005

Developing multi language web sites using PHP is actually very easy. A common approach is having an include file for every supported language which contains an array that maps string ids to localized text (for example “WelcomeText” => “Welcome to our homepage.” would be included using something like <?= $strings["WelcomeText"] >). However there are several […]