diff options
Diffstat (limited to 'app/views/general/frontpage.rhtml')
-rw-r--r-- | app/views/general/frontpage.rhtml | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/app/views/general/frontpage.rhtml b/app/views/general/frontpage.rhtml index 60bed18a4..ecb5720c2 100644 --- a/app/views/general/frontpage.rhtml +++ b/app/views/general/frontpage.rhtml @@ -2,31 +2,31 @@ <div id="frontpage_splash"> <div id="left_column"> <h1> - Make a new<br/> + <%= _("Make a new<br/> <strong>Freedom <span>of</span><br/> Information<br/> - request</strong> + request</strong>") %> </h1> - <a class="link_button_green_large" href="/en/new/tgq">Start now »</a> + <a class="link_button_green_large" href="/en/new/tgq"><%= _("Start now »") %></a> </div> <div id="right_column"> <div id="frontpage_search_box"> <h2> - Search over</br> - <strong><%= InfoRequest.count %> requests</strong> <span>and</span><br/> - <strong><%= PublicBody.count %> authorities</strong> + <%= _("Search over<br/> + <strong>{{number_of_requests}} requests</strong> <span>and</span><br/> + <strong>{{number_of_authorities}} authorities</strong>", + :number_of_requests => InfoRequest.count, :number_of_authorities => PublicBody.count) %> </h2> <% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %> + <div> <%= text_field_tag 'query', params[:query], { :size => 30 } %> <%= hidden_field_tag 'bodies', 1 %> - <%= submit_tag 'Search' %> + <%= submit_tag _('Search') %> + </div> <% end %> </div> <div id="frontpage_right_to_know"> - <h2> - Your <strong>Right to Know</strong> - </h2> - <p><%= render :partial => 'frontpage_intro_sentence' %></p> + <%= render :partial => 'frontpage_intro_sentence' %> </div> </div> <div style="clear:both"></div> @@ -35,8 +35,9 @@ <div id="frontpage_examples"> <% if @popular_bodies.size > 0 %> <div id="examples_0"> - <h3>Who has the information?</h3> - <%= site_name %> covers requests to <%= PublicBody.count %> authorities, including: + <h3><%= _("Who can I request information from?") %></h3> + <%= _("{{site_name}} covers requests to {{number_of_authorities}} authorities, including:", + :site_name => site_name, :number_of_authorities => PublicBody.count) %> <ul> <% for popular_body in @popular_bodies %> <li><%=public_body_link(popular_body)%> @@ -51,13 +52,14 @@ <% end %> <div id="examples_1"> - <h3>What are people asking?</h3> - <%= site_name %> users have asked <%= InfoRequest.count %> questions. + <h3><%= _("What information has been released?") %></h3> + <%= _("{{site_name}} users have made {{number_of_requests}} requests:", + :site_name => site_name, :number_of_requests => InfoRequest.count) %> <ul> <% for event in @successful_request_events %> <li> - <%= public_body_link(event.info_request.public_body) %> answered a question about + <%= public_body_link(event.info_request.public_body) %> answered a request about <%=link_to h(event.info_request.title), request_url(event.info_request)%> <%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(event.described_at)) %> <p class="excerpt" onclick="document.location.href='<%=request_url(event.info_request)%>'"><%= excerpt(event.info_request.title, "", 200) %></p> |