Internationalization of Zend_FormIncreasingly, developers need to tailor their content for multiple languages and regions. Zend_Form aims to make such a task trivial, and leverages functionality in both Zend_Translate and Zend_Validate to do so. By default, no internationalisation (I18n) is performed. To turn on I18n features in Zend_Form, you will need to instantiate a Zend_Translate object with an appropriate adapter, and attach it to Zend_Form and/or Zend_Validate. See the Zend_Translate documentation for more information on creating the translate object and translation files
Initializing I18n in FormsIn order to initialize I18n in forms, you will need either a Zend_Translate object or a Zend_Translate_Adapter object, as detailed in the Zend_Translate documentation. Once you have a translation object, you have several options:
Standard I18n TargetsNow that you've attached a translation object to, what exactly can you translate by default?
|
|