aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/request_controller.rb2
-rw-r--r--app/views/general/search.rhtml2
-rw-r--r--app/views/request/_describe_state.rhtml6
-rw-r--r--app/views/request/_other_describe_state.rhtml4
-rw-r--r--app/views/user/show.rhtml24
5 files changed, 17 insertions, 21 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 466c6d6ce..c1a13273a 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -425,7 +425,7 @@ class RequestController < ApplicationController
elsif @info_request.calculate_status == 'gone_postal'
redirect_to respond_to_last_url(@info_request) + "?gone_postal=1"
elsif @info_request.calculate_status == 'internal_review'
- flash[:notice] = _("<p>Thank you! Hopefully your wait isn't too long.</p><p>You should get a response within 20 days, or be told if it will take longer (<a href=\"{{review_url}}\">details</a>).</p>", :review_url => unhappy_url(@info_request) + "#internal_review")
+ flash[:notice] = _("<p>Thank you! Hopefully your wait isn't too long.</p><p>You should get a response within {{late_number_of_days}} days, or be told if it will take longer (<a href=\"{{review_url}}\">details</a>).</p>",:late_number_of_days => MySociety::Config.get('REPLY_LATE_AFTER_DAYS', 20), :review_url => unhappy_url(@info_request) + "#internal_review")
redirect_to request_url(@info_request)
elsif @info_request.calculate_status == 'error_message'
flash[:notice] = _("<p>Thank you! We'll look into what happened and try and fix it up.</p><p>If the error was a delivery failure, and you can find an up to date FOI email address for the authority, please tell us using the form below.</p>")
diff --git a/app/views/general/search.rhtml b/app/views/general/search.rhtml
index ec12b2bf3..1d934f65a 100644
--- a/app/views/general/search.rhtml
+++ b/app/views/general/search.rhtml
@@ -152,7 +152,7 @@
<tr><td><strong><%=search_link('status:user_withdrawn')%></strong></td><td><%= _('The requester has abandoned this request for some reason') %></td></tr>
</table>
- <h2 id="varieties">Table of varieties</h2>
+ <h2 id="varieties"><%= _('Table of varieties') %></h2>
<table class="status_table">
<tr><td><strong><%=search_link('variety:sent')%></strong></td><td><%= _('Original request sent') %></td></tr>
diff --git a/app/views/request/_describe_state.rhtml b/app/views/request/_describe_state.rhtml
index 052833a67..71699835c 100644
--- a/app/views/request/_describe_state.rhtml
+++ b/app/views/request/_describe_state.rhtml
@@ -4,7 +4,7 @@
<h2><%= _('What best describes the status of this request now?') %></h2>
<hr> <!------------------------------------------------>
- <h3>This request is still in progress:</h3>
+ <h3><%= _('This request is still in progress:') %></h3>
<% if @info_request.described_state != 'internal_review' %>
<div>
<%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
@@ -41,7 +41,7 @@
<%= render :partial => 'general/custom_state_transitions_pending', :locals => {:id_suffix => id_suffix } %>
<hr> <!------------------------------------------------>
- <h3>This particular request is finished:</h3>
+ <h3><%= _('This particular request is finished:') %></h3>
<% if @info_request.described_state == 'internal_review' %>
<p><%= _('The <strong>review has finished</strong> and overall:') %></p>
@@ -68,7 +68,7 @@
<hr> <!------------------------------------------------>
- <h3>Other:</h3>
+ <h3><%= _('Other:') %></h3>
<div>
<%= radio_button "incoming_message", "described_state", "error_message", :id => 'error_message' + id_suffix %>
diff --git a/app/views/request/_other_describe_state.rhtml b/app/views/request/_other_describe_state.rhtml
index 1c88f97f8..e274fe8c9 100644
--- a/app/views/request/_other_describe_state.rhtml
+++ b/app/views/request/_other_describe_state.rhtml
@@ -7,7 +7,7 @@
Thanks.') %></h2>
<hr> <!------------------------------------------------>
- <h3>This request is still in progress:</h3>
+ <h3><%= _('This request is still in progress:') %></h3>
<% if @info_request.described_state != 'internal_review' %>
<div>
<%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
@@ -37,7 +37,7 @@
<%= render :partial => 'general/custom_state_transitions_pending', :locals => {:id_suffix => id_suffix } %>
<hr> <!------------------------------------------------>
- <h3>This particular request is finished:</h3>
+ <h3><%= _('This particular request is finished:') %></h3>
<% if @info_request.described_state == 'internal_review' %>
<p><%= _('The <strong>review has finished</strong> and overall:') %></p>
diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml
index c3a99311a..8fd6c52ad 100644
--- a/app/views/user/show.rhtml
+++ b/app/views/user/show.rhtml
@@ -110,22 +110,19 @@
<% if not @is_you %>
<p id="user_not_logged_in">
- <%= link_to _('Sign in'), signin_url(:r => request.request_uri) %> <%= _('to change password,
- subscriptions and more')%> (<%=h @display_user.name %> <%= _('only')%>)
+ <%= _('<a href="%s">Sign in</a> to change password, subscriptions and more ({{user_name}} only)',:user_name=>h(@display_user.name)) % [signin_url(:r => request.request_uri)]%>
</p>
<% end %>
<% if !@xapian_requests.nil? %>
<% if @xapian_requests.results.empty? %>
<% if @page == 1 %>
- <h2 id="foi_requests"><%= _('Freedom of Information requests made by')%> <%= @is_you ? 'you' : 'this person' %> </h2>
- <p><%= @is_you ? _('You have') : _('This person has') %>
- <%= _(' made no Freedom of Information requests using this site.')%></p>
+ <h2 id="foi_requests"><%= @is_you ? 'Freedom of Information requests made by you' : 'Freedom of Information requests made by this person' %> </h2>
+ <p><%= @is_you ? _('You have made no Freedom of Information requests using this site.') : _('This person has made no Freedom of Information requests using this site.') %>
<% end %>
<% else %>
<h2 id="foi_requests">
- <%= @is_you ? 'Your ' : "This person's " %>
- <%=pluralize(@display_user.info_requests.size, _('Freedom of Information request')) %>
+ <%= @is_you ? n_('Your %d Freedom of Information request', 'Your %d Freedom of Information requests', @display_user.info_requests.size) % @display_user.info_requests.size : n_('This person\'s %d Freedom of Information request', 'This person\'s %d Freedom of Information requests', @display_user.info_requests.size) % @display_user.info_requests.size %>
<!-- matches_estimated <%=@xapian_requests.matches_estimated%> -->
<%= @page_desc %>
</h2>
@@ -137,21 +134,20 @@
<%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
<% end %>
<% else %>
- <h2 id="foi_requests"><%= _('Freedom of Information requests made by')%> <%= @is_you ? _('you') : _('this person') %> </h2>
+ <h2 id="foi_requests"><%= @is_you ? _('Freedom of Information requests made by you') : _('Freedom of Information requests made by this person') %> </h2>
<p><%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests this person has made.')%></p>
<% end %>
<% if !@xapian_comments.nil? %>
<% if @xapian_comments.results.empty? %>
<% if @page == 1 %>
- <h2><%= @is_you ? 'Your' : 'This person\'s' %> <%= _('annotations')%> </h2>
- <p>None made.</p>
+ <h2><%= @is_you ? _('Your annotations') : _('This person\'s annotations') %></h2>
+ <p><%= _('None made.')%></p>
<% end %>
<% else %>
<h2 id="annotations">
- <%= @is_you ? _('Your ') : _('This person\'s') %>
- <%=pluralize(@display_user.visible_comments.size, _('annotation')) %>
- <!-- matches_estimated <%=@xapian_comments.matches_estimated%> -->
+ <%= @is_you ? n_('Your %d annotation', 'Your %d annotations', @display_user.visible_comments.size) % @display_user.visible_comments.size : n_('This person\'s %d annotation', 'This person\'s %d annotations', @display_user.visible_comments.size) % @display_user.visible_comments.size %>
+ <!-- matches_estimated <%=@xapian_comments.matches_estimated%> -->
<%= @page_desc %>
</h2>
@@ -166,7 +162,7 @@
<% if @is_you %>
<% if @track_things.empty? %>
<h2 id="email_subscriptions"> <%= _('Your email subscriptions')%></h2>
- <p>None made.</p>
+ <p><%= _('None made.')%></p>
<% else %>
<h2 id="email_subscriptions"> Your <%=pluralize(@track_things.size, _('email subscription')) %> </h2>
<% if @track_things_grouped.size == 1 %>