Use built-in form sumbit translation keys for redactions
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jun 2019 14:08:20 +0000 (16:08 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jun 2019 14:08:20 +0000 (16:08 +0200)
app/views/redactions/edit.html.erb
app/views/redactions/new.html.erb
config/locales/en.yml

index 72676013ed3044ae8f7723a17a04655a7543b3b0..cef6188596d756f9c8709238725b7b6954edb640 100644 (file)
@@ -16,6 +16,6 @@
     <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
   </p>
   <p>
-    <%= f.submit t(".submit") %>
+    <%= f.submit %>
   </p>
 <% end %>
index 9f2adac19adc483003807bb646af6f8f92fdd889..a76d8ec48d12e6f82650742c6d34a2fe5fe00dc1 100644 (file)
@@ -15,6 +15,6 @@
     <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
   </p>
   <p>
-    <%= f.submit t(".submit") %>
+    <%= f.submit %>
   </p>
 <% end %>
index 606077461eabcfceaa60da9ade113d924495152c..1eb561d1150a56b434f7e00f1dc99898097fbd80 100644 (file)
@@ -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:"