Skip to content

Commit

Permalink
Merge pull request #2151 from labradford/arclight-841-add-aria-labels…
Browse files Browse the repository at this point in the history
…-to-sections

add i18n keys for aria-labels
  • Loading branch information
jcoyne committed Oct 1, 2019
2 parents 7ac174a + 9ce7ab2 commit 3823c6d
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/blacklight.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% content_for(:content) do %>
<% if content_for? :sidebar %>
<section id="content" class="<%= main_content_classes %> order-last" aria-label="search results">
<section id="content" class="<%= main_content_classes %> order-last" aria-label="<%= t('blacklight.search.documents.aria.search_results') %>">
<%= yield %>
</section>

<section id="sidebar" class="<%= sidebar_classes %> order-first" aria-label="limit your search">
<section id="sidebar" class="<%= sidebar_classes %> order-first" aria-label="<%= t('blacklight.search.documents.aria.limit_search') %>">
<%= content_for(:sidebar) %>
</section>
<% else %>
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ de:
one: '<strong>1 von 1</strong>'
other: '<strong>%{current}</strong> von <strong>%{total}</strong>'
documents:
aria:
search_results: 'Suchergebnisse'
limit_search: 'Suche beschränken'
counter: '%{counter}. '
facets:
title: 'Suche beschränken'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ en:
one: '<strong>1 of 1</strong>'
other: '<strong>%{current}</strong> of <strong>%{total}</strong>'
documents:
aria:
search_results: 'search results'
limit_search: 'limit your search'
counter: '%{counter}. '
facets:
title: 'Limit your search'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ es:
one: '<strong>1 de 1</strong>'
other: '<strong>%{current}</strong> de <strong>%{total}</strong>'
documents:
aria:
search_results: 'Resultados de la búsqueda'
limit_search: 'Limite su búsqueda'
counter: '%{counter}.'
facets:
title: 'Limite su búsqueda'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ fr:
one: '<b>1 sur 1</b>'
other: '<b>%{current}</b> sur <b>%{total}</b>'
documents:
aria:
search_results: 'Résultats de recherche'
limit_search: 'Limiter votre recherche'
counter: '%{counter}. '
facets:
title: 'Limiter votre recherche'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ hu:
one: '<strong>1 / 1</strong>'
other: '<strong>%{current}</strong> / <strong>%{total}</strong>'
documents:
aria:
search_results: 'Keresés eredményei'
limit_search: 'Szűrje tovább a keresését'
counter: '%{counter}. '
facets:
title: 'Szűrje tovább a keresését'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ it:
one: '<strong>1 di 1</strong>'
other: '<strong>%{current}</strong> di <strong>%{total}</strong>'
documents:
aria:
search_results: 'Risultati della ricerca'
limit_search: 'Affina la ricerca'
counter: '%{counter}. '
facets:
title: 'Affina la ricerca'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ nl:
one: '<strong>1 van 1</strong>'
other: '<strong>%{current}</strong> van <strong>%{total}</strong>'
documents:
aria:
search_results: 'Zoek resultaten'
limit_search: 'Verfijn uw zoekopdracht'
counter: '%{counter}. '
facets:
title: 'Verfijn uw zoekopdracht'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ pt-BR:
one: '<strong>1 de 1</strong>'
other: '<strong>%{current}</strong> de <strong>%{total}</strong>'
documents:
aria:
search_results: 'Resultados da Busca'
limit_search: 'Filtre sua busca'
counter: '%{counter}. '
facets:
title: 'Filtre sua busca'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.sq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ sq:
one: '<strong>1 prej 1</strong>'
other: '<strong>%{current}</strong> prej <strong>%{total}</strong>'
documents:
aria:
search_results: 'Rezultatet e kërkimit'
limit_search: 'Kufizo këkimin'
counter: '%{counter}. '
facets:
title: 'Kufizo këkimin'
Expand Down
3 changes: 3 additions & 0 deletions config/locales/blacklight.zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ zh:
one: '<strong>1 / 1</strong>'
other: '<strong>%{current}</strong> / <strong>%{total}</strong>'
documents:
aria:
search_results: '搜索结果'
limit_search: '限定搜索'
counter: '%{counter}. '
facets:
title: '限定搜索'
Expand Down

0 comments on commit 3823c6d

Please sign in to comment.