-
Moe Ahmadi authored
Language Settings page features a list of user preferred languages sent in the Accept-Language HTTP header. Users can add, delete, and reorder these languages. Language Settings page also features a switch to enable/disable translation. If enabled, a trailing label appears for every language row indicating whether or not translate is offered for that language. A disclosure indicator is also added to every language row indicating this option can be changed. 1. In edit mode, the "Translate" and "Add Language..." buttons are disabled. 2. Languages can be deleted by swiping gesture or the red delete button in edit mode. 3. The last Translate-blocked language cannot be deleted similar to other platforms. 4. Translate cannot be offered for the last Translate-blocked language; therefore the option to "Offer Translate" is disabled for it. 5. Translate cannot be offered for the target language (which may not appear in the list, e.g., the device language); therefore the option to "Offer Translate" is disabled for it. Demo: https://drive.google.com/file/d/0B2sUCLY7X-D2enZRZE9hUmUwa0pjNkpYWHVFbzV6cEhDbUVr/view?usp=sharing Bug: 957688 Change-Id: Icdf005e04d1716c42ea249229dbc7f39a043e46f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595040Reviewed-by:
Sergio Collazos <sczs@chromium.org> Reviewed-by:
Peter Lee <pkl@chromium.org> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#658758}
7a6ede53