Use of Zend_Form(i18n)

intro
Let’s create Japanese view using Zend_Form.You can download the source code of this article from here.

1.Create Controller
Create the file application/constorllers/IndexController.php with the following content.Please modify the path of csv files in the function preDispath.
2.Create View
Create the file application/views/scripts/index/index.phtml as following content.
3.Create Message Files
Create the file application/msg_en.csv as following content.

Create the file application/msg_ja.csv as following content.
(*Need to save it as UTF-8 encoding*)

4.Check
Let’s access your web server(ex.http://localhost/).
If it goes well, the messages change according to your browser language preferences(Including error messages!).
Screen of Japanese version:

Screen of English version:

Leave a Reply

Your email address will not be published.