ChromeVox: Don't announce 'en-us' -> 'en', or vice versa.
This change adds a special case to the voice switching code to suppress announcements when switching from 'en-us' to 'en', or vice versa. This was done for two main reasons: 1. This case frequently appears in the real-world, e.g. Docs, which was leading to overly verbose announcements. 2. This logic shouldn't be generalized to other languages. For example, 'pt' -> 'pt-br' or 'pt-br' -> 'pt' still warrants an announcement since Brazilian Portuguese is quite different from European Portuguese. Tests are included to confirm new behavior. switching is active. Bug: 1098548 Change-Id: Ifcfdcd53e12863fffd25ffb2dfafe8d91a718e4c AX-Relnotes: ChromeVox gives less frequent announcements when voice Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402152 Commit-Queue: Akihiro Ota <akihiroota@chromium.org> Reviewed-by:David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/master@{#816253}
Showing
Please register or sign in to comment