]> git.openstreetmap.org Git - rails.git/commitdiff
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 532f3d71ee335558f36dce2004ad04d23193d233..2429feb52b9f255e5828d94ade93e8b4a19d37e3 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 1eb561d1150a56b434f7e00f1dc99898097fbd80..2ba2ce8ffed870756a03aa64293e689332ed8157 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"