I am perfectly aware of that; I wasn't attempting to debate localization at all. I was simply recommending that maybe, just maybe, there should be different validators for what I'd call a "locale aware non-floating point number" and what PHP considers and integer.


On 23/06/2009 10:47 AM, Thomas Weidner wrote:
Jason,

But when you have a german user then he will enter "1.000,50"
Your server is configured to english and accepts only "1,000.50"

So whatever your user enters, it does not validate because you expect
always english regardless of what the user really does and where he lives.

Your expectation of "native integer" does not work when you have a
application which is accessed from users all around the world.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Jason Webster" <ja...@intraffic.net>
To: "Zend Framework - General" <fw-general@lists.zend.com>
Sent: Tuesday, June 23, 2009 6:02 PM
Subject: Re: [fw-general] Strange Zend_Form cache problem, please URGENT


Well, I don't think that should apply, though.

Validate_Int implies that you are validating to the native int
datatype, not a currency. Perhaps some of this functionallity should
be split into a Zend_Validate_Currency.

On 23/06/2009 8:55 AM, Jurian Sluiman wrote:
Well in GB one thousand is 1,000 and the floating point is a dot
(0.20ct). In The Netherlands it's exactly the opposite: €10.000,00 is
correct. So where 1.000 in GB is *not* an integer, in The Netherlands it
is.

R, Jurian
--
Jurian Sluiman
Soflomo.com


Op Tuesday 23 June 2009 17:42:57 schreef umpirsky:
> Yes, i know that, but integer is integer, why use locale at all.
Integer is
> integer in USA and in Serbia :) For instance Zend_Validate_Alnum is
not
> using it, then I don't see why Zend_Validate_Int use it, but it looks
that
> for some locale value 5,25 is valid integer, which is also wired.
>
> I'm using ZF 1.8.1.
>
> Again big thanks for your valuable help.
>
> Regards,
> Sasa Stamenkovic.


Reply via email to