On Tue, Dec 11, 2012 at 9:07 AM, Ralf Eggert <[email protected]> wrote:
>> Thoughts?
>
> Would it be possible to use the constants in the translation files
> rather than the text messages? Instead of
>
> "Invalid type given. String, integer or float expected" => "..."
>
> use
>
> Zend\I18n\Validator\Alnum::INVALID => "..."
>
> So, when a text in the validator class is changed, then the translation
> will not automatically be broken again.

I like this idea. Andreas?

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to