Skip to content

Screenshots: add support for specifying alt-text #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sgued opened this issue Jan 9, 2025 · 8 comments
Open

Screenshots: add support for specifying alt-text #690

sgued opened this issue Jan 9, 2025 · 8 comments

Comments

@sgued
Copy link

sgued commented Jan 9, 2025

Alt text is useful to describe the screenshot for screen readers and for when the image hasn't loaded. I currently have not found any way to specify alt-text in the appstream metadata, and flathub uses alt="" for the screenshots.

@razzeee
Copy link
Contributor

razzeee commented Mar 29, 2025

caption should have a different content and not describe the content of a screenshot word for word

@ximion
Copy link
Owner

ximion commented Mar 29, 2025

Should alt text be translatable if we added it? It isn't in HTML...

@razzeee
Copy link
Contributor

razzeee commented Mar 30, 2025

Should alt text be translatable if we added it? It isn't in HTML...

Yes. We need to show the correct translated alt text for your current language, at least for the flathub website.

@ximion
Copy link
Owner

ximion commented Mar 30, 2025

But the screenshot isn't translated... And we already have translatable screenshots. So, any alt text could simply be in the language of the screenshot image, couldn't it?

@razzeee
Copy link
Contributor

razzeee commented Mar 30, 2025

But the screenshot isn't translated... And we already have translatable screenshots. So, any alt text could simply be in the language of the screenshot image, couldn't it?

That sounds correct.

For flathub, we're not using that (yet)

@sgued
Copy link
Author

sgued commented Mar 30, 2025

Screenshots should be translatable (AFAIK that is not yet possible?), and that should allow changing the source URL for the image, and IMHO it would make sense to have the alt-text always match the language of the screenshots? If that doesn't work for some app the app can just have the multiple languages link to the same URL.

@razzeee
Copy link
Contributor

razzeee commented Mar 30, 2025

Quicstart also recommends english screenshots, which would be weird, if we actually supported other languages https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#qsr-app-screenshots-info

I would have expected a wording more like At least screenshots with english as the display language should be provided

@ximion
Copy link
Owner

ximion commented Mar 30, 2025

The quickstart guide is not comprehensive, it is intentionally brief to make people read less to get a decent file done. It has also not been updated in ages, especially not since screenshot translations have been added.
Translations are possible, at the image level: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-screenshots

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

No branches or pull requests

3 participants