Skip to content

Ensure images always have a contentDescription#16356

Merged
AndyScherzinger merged 2 commits into
masterfrom
fix/noid/imageContentDescription
Jan 26, 2026
Merged

Ensure images always have a contentDescription#16356
AndyScherzinger merged 2 commits into
masterfrom
fix/noid/imageContentDescription

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Jan 25, 2026

Copy link
Copy Markdown
Member

... or null in case it is decorative.

adding @rakekniven for approval, because we have a string-freeze for Hub 26 Winter and merging this would add some new Strings which is bad for translation completeness but good from an accessibility point of view. See below.
(I didn't find the string to be in need of a descriptive translator comment, but if so, please let me know and I add them)

This info is important for screenreaders, so hard-coded strings should not be used but values in string.xml so there is no mix of languages when read to the users using screeenreader.

  • Tests written, or not not needed

@AndyScherzinger AndyScherzinger added 3. to review accessibility Accessibility improvements or accessibility-related defects. don't merge i18n needs discussion labels Jan 25, 2026
@AndyScherzinger AndyScherzinger force-pushed the fix/noid/imageContentDescription branch from eb37805 to 901a52d Compare January 25, 2026 16:49
@rakekniven

Copy link
Copy Markdown
Member

Hello,

From my side, that's OK.
I have no knowledge of the release planning from the Android app.

@AndyScherzinger

Copy link
Copy Markdown
Member Author

Thanks for the swift feedback @rakekniven 🙏

Plan would be to release or around the Hub release, hence around 18th February 🚀

@alperozturk96 alperozturk96 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for the PR. contentDescription should be translated string good point unless it is just decorative.

source

Image

Comment thread app/src/main/res/values/strings.xml Outdated
… case it is decorative

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger force-pushed the fix/noid/imageContentDescription branch from 901a52d to fa4d85f Compare January 26, 2026 09:01
@github-actions

Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions

Copy link
Copy Markdown

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16356.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code256256
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4343
Security1818
Total479479

@AndyScherzinger AndyScherzinger merged commit b2d9bbb into master Jan 26, 2026
18 of 21 checks passed
@AndyScherzinger AndyScherzinger deleted the fix/noid/imageContentDescription branch January 26, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review accessibility Accessibility improvements or accessibility-related defects. i18n

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants