Hi!
I have problem with localizing my ActiveScaffold app:
In ActiveScaffold config I set order and labels for columns of my
tables. These labels are localized (assign symbols, which are replaced
by localized texts from my yml files). It works fine, except of nested
tables - those are displayed in default (en).
I have in application_controller.rb:
def default_url_options(options={})
{ :locale => I18n.locale }
end
for automatically passing locale to each URL, and
before_filter :set_locale
def set_locale
I18n.locale = params[:locale]
end
for setting locale.
It seems, nested table do not receives locale: params[:locale] is nil
in set_locale (for nested tables only, others have params[:locale]
correctly set)
Is there a special option I missed?
Gergely
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---