Interesting thought...

It wouldn't be too difficult to make this. Consider this helper (just
out of the top of my head, excuse any mistakes):


def human_page_title
  I18n.translate(params[:action], :scope => [:pages,
params[:controller]], :default => [params[:action],
params[:action].humanize], :controller =>
params[:controller].humanize, :action => params[:action].humanize)
end

translations go:

en-US:
  pages:
    new: 'New {{controller}}'
    users:
      # specific for this controller only:
      new: 'Sign up'


Does this help?

--
Iain Hecker
http://iain.nl/

On Sep 29, 7:15 pm, Piotr Hlawski <[EMAIL PROTECTED]> wrote:
> Hello,
>
> So far we have great way to ActiveRecord models localization. Is there
> any similar mechanism to localize controllers and actions? It would be
> great way to add localized names as user menu entries.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" 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/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to