1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Amazfit Cor: Restrict language settings to English, Spanish, Chinese, Russian

This commit is contained in:
Andreas Shimokawa 2019-05-22 11:00:06 +02:00
parent 038f101a12
commit da456e63e9
2 changed files with 20 additions and 2 deletions

View File

@ -375,6 +375,24 @@
<item>ru_RU</item> <item>ru_RU</item>
</string-array> </string-array>
<string-array name="pref_amazfitcor_language">
<item name="auto">@string/automatic</item>
<item name="zh_CH">@string/simplified_chinese</item>
<item name="zh_TW">@string/traditional_chinese</item>
<item name="en_US">@string/english</item>
<item name="es_ES">@string/spanish</item>
<item name="ru_RU">@string/russian</item>
</string-array>
<string-array name="pref_amazfitcor_language_values">
<item>auto</item>
<item>zh_CH</item>
<item>zh_TW</item>
<item>en_US</item>
<item>es_ES</item>
<item>ru_RU</item>
</string-array>
<string-array name="pref_miband3_language"> <string-array name="pref_miband3_language">
<item name="auto">@string/automatic</item> <item name="auto">@string/automatic</item>
<item name="zh_CH">@string/simplified_chinese</item> <item name="zh_CH">@string/simplified_chinese</item>

View File

@ -12,8 +12,8 @@
<ListPreference <ListPreference
android:icon="@drawable/ic_language" android:icon="@drawable/ic_language"
android:defaultValue="auto" android:defaultValue="auto"
android:entries="@array/pref_amazfitbip_language" android:entries="@array/pref_amazfitcor_language"
android:entryValues="@array/pref_amazfitbip_language_values" android:entryValues="@array/pref_amazfitcor_language_values"
android:key="language" android:key="language"
android:summary="%s" android:summary="%s"
android:title="@string/pref_title_language" /> android:title="@string/pref_title_language" />