aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-07 09:39:03 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-07 09:39:03 +0100
commitd2fd05bb203466187ec87479f78792f3e047ff45 (patch)
tree1ac297c4f41562747a2592461b5370fab0720c1e
parent1799ec78dda0d0aba8845598e01693314bfbfe42 (diff)
Allow search label, placeholder and title to be localised.
-rw-r--r--app/views/general/_responsive_topnav.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/general/_responsive_topnav.html.erb b/app/views/general/_responsive_topnav.html.erb
index a817de662..cb8151467 100644
--- a/app/views/general/_responsive_topnav.html.erb
+++ b/app/views/general/_responsive_topnav.html.erb
@@ -23,12 +23,12 @@
<li id="navigation_search">
<form id="navigation_search_form" method="post" action="<%= search_redirect_path %>" role="search">
<label class="visually-hidden" for="navigation_search_button">
- Search
+ <%= _("Search") %>
</label>
- <%= text_field_tag 'query', params[:query], { :id => "navigation_search_button", :type => "search", :placeholder => "Search", :title => "type your search term here" } %>
+ <%= text_field_tag 'query', params[:query], { :id => "navigation_search_button", :type => "search", :placeholder => _("Search"), :title => _("type your search term here") } %>
<button type="submit">
<span class="visually-hidden">
- Submit Search
+ <%= _("Submit Search") %>
</span>
</button>
</form>