From cf0b6403aaf6cee0e1c1c6241c712b5ee0d1918f Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 12 Jun 2019 16:08:20 +0200 Subject: [PATCH] Use built-in form sumbit translation keys for redactions --- app/views/redactions/edit.html.erb | 2 +- app/views/redactions/new.html.erb | 2 +- config/locales/en.yml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/redactions/edit.html.erb b/app/views/redactions/edit.html.erb index 72676013e..cef618859 100644 --- a/app/views/redactions/edit.html.erb +++ b/app/views/redactions/edit.html.erb @@ -16,6 +16,6 @@ <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>

- <%= f.submit t(".submit") %> + <%= f.submit %>

<% end %> diff --git a/app/views/redactions/new.html.erb b/app/views/redactions/new.html.erb index 9f2adac19..a76d8ec48 100644 --- a/app/views/redactions/new.html.erb +++ b/app/views/redactions/new.html.erb @@ -15,6 +15,6 @@ <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>

- <%= f.submit t(".submit") %> + <%= f.submit %>

<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 606077461..1eb561d11 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -10,6 +10,9 @@ en: diary_entry: create: "Publish" update: "Update" + redaction: + create: Create redaction + update: Save redaction user_block: create: Create block update: Update block @@ -2573,7 +2576,6 @@ en: edit: description: "Description" heading: "Edit redaction" - submit: "Save redaction" title: "Edit redaction" index: empty: "No redactions to show." @@ -2582,7 +2584,6 @@ en: new: description: "Description" heading: "Enter information for new redaction" - submit: "Create redaction" title: "Creating new redaction" show: description: "Description:" -- 2.43.2