-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge 109][LanguageSettings] Don't show unknown translate languages
Filters unknown languages out of the the displayed always and never translate lists in the detailed language settings. While it is currently impossible for unknown languages to get onto a users always or never translate list it was possible in the past. This means that there are many older profiles that have unknown languages on theses lists. Don't show these languages in the settings since they are ignored by the translate pipelines and can break the UI if we do not have display names for them. This CL updates fake_language_settings_private so that the always translate list (translate_allowlist) is a dict instead of a list to replicate the actual preference. Before this CL the always and never translate preferences were not actually accessed by the UI in tests. This CL tests that unknown languages are not shown in the UI for both lists. (cherry picked from commit 83b77f3) Fixed: 1382938 Change-Id: I7cab10a5d23845ebefa20872e2a51f5dad57caa3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4023911 Reviewed-by: Megan Jablonski <megjablon@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Trevor Perrier <perrier@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1071950} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4034295 Auto-Submit: Trevor Perrier <perrier@chromium.org> Cr-Commit-Position: refs/branch-heads/5414@{#116} Cr-Branched-From: 4417ee5-refs/heads/main@{#1070088}
- Loading branch information
Trevor Perrier
authored and
Chromium LUCI CQ
committed
Nov 17, 2022
1 parent
74e27f6
commit c49d55b
Showing
5 changed files
with
101 additions
and
20 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