Skip to content
Snippets Groups Projects
Commit bb7adff7 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

ARIA attributes trad

parent ef9fdfb5
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,11 @@ ...@@ -4,7 +4,11 @@
:class="classType" :class="classType"
v-if="error"> v-if="error">
{{ error }} {{ error }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <button
type="button"
class="close"
data-dismiss="alert"
:aria-label="$t('aria.close')">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
......
...@@ -2,12 +2,8 @@ ...@@ -2,12 +2,8 @@
<nav :aria-label="$t('pagination.title')" v-if="nbPages > 1"> <nav :aria-label="$t('pagination.title')" v-if="nbPages > 1">
<ul class="pagination justify-content-center"> <ul class="pagination justify-content-center">
<li class="page-item" v-if="currentPage > 2 && nbPages > 3"> <li class="page-item" v-if="currentPage > 2 && nbPages > 3">
<a <a class="page-link" href="#" @click="firstPage($event)">
class="page-link" <span :aria-label="$t('pagination.page') + ' 1'">1</span>
href="#"
:aria-label="$t('pagination.first')"
@click="firstPage($event)">
<span aria-hidden="true">1</span>
</a> </a>
</li> </li>
<li class="page-item disabled" v-if="currentPage > 3 && nbPages > 4"> <li class="page-item disabled" v-if="currentPage > 3 && nbPages > 4">
...@@ -22,8 +18,10 @@ ...@@ -22,8 +18,10 @@
v-if="index != currentPage" v-if="index != currentPage"
class="page-link" class="page-link"
href="#" href="#"
@click="goto(index, $event)" @click="goto(index, $event)">
>{{ index }}</a <span :aria-label="$t('pagination.page') + ' ' + index">{{
index
}}</span></a
> >
<span v-else class="page-link">{{ index }}</span> <span v-else class="page-link">{{ index }}</span>
</li> </li>
...@@ -33,12 +31,10 @@ ...@@ -33,12 +31,10 @@
<span class="page-link"><span aria-hidden="true">...</span></span> <span class="page-link"><span aria-hidden="true">...</span></span>
</li> </li>
<li class="page-item" v-if="currentPage < nbPages - 1 && nbPages > 3"> <li class="page-item" v-if="currentPage < nbPages - 1 && nbPages > 3">
<a <a class="page-link" href="#" @click="lastPage($event)">
class="page-link" <span :aria-label="$t('pagination.page') + ' ' + nbPages">{{
href="#" nbPages
aria-label="$t('pagination.last')" }}</span>
@click="lastPage($event)">
<span aria-hidden="true">{{ nbPages }}</span>
</a> </a>
</li> </li>
</ul> </ul>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
@keyup="$emit('keyup', $event.keyCode)" @keyup="$emit('keyup', $event.keyCode)"
:placeholder="$t('recherche.title')" :placeholder="$t('recherche.title')"
:aria-label="$t('recherche.title')" :aria-label="$t('recherche.title')"
aria-describedby="rechHelp" /> :aria-describedby="help ? rechHelp : null" />
</div> </div>
<div <div
v-if="help" v-if="help"
......
<template> <template>
<nav aria-label="Fil d'Ariane" class="breadcrumb-wrapper rounded border"> <nav
:aria-label="$t('aria.ariane')"
class="breadcrumb-wrapper rounded border">
<ol class="breadcrumb m-0 p-0 d-none d-sm-flex"> <ol class="breadcrumb m-0 p-0 d-none d-sm-flex">
<li <li
class="breadcrumb-item" class="breadcrumb-item"
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<button <button
type="button" type="button"
class="btn-close position-absolute d-xl-none" class="btn-close position-absolute d-xl-none"
aria-label="Close" :aria-label="$t('aria.close')"
@click="toggleMenu"></button> @click="toggleMenu"></button>
</div> </div>
<nav class="py-2 rounded flex-grow-1"> <nav class="py-2 rounded flex-grow-1">
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
"title": "Apropos", "title": "Apropos",
"traducteurs": "Übersetzung:" "traducteurs": "Übersetzung:"
}, },
"aria": {
"ariane": "Brotkrümel",
"close": "Nah dran"
},
"aurevoir": "Auf Wiedersehen", "aurevoir": "Auf Wiedersehen",
"bienvenue": "Willkommen", "bienvenue": "Willkommen",
"bloc": { "bloc": {
...@@ -128,8 +132,7 @@ ...@@ -128,8 +132,7 @@
"non": "Nein", "non": "Nein",
"oui": "Ja", "oui": "Ja",
"pagination": { "pagination": {
"first": "Erstes Element", "page": "Buchseite",
"last": "Letzter Artikel",
"title": "Paginierungsschaltflächen" "title": "Paginierungsschaltflächen"
}, },
"params": { "params": {
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
"title": "About", "title": "About",
"traducteurs": "Translators :" "traducteurs": "Translators :"
}, },
"aria": {
"ariane": "Breadcrumb",
"close": "Close"
},
"aurevoir": "Goodbye to", "aurevoir": "Goodbye to",
"bienvenue": "Welcome to", "bienvenue": "Welcome to",
"bloc": { "bloc": {
...@@ -129,8 +133,7 @@ ...@@ -129,8 +133,7 @@
"non": "No", "non": "No",
"oui": "Yes", "oui": "Yes",
"pagination": { "pagination": {
"first": "First item", "page": "Page",
"last": "Last item",
"title": "Pagination buttons" "title": "Pagination buttons"
}, },
"params": { "params": {
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
"title": "Acerca de", "title": "Acerca de",
"traducteurs": "Traductores :" "traducteurs": "Traductores :"
}, },
"aria": {
"ariane": "Hilo de Ariadna",
"close": "Cerrar"
},
"aurevoir": "Salen", "aurevoir": "Salen",
"bienvenue": "Entran", "bienvenue": "Entran",
"bloc": { "bloc": {
...@@ -129,8 +133,7 @@ ...@@ -129,8 +133,7 @@
"non": "No", "non": "No",
"oui": "Sí", "oui": "Sí",
"pagination": { "pagination": {
"first": "Primer elemento", "page": "Página",
"last": "último artículo",
"title": "Botones de paginación" "title": "Botones de paginación"
}, },
"params": { "params": {
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
"title": "À propos", "title": "À propos",
"traducteurs": "Traducteurs :" "traducteurs": "Traducteurs :"
}, },
"aria": {
"ariane": "Fil d'ariane",
"close": "Fermer"
},
"aurevoir": "Au revoir à", "aurevoir": "Au revoir à",
"bienvenue": "Bienvenue à", "bienvenue": "Bienvenue à",
"bloc": { "bloc": {
...@@ -129,8 +133,7 @@ ...@@ -129,8 +133,7 @@
"non": "Non", "non": "Non",
"oui": "Oui", "oui": "Oui",
"pagination": { "pagination": {
"first": "Premier élément", "page": "Page",
"last": "Dernier élément",
"title": "Boutons de pagination" "title": "Boutons de pagination"
}, },
"params": { "params": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment