how to set custom locale in zend framework by create a function in bootstrap file? I need to change error messege in zend form.
Thanks for support
how to set custom locale in zend framework by create a function in bootstrap file? I need to change error messege in zend form.
Thanks for support
You can use this code to set the locale
More info on the Zend_Locale
For adding translated error message to the form validators you have to add them to the
Zend_Validate_Abstract
More info on the validator error message is in their manual Using pre-translated validation messages
I havent personally used the translation adaptors, but from the manual Creating CSV source files for Translation it seems the below code will add the
translator
to the applicationAlso a sample of the .csv format