]> git.openstreetmap.org Git - rails.git/commitdiff
Make delete button translatable
authorTom Hughes <tom@compton.nu>
Sat, 3 Jun 2017 11:04:00 +0000 (12:04 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 3 Jun 2017 11:04:00 +0000 (12:04 +0100)
app/views/message/read.html.erb
config/locales/en.yml

index 65f429dafcc8a4062fc1ea7922779bd7c824af81..8e175ef671f6a212d384ab9c415e9443ceffe5f0 100644 (file)
@@ -16,7 +16,7 @@
   <div class='message-buttons buttons'>
     <%= 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' %>
   <div class='message-buttons buttons'>
     <%= 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 %>
 
 
 <% else %>
 
index 214aa11a565129fb1c20a9d0c11961b913f2f674..a05083a1e59956cff11cba0621d71fa8c7c35b91 100644 (file)
@@ -1377,6 +1377,7 @@ en:
       date: "Date"
       reply_button: "Reply"
       unread_button: "Mark as unread"
       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."
       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."