0

How can I change Active Admin's title from 'Dashboard' to 'Tableau de bord' (french)?

Should I register the page as Tableau de bord instead of

ActiveAdmin.register_page "Dashboard", namespace: :admin do

The problem with that solution is that I will have to modify my paths.

1 Answer 1

0

Na you don't have to rename the registration, just add a title in the content block.

For instance:

content :title => "Tableau de bord" do
  div :class => "blank_slate_container", :id => "dashboard_default_message" do
    span :class => "blank_slate" do
      span I18n.t("active_admin.dashboard_welcome.welcome")
      small I18n.t("active_admin.dashboard_welcome.call_to_action")
    end
  end
1
  • Thank you very much! If I am not mistaken, this is not documented(?)
    – Justin D.
    Aug 29, 2013 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.