diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4d0b807f1..878e0e473 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -72,13 +72,13 @@ module ApplicationHelper def root_path_info_for_profile(nav_bar_profile) case nav_bar_profile when :administrateur - [admin_procedures_path, "Aller au panneau d’administration"] + [admin_procedures_path, t("admin", scope: "layouts.root_path_link_title")] when :instructeur - [instructeur_procedures_path, 'Aller à la liste des démarches'] + [instructeur_procedures_path, t("instructeur", scope: "layouts.root_path_link_title")] when :user - [dossiers_path, 'Aller à la liste des dossiers'] + [dossiers_path, t("user", scope: "layouts.root_path_link_title")] else - [root_path, "Aller à la page d’accueil"] + [root_path, t("default", scope: "layouts.root_path_link_title")] end end diff --git a/app/views/layouts/_header.haml b/app/views/layouts/_header.haml index b3db00781..b991e454b 100644 --- a/app/views/layouts/_header.haml +++ b/app/views/layouts/_header.haml @@ -24,7 +24,7 @@ .fr-header__service - root_profile_link, root_profile_libelle = root_path_info_for_profile(nav_bar_profile) - = link_to root_profile_link, :title => root_profile_libelle do + = link_to root_profile_link, title: "#{root_profile_libelle} — #{APPLICATION_NAME}" do %p.fr-header__service-title= APPLICATION_NAME .fr-header__tools diff --git a/config/locales/en.yml b/config/locales/en.yml index f91771ac4..b0dff2c06 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -84,6 +84,8 @@ en: access: View your File question: I have a question reply: Reply to this message + root_path_link_title: + default: "Go to homepage" views: commencer: show: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1b270c9d8..0625360f4 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -74,6 +74,8 @@ fr: access: Consulter mon dossier question: J’ai une question reply: Répondre à ce message + root_path_link_title: + default: "Aller à la page d’accueil" views: commencer: show: