views:

204

answers:

1

What's the best way to localize a PHP page? We have several PHP pages that need to be deployed to other countries. They are hard-coded in English now. I am looking for a mechanism to externalize the text and localize it.

Something like ResourceBundle in Java would be great. We don't use any frameworks.

+2  A: 

There is a gettext support in PHP, I think it would be best to use that.

Marko