aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-28 10:13:50 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-28 10:13:50 +1100
commit80139c20784c2e58b4a6a6d3070f3e1b34120562 (patch)
tree6cad8d5b15b0b224adad3ac5399d69c9f752a13f
parent809f5d80acc9388ce81595203bacb5e86929c9a7 (diff)
Allow i18n of template email sent to users for vexatious requests
-rw-r--r--app/views/admin_request/hidden_user_explanation.html.erb10
-rw-r--r--app/views/admin_request/show.html.erb2
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/admin_request/hidden_user_explanation.html.erb b/app/views/admin_request/hidden_user_explanation.html.erb
index 7084e986f..d0a5d727d 100644
--- a/app/views/admin_request/hidden_user_explanation.html.erb
+++ b/app/views/admin_request/hidden_user_explanation.html.erb
@@ -1,10 +1,10 @@
-Dear <%= name_to %>,
+<%= _("Dear {{name}},", :name => name_to) %>
-Your request '<%= info_request.title.html_safe %>' at <%= info_request_url %> has been reviewed by moderators.
+<%= _("Your request '{{request}}' at {{url}} has been reviewed by moderators.", :request => info_request.title.html_safe, :url => info_request_url) %>
-We consider it <% if reason == 'not_foi' %>is not a valid FOI request<% else %>to be vexatious<% end%>, and have therefore hidden it from other users. You will still be able to view it while logged in to the site. Please reply to this email if you would like to discuss this decision further.
+<%= reason == 'not_foi' ? _("We consider it is not a valid FOI request, and have therefore hidden it from other users.") : _("We consider it to be vexatious, and have therefore hidden it from other users.") %> <%= _("You will still be able to view it while logged in to the site. Please reply to this email if you would like to discuss this decision further.") %>
-Yours,
+<%= _("Yours,") %>
-The <%= site_name %> team.
+<%= _("The {{site_name}} team.", :site_name => site_name) %>
diff --git a/app/views/admin_request/show.html.erb b/app/views/admin_request/show.html.erb
index 33f444353..00627c083 100644
--- a/app/views/admin_request/show.html.erb
+++ b/app/views/admin_request/show.html.erb
@@ -149,7 +149,7 @@
<div class="control-group" id="request_hidden_user_subject">
<label for="request_hidden_user_subject_field" class="control-label">Subject of email:</label>
<div class="controls">
- <%= text_field_tag "subject", "Your request on #{site_name} hidden", {:id => "request_hidden_user_subject_field", :cols => 100} %>
+ <%= text_field_tag "subject", _("Your request on {{site_name}} hidden", :site_name => site_name), {:id => "request_hidden_user_subject_field", :cols => 100} %>
</div>
</div>