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

index 532f3d7..2429feb 100644 (file)
@@ -16,7 +16,7 @@
       <%= richtext_area :message, :body, :cols => 80, :rows => 20 %>
     </div>
     <div class='buttons'>
-      <%= submit_tag t(".send_button") %>
+      <%= f.submit %>
       <%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "deemphasize button" %>
     </div>
   </fieldset>
index 1eb561d..2ba2ce8 100644 (file)
@@ -10,6 +10,8 @@ en:
       diary_entry:
         create: "Publish"
         update: "Update"
+      message:
+        create: Send
       redaction:
         create: Create redaction
         update: Save redaction
@@ -1234,7 +1236,6 @@ en:
       send_message_to: "Send a new message to %{name}"
       subject: "Subject"
       body: "Body"
-      send_button: "Send"
       back_to_inbox: "Back to inbox"
     create:
       message_sent: "Message sent"