-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Apply languageIdentifier attribute to user-generated content where possible #881
base: develop
Are you sure you want to change the base?
Conversation
|
…es when reading posts in other languages accessibilityLanguage won’t work since the non-content text (such as the date) is in the system default language
@@ -31,6 +31,9 @@ public final class StatusEdit: NSManagedObject { | |||
// sourcery: autoUpdatableObject, autoGenerateProperty | |||
@NSManaged public var spoilerText: String? | |||
|
|||
// sourcery: autoUpdatableObject, autoGenerateProperty | |||
@NSManaged public var status: Status? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Does the CoreData model already reflect this relationship? I haven't seen any changes to our Model in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes:
mastodon-ios/MastodonSDK/Sources/CoreDataStack/CoreData.xcdatamodeld/CoreData 8.xcdatamodel/contents
Line 255 in d24fe00
<relationship name="status" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Status" inverseName="editHistory" inverseEntity="Status"/> |
[builds on #880, feel free to merge just this one to get the changes from both]
This allows VoiceOver to dynamically switch voices based on the language a post was written in, without affecting the pronunciation of UI elements. For example, if reading a German post while the device is set to English, the English voice would read the username, date, “# media,” and “Actions available”, while the German voice would read the actual post content. This also applies to alt text (which inherits the language of the post).
It would be nice to also read people’s names and bios in the appropriate language, but that’s blocked on mastodon/mastodon#23067 which I’ve just opened.