i18n

5 views
Skip to first unread message

Pierre Valade

unread,
Jun 23, 2009, 6:11:25 AM6/23/09
to resource_controller
Hello,

When I try to use i18n.t in a resource controller, i get the default
language when setting a flash message.

In other controllers, I use a before_filter in application controller.

before_filter :set_locale

Is there any way to define the locale in a i18n controller ?

Thanks,

Pierre

James Golick

unread,
Jun 26, 2009, 3:38:42 PM6/26/09
to resource_...@googlegroups.com
r_c doesn't come with multi-lingual default flash messages. You'd have to set those:

create.wants.flash { t[:flash_on_create_for_some_controller] }

or something like that.

Pierre Valade

unread,
Jun 28, 2009, 12:42:32 PM6/28/09
to resource_...@googlegroups.com
Thanks for your answer James.
Reply all
Reply to author
Forward
0 new messages