From: Andy Allan Date: Wed, 12 Jun 2019 14:08:20 +0000 (+0200) Subject: Use built-in form sumbit translation keys for redactions X-Git-Tag: live~2634^2~5 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cf0b6403aaf6cee0e1c1c6241c712b5ee0d1918f?ds=sidebyside Use built-in form sumbit translation keys for redactions --- 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:"