diff --git a/app/views/administrate/application/edit.html.erb b/app/views/administrate/application/edit.html.erb index 8a83d09231..307561016a 100644 --- a/app/views/administrate/application/edit.html.erb +++ b/app/views/administrate/application/edit.html.erb @@ -15,13 +15,13 @@ It displays a header, and renders the `_form` partial to do the heavy lifting. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Form %> -<% content_for(:title) { "Edit #{page.page_title}" } %> +<% content_for(:title) { "#{t("administrate.actions.edit")} #{page.page_title}" } %>

<%= content_for(:title) %>

<%= link_to( - "Show #{page.page_title}", + "#{t("administrate.actions.show")} #{page.page_title}", [Administrate::NAMESPACE, page.resource], class: "button", ) %> diff --git a/app/views/administrate/application/index.html.erb b/app/views/administrate/application/index.html.erb index ef2a726af8..f370fb6c75 100644 --- a/app/views/administrate/application/index.html.erb +++ b/app/views/administrate/application/index.html.erb @@ -47,7 +47,7 @@ It renders the `_table` partial to display details about the resources.

<%= content_for(:title) %>

<%= link_to( - "New #{page.resource_name.titleize.downcase}", + "#{t("administrate.actions.new")} #{page.resource_name.titleize.downcase}", [:new, Administrate::NAMESPACE, page.resource_name], class: "button", ) %> diff --git a/app/views/administrate/application/new.html.erb b/app/views/administrate/application/new.html.erb index be364c0b8d..6b9ab1d79e 100644 --- a/app/views/administrate/application/new.html.erb +++ b/app/views/administrate/application/new.html.erb @@ -15,12 +15,12 @@ to do the heavy lifting. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Form %> -<% content_for(:title) { "New #{page.resource_name.titleize}" } %> +<% content_for(:title) { "#{t("administrate.actions.new")} #{page.resource_name.titleize}" } %>

<%= content_for(:title) %>

- <%= link_to 'Back', :back, class: "button" %> + <%= link_to t("administrate.actions.back"), :back, class: "button" %>
diff --git a/app/views/administrate/application/show.html.erb b/app/views/administrate/application/show.html.erb index 45e0f51159..69b0e7e33c 100644 --- a/app/views/administrate/application/show.html.erb +++ b/app/views/administrate/application/show.html.erb @@ -16,13 +16,13 @@ as well as a link to its edit page. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Show %> -<% content_for(:title) { page.page_title } %> +<% content_for(:title) { "#{t("administrate.actions.show")} #{page.page_title}" } %>

<%= content_for(:title) %>

<%= link_to( - "Edit", + "#{t("administrate.actions.edit")} #{page.page_title}", [:edit, Administrate::NAMESPACE, page.resource], class: "button", ) %>