From 3b2d1886eb66cc44ab01449111722572c62511c9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 3 Jun 2017 12:04:00 +0100 Subject: [PATCH] Make delete button translatable --- app/views/message/read.html.erb | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/message/read.html.erb b/app/views/message/read.html.erb index 65f429daf..8e175ef67 100644 --- a/app/views/message/read.html.erb +++ b/app/views/message/read.html.erb @@ -16,7 +16,7 @@
<%= button_to t('message.read.reply_button'), {:controller => 'message', :action => 'reply', :message_id => @message.id}, :class => 'reply-button' %> <%= button_to t('message.read.unread_button'), {:controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread'}, :class => 'mark-unread-button' %> - <%= button_to "Delete", {:controller => 'message', :action => 'delete', :message_id => @message.id}, :class => 'delete-button' %> + <%= button_to t('message.read.delete_button'), {:controller => 'message', :action => 'delete', :message_id => @message.id}, :class => 'delete-button' %> <% else %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 214aa11a5..a05083a1e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1377,6 +1377,7 @@ en: date: "Date" reply_button: "Reply" unread_button: "Mark as unread" + delete_button: "Delete" back: "Back" to: "To" wrong_user: "You are logged in as `%{user}' but the message you have asked to read was not sent by or to that user. Please login as the correct user in order to read it." -- 2.39.5