Screenshots: add support for specifying alt-text
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.
caption should have a different content and not describe the content of a screenshot word for word
Should alt text be translatable if we added it? It isn't in HTML...
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.
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?
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)
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.
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
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