-- tridem-zend <nabble-z...@tridem.de> wrote
(on Monday, 21 March 2011, 03:13 AM -0700):
> Regarding 
> http://thomasweidner.com/flatpress/2010/01/17/translating-validation-messages/
> http://thomasweidner.com/flatpress/2010/01/17/translating-validation-messages/
> , I took a look at the translation files located in /resources/languages/**,
> f.e.:
> 
> 
> return array(
>     // Zend_Validate_Alnum
>     "'%value%' is an empty string" => "'%value%' ist ein leerer String"
> );
> 
> 
> Is there a reason the language file can or does not use the class constants?

IIRC, it's because the translator object receives the message, not the
key.

> return array(
>     // Zend_Validate_Alnum
>     "'alnumStringEmpty" => "'%value%' ist ein leerer String"
> );
> 
> 
> 
> return array(
>     // Zend_Validate_Alnum
>     Zend_Validate_Alnum::STRING_EMPTY => "'%value%' ist ein leerer String"
> );

-- 
Matthew Weier O'Phinney
Project Lead            | matt...@zend.com
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to