Re: Customizing Translator messages?

2009-07-01 Thread Ulrich Stärk
If I'm not mistaken, you can't do that on a per-component basis. Translators have a getMessageKey() 
method that returns the key to be used and this is per translator not per component.


Uli

On 02.07.2009 04:21 schrieb Martin Strand:

Validation messages can easily be overridden for a specific component, eg

password-required-message = You forgot to type your password!


Is there a way to do the same with Translators - override messages on a 
per-component basis?
onParseClientFromXXX(...) could work, but I'd prefer to reuse the built-in 
translators.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Customizing Translator messages?

2009-07-01 Thread Martin Strand
Validation messages can easily be overridden for a specific component, eg

password-required-message = You forgot to type your password!


Is there a way to do the same with Translators - override messages on a 
per-component basis?
onParseClientFromXXX(...) could work, but I'd prefer to reuse the built-in 
translators.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org