From: Andy Allan Date: Wed, 12 Jun 2019 14:11:54 +0000 (+0200) Subject: Use built-in form sumbit translation keys for messages X-Git-Tag: live~2534^2~4 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/52782121a6488a468c2c6b5ca337007293b7b1a4?hp=cf0b6403aaf6cee0e1c1c6241c712b5ee0d1918f Use built-in form sumbit translation keys for messages --- diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb index 532f3d71e..2429feb52 100644 --- a/app/views/messages/new.html.erb +++ b/app/views/messages/new.html.erb @@ -16,7 +16,7 @@ <%= richtext_area :message, :body, :cols => 80, :rows => 20 %>
- <%= submit_tag t(".send_button") %> + <%= f.submit %> <%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "deemphasize button" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 1eb561d11..2ba2ce8ff 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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"