From c984963d00dc4b9ab74c1a92e41bc1d15a95a83b Mon Sep 17 00:00:00 2001 From: sachaandre Date: Sat, 19 Jul 2025 11:39:52 +0200 Subject: [PATCH 1/5] Adding hint to internal_description field when adding a media --- app/views/admin/communication/medias/_form.html.erb | 4 +++- config/locales/communication/en.yml | 3 ++- config/locales/communication/fr.yml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/admin/communication/medias/_form.html.erb b/app/views/admin/communication/medias/_form.html.erb index f3ae31929b..36c35c10a5 100644 --- a/app/views/admin/communication/medias/_form.html.erb +++ b/app/views/admin/communication/medias/_form.html.erb @@ -47,7 +47,9 @@ 'summernote-config' => 'link' } } %> - <%= lf.input :internal_description %> + <%= lf.input :internal_description, + label: t('internal_description_label'), + hint: t('internal_description_hint') %> <% content_for :action_bar_right do %> diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 7212f6aa96..181cd2c8cc 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -96,7 +96,8 @@ en: communication/media/collection/localization: name: Name communication/media/localization: - internal_description: Internal description + internal_description_label: Internal description + internal_description_hint: Complementary description of the image for the media library users. This text can help the media library users to find an image, have complementary informations about it or have special instructions regarding the use of the image. name: Name communication/website: about: About diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 73b552aa43..f5d38bfc0f 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -96,7 +96,8 @@ fr: communication/media/collection/localization: name: Nom communication/media/localization: - internal_description: Description interne + internal_description_label: Description interne + internal_description_hint: Description complémentaire de l'image à destination des les utilisateur·rices de la médiathèque, afin de faciliter sa recherche. Elle peut donner des informations complémentaires sur l'image et contenir des instructions spécifiques d'usage pour les utilisateur·rices de la médiathèque. name: Nom communication/website: about: Sujet du site From 2f1a2dae69c362e7ae8213574f0107e9f1d55b06 Mon Sep 17 00:00:00 2001 From: sachaandre Date: Sat, 19 Jul 2025 11:47:19 +0200 Subject: [PATCH 2/5] correction fr --- config/locales/communication/fr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index f5d38bfc0f..44daa0a0c0 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -97,7 +97,7 @@ fr: name: Nom communication/media/localization: internal_description_label: Description interne - internal_description_hint: Description complémentaire de l'image à destination des les utilisateur·rices de la médiathèque, afin de faciliter sa recherche. Elle peut donner des informations complémentaires sur l'image et contenir des instructions spécifiques d'usage pour les utilisateur·rices de la médiathèque. + internal_description_hint: Description complémentaire de l'image à destination des utilisateur·rices de la médiathèque, afin de faciliter sa recherche. Elle peut donner des informations complémentaires sur l'image et contenir des instructions spécifiques d'usage pour les utilisateur·rices de la médiathèque. name: Nom communication/website: about: Sujet du site From a223b990125a0652321da93655ad2f8232e93f23 Mon Sep 17 00:00:00 2001 From: sachaandre Date: Wed, 23 Jul 2025 10:03:35 +0200 Subject: [PATCH 3/5] =?UTF-8?q?Corrections=20suite=20commentaires=20PR=20+?= =?UTF-8?q?=20Changement=20phras=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/locales/communication/en.yml | 3 +-- config/locales/communication/fr.yml | 3 +-- config/locales/en.yml | 1 + config/locales/fr.yml | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 181cd2c8cc..f3f32e184d 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -96,8 +96,7 @@ en: communication/media/collection/localization: name: Name communication/media/localization: - internal_description_label: Internal description - internal_description_hint: Complementary description of the image for the media library users. This text can help the media library users to find an image, have complementary informations about it or have special instructions regarding the use of the image. + internal_description: Internal description name: Name communication/website: about: About diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 44daa0a0c0..73b552aa43 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -96,8 +96,7 @@ fr: communication/media/collection/localization: name: Nom communication/media/localization: - internal_description_label: Description interne - internal_description_hint: Description complémentaire de l'image à destination des utilisateur·rices de la médiathèque, afin de faciliter sa recherche. Elle peut donner des informations complémentaires sur l'image et contenir des instructions spécifiques d'usage pour les utilisateur·rices de la médiathèque. + internal_description: Description interne name: Nom communication/website: about: Sujet du site diff --git a/config/locales/en.yml b/config/locales/en.yml index 5338068160..1eb0432b50 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -404,6 +404,7 @@ en: status: "Status:" still_pending: "Your import has not been processed yet. You will receive an email as soon as it's ready." inactivity_alert: "It seems you have been away a little bit too long. Could you please retry?" + internal_description_hint: Complementary description of the image for the media library users. You can write this text to help the media library users to find an image, have complementary informations about it or have special instructions regarding the use of the image. internationalization: label: Internationalization legal: Legal diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 609e21089f..49b0198189 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -404,6 +404,7 @@ fr: status: "Statut :" still_pending: "Votre import est toujours en cours de traitement. Vous recevrez un email dès qu'il est prêt." inactivity_alert: "Il semble que vous soyez resté sur la page un peu trop longtemps. Pouvez-vous ré-essayer ?" + internal_description_hint: Description complémentaire de l'image. Vous pouvez donner des informations complémentaires sur l'image, utiles pour la recherche et indiquer des instructions spécifiques d'usage pour les utilisateur·rices de la médiathèque. internationalization: label: Internationalisation legal: Légal From e04e008d1c1c1bb80a6f233478c57ee4121da305 Mon Sep 17 00:00:00 2001 From: sachaandre Date: Wed, 23 Jul 2025 10:05:08 +0200 Subject: [PATCH 4/5] removing line from form --- app/views/admin/communication/medias/_form.html.erb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/views/admin/communication/medias/_form.html.erb b/app/views/admin/communication/medias/_form.html.erb index 36c35c10a5..3d50315d93 100644 --- a/app/views/admin/communication/medias/_form.html.erb +++ b/app/views/admin/communication/medias/_form.html.erb @@ -48,7 +48,6 @@ } } %> <%= lf.input :internal_description, - label: t('internal_description_label'), hint: t('internal_description_hint') %> From b49db8b1b8cfe4a637c09331836a42010f5aaef6 Mon Sep 17 00:00:00 2001 From: sachaandre Date: Wed, 23 Jul 2025 10:52:02 +0200 Subject: [PATCH 5/5] Changes to resolve #3262 --- config/locales/en.yml | 2 +- config/locales/fr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 1eb0432b50..bc89d9b214 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -5,7 +5,7 @@ en: templates: embed: title_missing: - text_html: The HTML embedding has not title. This will prevent blind people from knowing what the video is about, as mentioned in criterion 4.7 of RGAA. Please add a title to the iframe. + text_html: The HTML embedding has not title. This will prevent blind people from knowing what the integrated cotnent is about, as mentioned in criterion 4.7 of RGAA. Please add a title to the iframe. title: No frame title transcription_missing: text_html: The HTML iframe has no text transcription for blind people, for people with low bandwidth or no javascript enabled. Please add a text transcription. diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 49b0198189..678d76aedc 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -5,7 +5,7 @@ fr: templates: embed: title_missing: - text_html: L'intégration HTML n'a pas de titre, cela va empêcher les personnes malvoyantes de savoir de quoi parle la vidéo, comme expliqué dans le critère 4.7 du RGAA. Merci d'ajouter une balise title explicite à votre iframe. + text_html: L'intégration HTML n'a pas de titre, cela va empêcher les personnes malvoyantes de savoir de quoi parle le contenu intégré, comme expliqué dans le critère 4.7 du RGAA. Merci d'ajouter une balise title explicite à votre iframe. title: Pas de titre de cadre transcription_missing: text_html: Le cadre HTML n'est pas accompagné d'une transcription textuelle pour les personnes malvoyantes, ou pour les situations de faible débit qui empêcheraient la lecture.