Sunday
25
January
2009

Zend_Filter_Localize proposal

Hy interested ones,

and again I had an idea for simplification and added a new proposal.
I heard from some people that they have problems with localization and normalization due to the problem of missing filters.

When you, for example, have a I18N application you have to store given user input in your database in an normalized way, english for example. But you want to display it to any other user within his localized way.

The user enters a currency value like \’1.234,50\’ and you have to store it into your database as normal integer \’1234.50\’. Also the reverse way, when you read from your database \’1234.50\’ and want to display your user \’1.234,50\’.

Until now you would have to do this manually by reading form, normalize it, store it.. reading database, localize it, display it… seems a little bit complicated. :-)

Ok… and now my new proposal comes into account:
The proposed Zend_Filter_Localize and Zend_Filter_Normalize components will do this for you with one single line.
You can simply attach a filter to the form or any other component instead of calling Zend_Locale_Format manually.

I think you got an idea of the simplification.
See http://framework.zen … ize+-+Thomas+Weidner for details.
Review and comments are welcome.

Greetings
Thomas Weidner
I18N Team Leader, Zend Framework

Zend Framework Advisory Board Member
Zend Certified Engineer for Zend Framework

Back to top