<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory
android:key="app_language_section"
android:order="1">
<org.chromium.chrome.browser.language.settings.LanguageItemPickerPreference
android:key="app_language_preference" />
</PreferenceCategory>
<PreferenceCategory
android:key="content_languages_section"
android:title="@string/languages_content_title"
android:order="2"
app:allowDividerAbove="true">
<org.chromium.chrome.browser.language.settings.ContentLanguagesPreference
android:key="content_languages_preference"
android:layout="@layout/languages_preference"
android:widgetLayout="@layout/accept_languages_list" />
</PreferenceCategory>
<PreferenceCategory
android:key="translation_settings_section"
android:order="3"
android:title="@string/languages_settings_translation_title"
app:allowDividerAbove="true"
app:allowDividerBelow="false">
<org.chromium.components.browser_ui.settings.ChromeSwitchPreference
android:key="translate_switch"
android:summaryOn="@string/languages_send_translate_switch"
android:summaryOff="@string/languages_send_translate_switch"
app:allowDividerAbove="false"
app:allowDividerBelow="true"/>
<PreferenceCategory
android:key="translation_advanced_settings_section"
android:layout="@layout/preference_category_no_title_or_padding"
app:initialExpandedChildrenCount="0"
app:allowDividerAbove="true"
app:allowDividerBelow="false">
<org.chromium.chrome.browser.language.settings.LanguageItemPickerPreference
android:key="translate_settings_target_language"
android:title="@string/languages_settings_target"
app:allowDividerAbove="false"
app:allowDividerBelow="false" />
<org.chromium.chrome.browser.language.settings.LanguageItemListPreference
android:key="translate_settings_always_languages"
android:title="@string/languages_settings_automatic"
app:allowDividerAbove="false"
app:allowDividerBelow="false" />
<org.chromium.chrome.browser.language.settings.LanguageItemListPreference
android:key="translate_settings_never_languages"
android:title="@string/languages_settings_dont_offer_langs"
app:allowDividerAbove="false"
app:allowDividerBelow="false" />
</PreferenceCategory>
</PreferenceCategory>
</PreferenceScreen>