aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/comment
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/comment')
-rw-r--r--app/views/comment/_comment_form.rhtml4
-rw-r--r--app/views/comment/_single_comment.rhtml2
-rw-r--r--app/views/comment/new.rhtml26
-rw-r--r--app/views/comment/preview.rhtml2
4 files changed, 17 insertions, 17 deletions
diff --git a/app/views/comment/_comment_form.rhtml b/app/views/comment/_comment_form.rhtml
index f943cf8ad..011393256 100644
--- a/app/views/comment/_comment_form.rhtml
+++ b/app/views/comment/_comment_form.rhtml
@@ -13,8 +13,8 @@
<p>
<%= hidden_field_tag 'submitted_comment', 1 %>
<%= hidden_field_tag 'preview', 1 %>
- <%= submit_tag "Preview your annotation" %>
- (<strong>no ranty</strong> politics, read our <a href="/help/requesting#moderation">moderation policy</a>)
+ <%= submit_tag _('Preview your annotation') %>
+ <%= _(' (<strong>no ranty</strong> politics, read our <a href="%s">moderation policy</a>)' % [help_requesting '#moderation'] %>
</p>
<% end %>
diff --git a/app/views/comment/_single_comment.rhtml b/app/views/comment/_single_comment.rhtml
index d4282ced8..71ddd04cb 100644
--- a/app/views/comment/_single_comment.rhtml
+++ b/app/views/comment/_single_comment.rhtml
@@ -22,7 +22,7 @@
<% if !@user.nil? && @user.admin_page_links? %>
| <%= link_to "Admin", admin_url("request/edit_comment/" + comment.id.to_s) %>
<% end %>
- <!-- | <%= link_to "Report abuse", comment_url(comment) %> -->
+ <!-- | <%= link_to _('Report abuse'), comment_url(comment) %> -->
<% end %>
</p>
</div>
diff --git a/app/views/comment/new.rhtml b/app/views/comment/new.rhtml
index 7d7dfee6f..7e375d638 100644
--- a/app/views/comment/new.rhtml
+++ b/app/views/comment/new.rhtml
@@ -11,42 +11,42 @@
<%= foi_error_messages_for :comment %>
-<h1>Add an annotation to '<%=request_link(@info_request)%>'</h1>
+<h1><%= _('Add an annotation to ')%>'<%=request_link(@info_request)%>'</h1>
<p>
-Annotations are so anyone, including you, can help the requester with their request. For example:
+<%= _('Annotations are so anyone, including you, can help the requester with their request. For example:')%>
</p>
<ul>
<% if [ 'waiting_clarification' ].include?(@info_request.described_state) %>
- <li> Advise on how to <strong>best clarify</strong> the request.</li>
+ <li><%= _(' Advise on how to <strong>best clarify</strong> the request.')%></li>
<% end %>
<% if not [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>
- <li> Link to the information requested, if it is <strong>already available</strong> on the Internet. </li>
- <li> Suggest <strong>where else</strong> the requester might find the information. </li>
- <li> Offer better ways of <strong>wording the request</strong> to get the information. </li>
+ <li><%= _(' Link to the information requested, if it is <strong>already available</strong> on the Internet. ')%></li>
+ <li><%= _(' Suggest <strong>where else</strong> the requester might find the information. ')%></li>
+ <li><%= _(' Offer better ways of <strong>wording the request</strong> to get the information. ')%></li>
<% end %>
<% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>
- <li> <strong>Summarise</strong> the content of any information returned. </li>
- <li> Say how you've <strong>used the information</strong>, with links if possible. </li>
- <li> <strong>Thank</strong> the public authority or <%=h @info_request.user.name %>. </li>
+ <li><%= _(' <strong>Summarise</strong> the content of any information returned. ')%></li>
+ <li><%= _(' Say how you\'ve <strong>used the information</strong>, with links if possible.')%> </li>
+ <li> <%= _('<strong>Thank</strong> the public authority or ')%><%=h @info_request.user.name %>. </li>
<% end %>
<% if [ 'partially_successful' ].include?(@info_request.described_state) %>
- <li> Suggest how the requester can find the <strong>rest of the information</strong>. </li>
+ <li> <%= _('Suggest how the requester can find the <strong>rest of the information</strong>.')%></li>
<% end %>
<% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>
- <li> Point to <strong>related information</strong>, campaigns or forums which may be useful. </li>
+ <li> <%= _('Point to <strong>related information</strong>, campaigns or forums which may be useful.')%></li>
<% end %>
<% if [ 'gone_postal' ].include?(@info_request.described_state) %>
- <li> A <strong>summary</strong> of the response if you have received it by post. </li>
+ <li> <%= _('A <strong>summary</strong> of the response if you have received it by post. ')%></li>
<% end %>
<% if [ 'not_held' ].include?(@info_request.described_state) %>
- <li> Ideas on what <strong>other documents to request</strong> which the authority may hold. </li>
+ <li><%= _(' Ideas on what <strong>other documents to request</strong> which the authority may hold. ')%></li>
<% end %>
<% if [ 'rejected' ].include?(@info_request.described_state) %>
<li> Advise on whether the <strong>refusal is legal</strong>, and how to complain about it if not. </li>
diff --git a/app/views/comment/preview.rhtml b/app/views/comment/preview.rhtml
index 38c5fe1ff..54037cf0e 100644
--- a/app/views/comment/preview.rhtml
+++ b/app/views/comment/preview.rhtml
@@ -7,7 +7,7 @@
<%= render :partial => 'comment/single_comment', :locals => { :comment => @comment } %>
<p>
- Your name and annotation will appear in <strong>search engines</strong>.
+ <%= _('Your name and annotation will appear in <strong>search engines</strong>.')%>
</p>
<p>