diff --git a/app/views/user_mailer/request_retirement.html.erb b/app/views/user_mailer/request_retirement.html.erb
index dad0acd7895..3071f5497e0 100644
--- a/app/views/user_mailer/request_retirement.html.erb
+++ b/app/views/user_mailer/request_retirement.html.erb
@@ -7,15 +7,6 @@
-<% requester_name_text = I18n.t('activerecord.attributes.request_retirement.requester_name') %>
-<% requester_email_text = I18n.t('activerecord.attributes.request_retirement.requester_email') %>
-<% company_name_text = I18n.t('activerecord.attributes.request_retirement.company_name') %>
-<% target_user_text = RequestRetirement.human_attribute_name(:target_user_id) %>
-<% reason_text = RequestRetirement.human_attribute_name(:reason) %>
-<% keep_data_text = RequestRetirement.human_attribute_name(:keep_data) %>
-<% keep_data_option_text = I18n.t('activerecord.attributes.request_retirement.options.keep') %>
-<% delete_data_option_text = I18n.t('activerecord.attributes.request_retirement.options.delete') %>
-
@@ -28,31 +19,31 @@
-
- <%= requester_name_text %>
+ <%= RequestRetirement.human_attribute_name(:requester_name) %>
<%= @request_retirement.user.login_name %>
-
- <%= requester_email_text %>
+ <%= RequestRetirement.human_attribute_name(:requester_email) %>
<%= @request_retirement.user.email %>
-
- <%= company_name_text %>
+ <%= RequestRetirement.human_attribute_name(:company_name) %>
<%= @request_retirement.user.company.name %>
-
- <%= target_user_text %>
+ <%= RequestRetirement.human_attribute_name(:target_user) %>
<%= @request_retirement.target_user.name %>
-
- <%= reason_text %>
+ <%= RequestRetirement.human_attribute_name(:reason) %>
<%= @request_retirement.reason %>
-
- <%= keep_data_text %>
+ <%= RequestRetirement.human_attribute_name(:keep_data) %>
<% if @request_retirement.keep_data %>
- <%= keep_data_option_text %>
+ <%= RequestRetirement.human_attribute_name('keep_data.option.keep') %>
<% else %>
- <%= delete_data_option_text %>
+ <%= RequestRetirement.human_attribute_name('keep_data.option.delete') %>
<% end %>
|