Skip to content

Conversation

@sachaandre
Copy link
Contributor

@sachaandre sachaandre commented Jul 19, 2025

Vient apporter une solution pour l'issue #3242
Fix #3242

Proposition de hint

  • en fr :
    • 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.
  • en en :
    • 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.

Modifications réalisées sans pouvoir le tester (je n'arrive pas à installer Osuny admin sur ma machine)

Copy link
Member

@arnaudlevy arnaudlevy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le texte est chouette mais il n'est pas aux clés conventionnelles

@sachaandre
Copy link
Contributor Author

Suite aux retours

J'ai mis le hint dans locales/en.yml et locales/fr.yml, et changé le nom internal_description_label en internal_description comme au début. (Changements egalement dans le Form)

Pour la phrase, j'ai changé les textes en espérant que ca corresponde + aux "clés conventionnelles"

FR : 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.

EN : 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.

@sachaandre
Copy link
Contributor Author

sachaandre commented Jul 23, 2025

Ajout d'un nouveau commit pour résoudre l'issue #3262

Changement de la vidéo en le contenu intégré

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 <a href="https://www.numerique.gouv.fr/publications/rgaa-accessibilite/methode-rgaa/criteres/#topic4" target="_blank">criterion 4.7 of RGAA</a>. 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 <a href="https://www.numerique.gouv.fr/publications/rgaa-accessibilite/methode-rgaa/criteres/#topic4" target="_blank">criterion 4.7 of RGAA</a>. Please add a title to the iframe.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"content" et pas "cotnet"

name: Name
communication/media/localization:
internal_description: Internal description
internal_description: Internal description
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cet espace ajouté ne sert à rien

} %>
<%= lf.input :internal_description %>
<%= lf.input :internal_description,
hint: t('internal_description_hint') %>
Copy link
Member

@pabois pabois Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il est inutile de forcer l'affichage d'un hint comme ça.
Si tu veux qu'un hint soit affiché il y a déjà une mécanique automatique qui le fait, à condition que tu mettes ta locale au bon endroit.
Il faut bouger ta clé pour qu'elle soit dans simple_form/hints/communication_media_localization/internal_description et ca l'affiche tout seul

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ce n'est pas le bon endroit pour cette clé

Copy link
Member

@arnaudlevy arnaudlevy Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sachaandre ce que veut dire @pabois c'est qu'il y a des clés conventionnelles pour les hints, de la forme suivante

  simple_form:
      communication_extranet:
        favicon: 'Fichier .png uniquement'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(remarque bien que c'est ce que j'avais expliqué au commentaire d'avant :p )

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem que en, pas le bon endroit

@arnaudlevy arnaudlevy changed the title Adding hint to internal_description field when adding a media Ajout d'un conseil dans la bibliothèque de médias Sep 8, 2025
@arnaudlevy
Copy link
Member

@sachaandre tu crois que tu peux finir cette PR stp ?

@pabois
Copy link
Member

pabois commented Nov 13, 2025

@sachaandre si tu préfères je la termine :)

@sachaandre
Copy link
Contributor Author

@sachaandre si tu préfères je la termine :)

Pardon oui, désolé je n'ai pas ouvert github depuis un petit bout de temps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manque de précision sur un champ de formulaire Media

3 participants