Re: [fw-general] There is no way to customize the validator messages?

2009-12-14 Thread Chou Ken
to whisher:
Zend_Translate work fine, thank you :)



2009/11/16 whisher :
> Hi.
>
> You can put your value using Zend_Translate for instance:
>
> $translate = new Zend_Translate('array', APPLICATION_PATH .
> '/configs/lang/'. $locale . '.php' , $lang);
>
> in my it_IT.php
>
> return array( /* VALIDATORS */ Zend_Validate_NotEmpty::IS_EMPTY => 'Il campo
> è obbligatorio e non può essere vuoto'/*Value is required and can\'t be
> empty*/, etct etc etc
>
> You can find the keys at
>
> http://framework.zend.com/manual/en/zend.validate.messages.html
>


Re: [fw-general] There is no way to customize the validator messages?

2009-12-14 Thread Саша Стаменковић
You are right. The page is useful, but it needs update.

Regards,
Saša Stamenković


On Mon, Dec 14, 2009 at 3:38 PM, Thomas Weidner wrote:

> Because 1 string out of more than 200 is missing the complete manual
> useless ?
> This is ridiculous.
>
> You could also use the translation ressource.
> *sarcasm* Oh, sorry... 10 strings are marked as duplicated within the
> ressources so they are also useless.
>
> Greetings
> Thomas Weidner, I18N Team Leader, Zend Framework
> http://www.thomasweidner.com
>
> - Original Message - From: "Саша Стаменковић" 
> To: "whisher" 
> Cc: 
> Sent: Monday, December 14, 2009 11:38 AM
> Subject: Re: [fw-general] There is no way to customize the validator
> messages?
>
>
>
> Page http://framework.zend.com/manual/en/zend.validate.messages.html needs
> an update
>
> eg:
> "Invalid type given, value should be string, integer or float" is missing
> in Zend_Validate_Digits...
>
> So, it's worthless.
>
> Regards,
> Saša Stamenković
>
>
> On Mon, Nov 16, 2009 at 11:32 AM, whisher  wrote:
>
>  Hi.
>>
>> You can put your value using Zend_Translate for instance:
>>
>> $translate = new Zend_Translate('array', APPLICATION_PATH .
>> '/configs/lang/'. $locale . '.php' , $lang);
>>
>> in my it_IT.php
>>
>> return array( /* VALIDATORS */ Zend_Validate_NotEmpty::IS_EMPTY => 'Il
>> campo è obbligatorio e non può essere vuoto'/*Value is required and can\'t
>> be empty*/, etct etc etc
>>
>> You can find the keys at
>>
>> http://framework.zend.com/manual/en/zend.validate.messages.html
>>
>> Chou Ken wrote:
>>  There is no way to customize the validator messages?
>> http://framework.zend.com/manual/en/zend.file.transfer.validators.htmlthe
>> doc said:"Upload: This validator is internal. It checks if an upload has
>> resulted in an error. You must not set it, as it's automatically set by
>> Zend_File_Transfer itself. So you do not use this validator directly. You
>> should only know that it exists. " 青青子衿,悠悠我心
>>
>>
>> --
>> View this message in context: Re: There is no way to customize the
>> validator messages?<
>> http://old.nabble.com/There-is-no-way-to-customize-the-validator-messages--tp26369321p26369713.html
>> >
>>
>> Sent from the Zend Framework mailing list archive<
>> http://old.nabble.com/Zend-Framework-f15440.html>at Nabble.com.
>>
>>
>


Re: [fw-general] There is no way to customize the validator messages?

2009-12-14 Thread Thomas Weidner
Because 1 string out of more than 200 is missing the complete manual useless 
?

This is ridiculous.

You could also use the translation ressource.
*sarcasm* Oh, sorry... 10 strings are marked as duplicated within the 
ressources so they are also useless.


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

- Original Message - 
From: "Саша Стаменковић" 

To: "whisher" 
Cc: 
Sent: Monday, December 14, 2009 11:38 AM
Subject: Re: [fw-general] There is no way to customize the validator 
messages?



Page http://framework.zend.com/manual/en/zend.validate.messages.html needs
an update

eg:
"Invalid type given, value should be string, integer or float" is missing
in Zend_Validate_Digits...

So, it's worthless.

Regards,
Saša Stamenković


On Mon, Nov 16, 2009 at 11:32 AM, whisher  wrote:


Hi.

You can put your value using Zend_Translate for instance:

$translate = new Zend_Translate('array', APPLICATION_PATH .
'/configs/lang/'. $locale . '.php' , $lang);

in my it_IT.php

return array( /* VALIDATORS */ Zend_Validate_NotEmpty::IS_EMPTY => 'Il
campo è obbligatorio e non può essere vuoto'/*Value is required and can\'t
be empty*/, etct etc etc

You can find the keys at

http://framework.zend.com/manual/en/zend.validate.messages.html

Chou Ken wrote:
 There is no way to customize the validator messages?
http://framework.zend.com/manual/en/zend.file.transfer.validators.html the
doc said:"Upload: This validator is internal. It checks if an upload has
resulted in an error. You must not set it, as it's automatically set by
Zend_File_Transfer itself. So you do not use this validator directly. You
should only know that it exists. " 青青子衿,悠悠我心


--
View this message in context: Re: There is no way to customize the
validator 
messages?<http://old.nabble.com/There-is-no-way-to-customize-the-validator-messages--tp26369321p26369713.html>


Sent from the Zend Framework mailing list 
archive<http://old.nabble.com/Zend-Framework-f15440.html>at Nabble.com.






Re: [fw-general] There is no way to customize the validator messages?

2009-12-14 Thread Саша Стаменковић
Page http://framework.zend.com/manual/en/zend.validate.messages.html needs
an update

eg:
"Invalid type given, value should be string, integer or float" is missing
in Zend_Validate_Digits...

So, it's worthless.

Regards,
Saša Stamenković


On Mon, Nov 16, 2009 at 11:32 AM, whisher  wrote:

> Hi.
>
> You can put your value using Zend_Translate for instance:
>
> $translate = new Zend_Translate('array', APPLICATION_PATH .
> '/configs/lang/'. $locale . '.php' , $lang);
>
> in my it_IT.php
>
> return array( /* VALIDATORS */ Zend_Validate_NotEmpty::IS_EMPTY => 'Il
> campo è obbligatorio e non può essere vuoto'/*Value is required and can\'t
> be empty*/, etct etc etc
>
> You can find the keys at
>
> http://framework.zend.com/manual/en/zend.validate.messages.html
>
> Chou Ken wrote:
>  There is no way to customize the validator messages?
> http://framework.zend.com/manual/en/zend.file.transfer.validators.html the
> doc said:"Upload: This validator is internal. It checks if an upload has
> resulted in an error. You must not set it, as it's automatically set by
> Zend_File_Transfer itself. So you do not use this validator directly. You
> should only know that it exists. " 青青子衿,悠悠我心
>
>
> --
> View this message in context: Re: There is no way to customize the
> validator 
> messages?
>
> Sent from the Zend Framework mailing list 
> archiveat Nabble.com.
>


Re: [fw-general] There is no way to customize the validator messages?

2009-11-16 Thread whisher

Hi.

You can put your value using Zend_Translate
for instance:

$translate = new Zend_Translate('array', APPLICATION_PATH .
'/configs/lang/'. $locale . '.php' , $lang);

in my it_IT.php

return array(
/* VALIDATORS */
Zend_Validate_NotEmpty::IS_EMPTY   => 'Il campo è obbligatorio e non
può essere vuoto'/*Value is required and can\'t be empty*/, etct etc etc

You can find the keys at 

http://framework.zend.com/manual/en/zend.validate.messages.html
http://framework.zend.com/manual/en/zend.validate.messages.html 






Chou Ken wrote:
> 
> There is no way to customize the validator messages?
> 
> http://framework.zend.com/manual/en/zend.file.transfer.validators.html
> the doc said:"Upload: This validator is internal. It checks if an
> upload has resulted in an error. You must not set it, as it's
> automatically set by Zend_File_Transfer itself. So you do not use this
> validator directly. You should only know that it exists. "
> 
> 
> 
> 
> 青青子衿,悠悠我心
> 
> 

-- 
View this message in context: 
http://old.nabble.com/There-is-no-way-to-customize-the-validator-messages--tp26369321p26369713.html
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] There is no way to customize the validator messages?

2009-11-16 Thread Chou Ken
There is no way to customize the validator messages?

http://framework.zend.com/manual/en/zend.file.transfer.validators.html
the doc said:"Upload: This validator is internal. It checks if an
upload has resulted in an error. You must not set it, as it's
automatically set by Zend_File_Transfer itself. So you do not use this
validator directly. You should only know that it exists. "




青青子衿,悠悠我心