turbine-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: TurbineLocalizationService
Date Tue, 07 Oct 2008 16:33:01 GMT
Boudewijn van Weert wrote:
> I want to use this method when I have to generate special messages after a
> certain operation, like f.e. that a database operation was successful. This
> has to be done in the controller..

Not really. I usually return a localization key that points to the full
message, like in

data.setMessage(Constants.DB_SUCCESS);

and display it in the template like

$l10n.get($data.Message)

Bye, Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org


Mime
View raw message