Customizing Translator messages?

View: New views
2 Messages — Rating Filter:   Alert me  

Customizing Translator messages?

by Martin Strand-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Customizing Translator messages?

by Ulrich Stärk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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