diff options
Diffstat (limited to 'app/views/public_body/show.rhtml')
-rw-r--r-- | app/views/public_body/show.rhtml | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/app/views/public_body/show.rhtml b/app/views/public_body/show.rhtml index c1deea762..8b56d68c0 100644 --- a/app/views/public_body/show.rhtml +++ b/app/views/public_body/show.rhtml @@ -1,33 +1,34 @@ <% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %> <div id="request_sidebar"> - <h2>Track this authority</h2> + <h2><%= _('Track this authority')%></h2> <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %> - <h2>More about this authority</h2> + <h2><%= _('More about this authority')%></h2> <% if !@public_body.calculated_home_page.nil? %> - <%= link_to "Home page of authority", @public_body.calculated_home_page %><br> + <%= link_to _('Home page of authority'), @public_body.calculated_home_page %><br> <% end %> <% if !@public_body.publication_scheme.empty? %> - <%= link_to "Publication scheme", @public_body.publication_scheme %><br> + <%= link_to _('Publication scheme'), @public_body.publication_scheme %><br> <% end %> <% if @public_body.has_tag?("charity") %> <% for tag_value in @public_body.get_tag_values("charity") %> + XXX UK-specific <% if tag_value.match(/^SC/) %> - <%= link_to "Charity registration", "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + tag_value %><br> + <%= link_to _('Charity registration'), "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + tag_value %><br> <% else %> - <%= link_to "Charity registration", "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + tag_value %><br> + <%= link_to _('Charity registration'), "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + tag_value %><br> <% end %> <% end %> <% end %> - <%= link_to "View FOI email address", view_public_body_email_url(@public_body.url_name) %><br> + <%= link_to _('View FOI email address'), view_public_body_email_url(@public_body.url_name) %><br> </div> <h1><%=h(@public_body.name)%></h1> <p class="subtitle"> -<%=@public_body.type_of_authority(true)%> in the UK<% if not @public_body.short_name.empty? %>, also called <%= h(@public_body.short_name) %><% end %> +<%=@public_body.type_of_authority(true)%><% if not @public_body.short_name.empty? %>, <%= _('also called {{public_body_short_name}}', :public_body_short_name => h(@public_body.short_name))%><% end %> <% if !@user.nil? && @user.admin_page_links? %> -(<%= link_to "admin", public_body_admin_url(@public_body) %>) +(<%= link_to _("admin"), public_body_admin_url(@public_body) %>) <% end %> </p> @@ -36,51 +37,48 @@ <% end %> <% if @public_body.eir_only? %> - <p>You can only request information about the environment from this authority.</p> + <p><%= _('You can only request information about the environment from this authority.')%></p> <% end %> <div id="stepwise_make_request"> <strong> <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %> - <% make = 'Make' %> - <% if @searched_to_send_request %> - Next, - <% make = 'make' %> - <% end %> <% if @public_body.eir_only? %> - <%= link_to make + " a new Environmental Information request", new_request_to_body_url(:url_name => @public_body.url_name)%> + <%= link_to "Make a new Environmental Information request", new_request_to_body_url(:url_name => @public_body.url_name)%> to <%= h(@public_body.name) %> + <% else %> - <%= link_to make + " a new Freedom of Information request", new_request_to_body_url(:url_name => @public_body.url_name)%> + <%= _('<a href="%s">Make a new Freedom of Information request</a> to {{public_body_name}}', + :public_body_name => h(@public_body.name)) % new_request_to_body_url(:url_name => @public_body.url_name)%> <% end %> - to <%= h(@public_body.name) %> <% elsif @public_body.has_notes? %> <%= @public_body.notes_as_html %> <% elsif @public_body.not_requestable_reason == 'not_apply' %> - Freedom of Information law does not apply to this authority, so you cannot make - a request to it. + <%= _('Freedom of Information law does not apply to this authority, so you cannot make + a request to it.')%> <% elsif @public_body.not_requestable_reason == 'defunct' %> - This authority no longer exists, so you cannot make a request to it. + <%= _('This authority no longer exists, so you cannot make a request to it.')%> <% else %> - For an unknown reason, it is not possible to make a request to this authority. + <%= _('For an unknown reason, it is not possible to make a request to this authority.')%> <% end %> </strong> </div> <% if !@xapian_requests.nil? %> - <% if @xapian_requests.results.empty? %> + <% if @xapian_requests.results.empty? %> <% if @public_body.eir_only? %> <h2>Environmental Information Regulations requests made using this site</h2> + <h4>XXX this section needs localising re EIR as these are specific to UK law</h4> <p>Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.</p> <% else %> - <h2>Freedom of Information requests made using this site</h2> - <p>Nobody has made any Freedom of Information requests to <%=h(@public_body.name)%> using this site yet.</p> + <h2> <%= _('Freedom of Information requests made using this site')%></h2> + <p> <%= _('Nobody has made any Freedom of Information requests to {{public_body_name}} using this site yet.', :public_body_name => h(@public_body.name))%></p> <% end %> <% else %> <h2> <% if @public_body.eir_only? %> <%=pluralize(@public_body.info_requests.size, "Environmental Information Regulations request") %> made using this site <% else %> - <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> made using this site + <%= n_('%d Freedom of Information request', '%d Freedom of Information requests', @public_body.info_requests.size) % @public_body.info_requests.size %> made using this site <% end %> <%= @page_desc %> </h2> @@ -91,15 +89,15 @@ <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @public_body.info_requests.size) %> - <p>Only requests made using WhatDoTheyKnow.com are shown.</p> + <p> <%= _('Only requests made using {{site_name}} are shown.', :site_name => site_name) %></p> <% end %> <% else %> <% if @public_body.eir_only? %> <h2>Environmental Information Regulations requests made</h2> <% else %> - <h2>Freedom of Information requests made</h2> + <h2> <%= _('Freedom of Information requests made')%></h2> <% end %> - <p>The search index is currently offline, so we can't show the Freedom of Information requests that have been made to this authority.</p> + <p> <%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests that have been made to this authority.')%></p> <% end %> |