diff --git a/lib/gollum/locales/en.yml b/lib/gollum/locales/en.yml index 416200e9..363652ee 100644 --- a/lib/gollum/locales/en.yml +++ b/lib/gollum/locales/en.yml @@ -29,4 +29,17 @@ en: no_pages_in: There are no pages in on: "on" title: "Overview of %{ref}" - + precious/views/search: + aria: + show_all: "Show all %{count} hits in this page" + back_to_top: Back to Top + no_results: There are no results for your search + pagination: + aria: + label: Pagination + next_page: Next page + previous_page: Previous page + next: Next + previous: Previous + search_results_for: Search results for + title: "Search results for %{query}" diff --git a/lib/gollum/templates/search.mustache b/lib/gollum/templates/search.mustache index 365a6f17..b8b38b41 100644 --- a/lib/gollum/templates/search.mustache +++ b/lib/gollum/templates/search.mustache @@ -4,7 +4,7 @@

- Search results for + {{t.search_results_for}} {{name}}

@@ -21,7 +21,12 @@
  • {{filename_count}} - {{count}}  {{name}} - +
  • @@ -29,7 +34,6 @@
  • {{.}}
  • {{/context}}
    - {{/results}} @@ -37,12 +41,12 @@ {{#no_results}}

    - There are no results for your search {{query}}. + {{t.no_results}} {{query}}.

    {{/no_results}} diff --git a/lib/gollum/views/search.rb b/lib/gollum/views/search.rb index 05da778f..4ace9e3e 100644 --- a/lib/gollum/views/search.rb +++ b/lib/gollum/views/search.rb @@ -23,7 +23,7 @@ module Precious end def title - "Search results for " + @query + t[:title] end def search