I'm looking for a good way to internationalize an PHP application. My conclusions so far, is that I'll not use gettext
(keeps failing randomly, bad implementation of cache with lighttpd
I guess) and Zend
is not a option to me.
I'm very interested in the PHP internationalization functions introduced in PHP 5.3. But I'm not so sure if it's the tool for the job. I didn't find any article about using this guys for app localization, but it seems that a BundleResource is exactly what I want.
Can someone here confirm with it's the way to go and how to organize/create/populate/use a resource bundle? The official documentation is too superficial (eg ResourceBundle::create) or I'm missing something here.
Otherwise, I'll use arrays as a last resort. aargh!