diff options
Diffstat (limited to 'app/views/general')
-rw-r--r-- | app/views/general/exception_caught.rhtml | 12 | ||||
-rw-r--r-- | app/views/general/frontpage.rhtml | 6 |
2 files changed, 8 insertions, 10 deletions
diff --git a/app/views/general/exception_caught.rhtml b/app/views/general/exception_caught.rhtml index 44d5803de..61337494d 100644 --- a/app/views/general/exception_caught.rhtml +++ b/app/views/general/exception_caught.rhtml @@ -1,13 +1,13 @@ -<h1>Sorry, we couldn't find that page</h1> +<h1><%= _("Sorry, we couldn't find that page") %></h1> -<p>The page either doesn't exist, or is broken. Things you can try now:</p> +<p><%= _("The page either doesn't exist, or is broken. Things you can try now:")%></p> <ul> -<li>Check for mistakes if you typed or copied the address.</li> -<li>Search the site to find what you were looking for. +<li><%= _("Check for mistakes if you typed or copied the address.")%></li> +<li><%= _("Search the site to find what you were looking for.")%> <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "search_form"}) do %> <%= text_field_tag 'query', params[:query], { :size => 30 } %> - <%= submit_tag "Search" %> + <%= submit_tag _("Search") %> <% end %> </li> <li><a href="/help/contact">Contact us</a> to tell us about @@ -15,4 +15,4 @@ <li>Go to our <a href="/">front page</a></li> </ul> -<p id="error_technical_details"><strong>Technical details:</strong> <%=@exception_class ? @exception_class : "Unknown"%></p> +<p id="error_technical_details"><%= _("<strong>Technical details:</strong>")%> <%=@exception_class ? @exception_class : _("Unknown")%></p> diff --git a/app/views/general/frontpage.rhtml b/app/views/general/frontpage.rhtml index 276ac70a7..dbed2f0e9 100644 --- a/app/views/general/frontpage.rhtml +++ b/app/views/general/frontpage.rhtml @@ -30,13 +30,11 @@ <div id="frontpage_examples"> <% if @popular_bodies.size > 0 %> <div id="examples_0"> - <ul> <% for popular_body in @popular_bodies %> - <li><%=public_body_link(popular_body)%> - <%= n_('%d request', '%d requests', popular_body.info_requests.count) % popular_body.info_requests.count %> + <li><%=public_body_link(popular_body)%> + <%= n_('%d request', '%d requests', popular_body.info_requests.count) % popular_body.info_requests.count %> </li> <% end%> - </ul> <p><strong> <%= link_to _('More authorities...'), list_public_bodies_default %> </strong></p> |