You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Strand <do...@gmail.com> on 2009/07/02 04:21:58 UTC

Customizing Translator messages?

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Customizing Translator messages?

Posted by Ulrich Stärk <ul...@spielviel.de>.
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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

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