Added by Robert Castley, last edited by Robert Castley on Apr 08, 2008
This code snippet provides a Zend Framework (1.5.0) plugin that will auto-detect the browser language setting and make translations available to views via Zend_Registry.
MyPlugin_Language class
Then when in a view script you can simply call:
If you need translation in a helper you need to add a setView function e.g.
ZF Home Page
Code Browser
Wiki Dashboard