From 71b7490d6fd8bd6f6595d25ef272c084e7a4d3d7 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 20 Jul 2023 15:15:20 +0200 Subject: [PATCH] i18n --- app/views/admin/communication/websites/pages/_list.html.erb | 2 +- .../admin/communication/websites/pages/_treebranch.html.erb | 2 +- config/locales/communication/en.yml | 1 + config/locales/communication/fr.yml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/admin/communication/websites/pages/_list.html.erb b/app/views/admin/communication/websites/pages/_list.html.erb index 3308680ab..c6ae2e2b7 100644 --- a/app/views/admin/communication/websites/pages/_list.html.erb +++ b/app/views/admin/communication/websites/pages/_list.html.erb @@ -24,7 +24,7 @@ <% end %> </td> <td> - <% if page.full_width%> + <% if page.full_width %> <span class="badge bg-light text-black"> <%= Communication::Website::Page.human_attribute_name('full_width') %> </span> diff --git a/app/views/admin/communication/websites/pages/_treebranch.html.erb b/app/views/admin/communication/websites/pages/_treebranch.html.erb index 5ea7bf0c2..1a40c45f7 100644 --- a/app/views/admin/communication/websites/pages/_treebranch.html.erb +++ b/app/views/admin/communication/websites/pages/_treebranch.html.erb @@ -18,7 +18,7 @@ <% end %> </div> <div class="btn-group"> - <%= link_to 'Voir la page', admin_communication_website_page_path(page) %> + <%= link_to t('admin.communication.website.pages.show'), admin_communication_website_page_path(page) %> </div> </div> <ul class="list-unstyled treeview__children js-treeview-children <%= 'js-treeview-sortable-container' if can?(:reorder, page) %> ms-4" data-id="<%= page.id %>"> diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index e6db3b795..d367f86be 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -672,6 +672,7 @@ en: as_tree: Organize structure delete_special_page_notice: Can't delete this page full_width_status: Full width + show: Show page structure: Pages published_status: Publication status post: diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 275bbce88..cf157e7e9 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -669,6 +669,7 @@ fr: as_tree: Organiser l'arborescence delete_special_page_notice: Impossible de supprimer cette page full_width_status: Pleine largeur + show: Voir la page structure: Pages published_status: État de publication post: -- GitLab