From e94e76824622f5b85b1c94c7afc5730c21420334 Mon Sep 17 00:00:00 2001 From: paidge <paidge_cs@hotmail.com> Date: Mon, 14 Feb 2022 12:38:19 +0100 Subject: [PATCH] add a description for search fields --- i18n/locales/de.json | 8 ++++++-- i18n/locales/en.json | 6 +++++- i18n/locales/es.json | 6 +++++- i18n/locales/fr.json | 6 +++++- pages/favoris.vue | 4 +++- pages/lexique.vue | 6 +++--- pages/membres/index.vue | 5 ++++- 7 files changed, 31 insertions(+), 10 deletions(-) diff --git a/i18n/locales/de.json b/i18n/locales/de.json index 47e3fc3..536fdba 100644 --- a/i18n/locales/de.json +++ b/i18n/locales/de.json @@ -88,7 +88,7 @@ "inout": "Bei- und Austritte des Vertrauensnetz in den 2 letzten Tagen", "inpreparation": "In Vorbereitung", "jours": "24 Stunden | {n} Tage", - "lexique": "Lexicon", + "lexique": "Lexikon", "membre": { "calculant": { "desc": "Mitglied, das seinen privaten Schlüssel zum Schürfen von Blöcken mithilfe von Duniter verwendet.", @@ -174,7 +174,11 @@ }, "pubkey": "Öffentlicher Schlüssel", "recherche": { - "desc": "Geben Sie den Anfang eines Pseudonyms oder eines öffentlichen Schlüssels ein", + "desc": { + "favourites": "Suchen Sie unter Ihren Favoriten", + "lexicon": "Suche im Lexikon", + "member": "Geben Sie den Anfang eines Pseudonyms oder eines öffentlichen Schlüssels ein" + }, "title": "Ihre Suche" }, "revocation": { diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 1a2e23f..641601b 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -175,7 +175,11 @@ }, "pubkey": "Public key", "recherche": { - "desc": "Enter the start of a nickname or public key", + "desc": { + "favourites": "Search among your favorites", + "lexicon": "Search in the lexicon", + "member": "Enter the start of a nickname or public key" + }, "title": "Your search" }, "revocation": { diff --git a/i18n/locales/es.json b/i18n/locales/es.json index 6dd446b..e453940 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -175,7 +175,11 @@ }, "pubkey": "Llave pública", "recherche": { - "desc": "Introduce el comienzo de un pseudónimo o llave pública", + "desc": { + "favourites": "Busca entre tus favoritos", + "lexicon": "Buscar en el léxico", + "member": "Introduce el comienzo de un pseudónimo o llave pública" + }, "title": "Buscar" }, "revocation": { diff --git a/i18n/locales/fr.json b/i18n/locales/fr.json index 293d3a3..f0235a0 100644 --- a/i18n/locales/fr.json +++ b/i18n/locales/fr.json @@ -175,7 +175,11 @@ }, "pubkey": "Clef publique", "recherche": { - "desc": "Saisissez le début d'un pseudo ou d'une clé publique", + "desc": { + "favourites": "Recherchez dans vos favoris", + "lexicon": "Recherchez dans le lexique", + "member": "Saisissez le début d'un pseudo ou d'une clé publique" + }, "title": "Votre recherche" }, "revocation": { diff --git a/pages/favoris.vue b/pages/favoris.vue index a1781c1..e6d8632 100644 --- a/pages/favoris.vue +++ b/pages/favoris.vue @@ -15,8 +15,10 @@ !$apollo.queries.favoris.loading && favoris && favoris.length != 0 "> <BtnSearch + v-if="favoris.length > 5" v-model="search" - class="col-sm-7 col-md-6 col-lg-5 col-xl-4 mx-auto" /> + :help="$t('recherche.desc.favourites')" + class="col-sm-7 col-md-6 col-lg-5 col-xl-4 mx-auto mb-4" /> <MemberList defaultSort="date_membership" :members="filteredFavoris" diff --git a/pages/lexique.vue b/pages/lexique.vue index 1446e2f..d531f00 100644 --- a/pages/lexique.vue +++ b/pages/lexique.vue @@ -1,12 +1,12 @@ <template> <main class="container"> - <div class="rech-lexique row mb-4"> + <div class="rech-lexique row pb-3"> <div class="col-md-6 mx-auto"> <h2 class="text-center my-5 font-weight-light">{{ $t("lexique") }}</h2> - <BtnSearch v-model="search" /> + <BtnSearch v-model="search" :help="$t('recherche.desc.lexicon')" /> </div> </div> - <div class="table-responsive"> + <div class="table-responsive mt-1"> <table class="table table-striped"> <thead> <tr class="d-none d-sm-table-row"> diff --git a/pages/membres/index.vue b/pages/membres/index.vue index 3fe9e63..a235a84 100644 --- a/pages/membres/index.vue +++ b/pages/membres/index.vue @@ -3,7 +3,10 @@ <h2 class="text-center my-5 font-weight-light">{{ $t("membres") }}</h2> <div class="row mb-4"> <div class="col-sm-8 col-md-6 col-lg-5 m-auto"> - <BtnSearch v-model="param" :help="$t('recherche.desc')" @keyup="save" /> + <BtnSearch + v-model="param" + :help="$t('recherche.desc.member')" + @keyup="save" /> </div> </div> <NavigationLoader :isLoading="$apollo.queries.idSearch.loading" /> -- GitLab