Hi,
if you use LanguageFu (not sure about Globalize), you can use the .t
function in controllers and models as well, so what I'd suggest is
doing
flash[:notice] = "You have successfully logged out".t .
Best wishes,
Judith
On Fri, Aug 1, 2008 at 9:54 PM, Peter Schrammel <
peter.schrammel@...> wrote:
> Hi
>
> I'm actually thinking about i18n-ing a plugin and wonder if there is a
> solution for translating flash[..] messages?
>
> I'd simply override some methods of the ActionController::Flash class
> ([]=, now). Has anybody already done this? Better solutions? Caveats?
>
> I'm still using rails 1.2.6, so the solutions should work for 1.2.6 and 2.x.
>
> Regards
> Peter
>
>