Search code examples
phpinternationalizationgettextlocalizationexternalizing

Best practices for externalizing strings in PHP


I've been surprised by how little I've found on externalizing strings in PHP. Does everyone use gettext, or is there some other framework or tool that I'm not aware of?


Solution

  • Zend_Translate / Zend_Locale are nice and very flexible. They do not need the whole Zend Framework to be present. They support gettext moo/.po files but also CSV and other formats.