-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TranslationController to back audio language.
This updates ProfileManagementController to use TranslationController as the actual source of truth for a profile's audio language setting. It doesn't move any code away from AudioLanguage, but it does make OppiaLanguage the true proto backing this setting now (just in a way hidden from UI code). Long-term, AudioLanguage should be removed. This updates calling code that needs the audio language property to use a new getter in ProfileManagementController. The old audioLanguage property in Profile has been removed (which will result in a setting regression for users, but this is considered fine since we're in beta and it's a small regression most users are unlikely to even notice). French and Chinese have been removed entirely from AudioLanguage since they aren't valid languages for the app at the moment (per the OppiaLanguage enum and supported languages configurations). TranslationController was updated to persist written translation and audio language settings since, before, only the app language selection was persisted.
- Loading branch information
1 parent
f9106d9
commit 10a72b4
Showing
11 changed files
with
316 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.