diff options
Diffstat (limited to 'app/views/public_body')
-rw-r--r-- | app/views/public_body/_body_listing.rhtml | 2 | ||||
-rw-r--r-- | app/views/public_body/_body_listing_single.rhtml | 2 | ||||
-rw-r--r-- | app/views/public_body/list.rhtml | 14 | ||||
-rw-r--r-- | app/views/public_body/show.rhtml | 1 | ||||
-rw-r--r-- | app/views/public_body/view_email.rhtml | 16 | ||||
-rw-r--r-- | app/views/public_body/view_email_captcha.rhtml | 6 |
6 files changed, 20 insertions, 21 deletions
diff --git a/app/views/public_body/_body_listing.rhtml b/app/views/public_body/_body_listing.rhtml index 48eb649c2..48b6e8245 100644 --- a/app/views/public_body/_body_listing.rhtml +++ b/app/views/public_body/_body_listing.rhtml @@ -1,5 +1,5 @@ <% if public_bodies.empty? %> - None found. + <%= _("None found.")%> <% else %> <% for public_body in public_bodies %> <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => public_body } %> diff --git a/app/views/public_body/_body_listing_single.rhtml b/app/views/public_body/_body_listing_single.rhtml index fdd0c6b75..97cfd2e71 100644 --- a/app/views/public_body/_body_listing_single.rhtml +++ b/app/views/public_body/_body_listing_single.rhtml @@ -20,7 +20,7 @@ <span class="bottomline"> <%= pluralize(public_body.info_requests.size, "request") %> made. <% if !@include_request_link_in_authority_listing.nil? %> - <%= link_to "Make your own request", public_body_url(public_body) %>. + <%= link_to _("Make your own request"), public_body_url(public_body) %>. <% end %> <br> Added on <%= simple_date(public_body.created_at) %>. diff --git a/app/views/public_body/list.rhtml b/app/views/public_body/list.rhtml index dc6d0ca0e..5d88b1501 100644 --- a/app/views/public_body/list.rhtml +++ b/app/views/public_body/list.rhtml @@ -1,8 +1,8 @@ <div id="body_sidebar"> - <h1>Show only...</h1> + <h1><%=_('Show only...')%></h1> - <h2>Alphabet</h2> + <h2><%=_('Alphabet') %></h2> <ul><li> <%= render :partial => 'alphabet' %> </li></ul> @@ -26,21 +26,21 @@ </ul> <p> - <a href="/help/requesting#missing_body">Are we missing a public authority?</a> + <%= _('<a href="%s">Are we missing a public authority?</a>.') % [help_requesting_path + '#missing_body'] %> </p> <p> - <%= link_to "List of all authorities (CSV)", all_public_bodies_csv_url() %> + <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %> </p> </div> -<% @title = "Public authorities - " + @description %> +<% @title = _("Public authorities - {{description}}", :description => @description) %> <h1><%=@title%></h1> <p class="subtitle"> - <%= @public_bodies.size %> in total - (<a href="/help/requesting#missing_body">can't find the one you want?</a>) + <%= @public_bodies.size %> <%= _('in total') %> + (<%= _('<a href="%s">can\'t find the one you want?</a>') % [help_requesting_path + '#missing_body'] %>) </p> <% if @tag.size == 1 %> diff --git a/app/views/public_body/show.rhtml b/app/views/public_body/show.rhtml index 8b56d68c0..e152498d7 100644 --- a/app/views/public_body/show.rhtml +++ b/app/views/public_body/show.rhtml @@ -1,5 +1,4 @@ <% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %> - <div id="request_sidebar"> <h2><%= _('Track this authority')%></h2> <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %> diff --git a/app/views/public_body/view_email.rhtml b/app/views/public_body/view_email.rhtml index 2bd7c38c4..3a92e9703 100644 --- a/app/views/public_body/view_email.rhtml +++ b/app/views/public_body/view_email.rhtml @@ -4,18 +4,18 @@ <p> <% if @public_body.is_requestable? %> - WhatDoTheyKnow sends new requests to <strong><%=h @public_body.request_email%></strong> for this authority. + <% _('WhatDoTheyKnow sends new requests to')%> <strong><%=h @public_body.request_email%></strong><% _(' for this authority.')%> <% else %> <% if @public_body.not_requestable_reason == 'not_apply' %> - <p>Freedom of Information law no longer applies to this authority. - Follow up messages to existing requests are sent to <strong><%=h @public_body.request_email%></strong>. + <p><% _('Freedom of Information law no longer applies to this authority. + Follow up messages to existing requests are sent to ')%><strong><%=h @public_body.request_email%></strong>. </p> <% elsif @public_body.not_requestable_reason == 'defunct' %> <p><%=h @public_body.name %> no longer exists. - Follow up messages to existing requests are sent to <strong><%=h @public_body.request_email%></strong>. + <% _('Follow up messages to existing requests are sent to ')%><strong><%=h @public_body.request_email%></strong>. </p> <% elsif @public_body.not_requestable_reason == 'bad_contact' %> - <p>We do not have a working request email address for this authority. + <p><% _('We do not have a working request email address for this authority.')%> </p> <% else %> <% raise "unknown reason " + @reason %> @@ -26,10 +26,10 @@ <p> <% if @public_body.is_requestable? || @public_body.not_requestable_reason != 'bad_contact' %> - If the address is wrong, or you know a better address, please <a href="/help/contact">contact us</a>. + <% _('If the address is wrong, or you know a better address, please <a href="%s">contact us</a>.')% [help_contact_path]%> <% else %> - If you know the address to use, then please <a href="/help/contact">send it to us</a>. - You may be able to find the address on their website, or by phoning them up and asking. + <% _(' If you know the address to use, then please <a href="%s">send it to us</a>. + You may be able to find the address on their website, or by phoning them up and asking.')% [help_contact_path] %> <% end %> </p> diff --git a/app/views/public_body/view_email_captcha.rhtml b/app/views/public_body/view_email_captcha.rhtml index 13741c292..492933078 100644 --- a/app/views/public_body/view_email_captcha.rhtml +++ b/app/views/public_body/view_email_captcha.rhtml @@ -2,15 +2,15 @@ <h1>View FOI email address for '<%=public_body_link(@public_body)%>'</h1> -<p>To view the email address that we use to send FOI requests to <%=h @public_body.name%>, -please enter these words.<p> +<p><% _('To view the email address that we use to send FOI requests to ')%><%=h @public_body.name%>, +<% _('please enter these words.')%><p> <% form_for :contact do |f| %> <%= recaptcha_tags %> <%= hidden_field_tag(:submitted_view_email, { :value => 1 } ) %> - <p><%= submit_tag "View email" %></p> + <p><%= submit_tag _("View email") %></p> <% end %> |