mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 19:36:50 +01:00
Huami: clean up supported languages
This commit is contained in:
parent
588bcffaab
commit
ebe2558690
@ -105,6 +105,36 @@ public class AmazfitBand5Coordinator extends HuamiCoordinator {
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getSupportedLanguageSettings(GBDevice device) {
|
||||
return new String[]{
|
||||
"auto",
|
||||
"ar_SA",
|
||||
"cs_CZ",
|
||||
"de_DE",
|
||||
"el_GR",
|
||||
"en_US",
|
||||
"es_ES",
|
||||
"fr_FR",
|
||||
"he_IL",
|
||||
"id_ID",
|
||||
"it_IT",
|
||||
"ja_JP",
|
||||
"ko_KO",
|
||||
"nl_NL",
|
||||
"pt_BR",
|
||||
"pl_PL",
|
||||
"ro_RO",
|
||||
"ru_RU",
|
||||
"th_TH",
|
||||
"tr_TR",
|
||||
"uk_UA",
|
||||
"vi_VN",
|
||||
"zh_CN",
|
||||
"zh_TW",
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBondingStyle() {
|
||||
return BONDING_STYLE_REQUIRE_KEY;
|
||||
|
@ -95,6 +95,26 @@ public class AmazfitNeoCoordinator extends HuamiCoordinator {
|
||||
};
|
||||
}
|
||||
|
||||
public String[] getSupportedLanguageSettings(GBDevice device) {
|
||||
return new String[]{
|
||||
"auto",
|
||||
"de_DE",
|
||||
"el_GR",
|
||||
"en_US",
|
||||
"es_ES",
|
||||
"fr_FR",
|
||||
"id_ID",
|
||||
"it_IT",
|
||||
"pt_PT",
|
||||
"pl_PL",
|
||||
"ru_RU",
|
||||
"uk_UA",
|
||||
"vi_VN",
|
||||
"zh_CN",
|
||||
"zh_TW",
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBondingStyle() {
|
||||
return BONDING_STYLE_REQUIRE_KEY;
|
||||
|
@ -108,6 +108,15 @@ public class AmazfitXCoordinator extends HuamiCoordinator {
|
||||
};
|
||||
}
|
||||
|
||||
public String[] getSupportedLanguageSettings(GBDevice device) {
|
||||
return new String[]{
|
||||
"auto",
|
||||
"en_US",
|
||||
"zh_CN",
|
||||
"zh_TW",
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBondingStyle() {
|
||||
return BONDING_STYLE_REQUIRE_KEY;
|
||||
|
@ -117,8 +117,6 @@ public class MiBand4Coordinator extends HuamiCoordinator {
|
||||
"fr_FR",
|
||||
"id_ID",
|
||||
"it_IT",
|
||||
"ja_JP",
|
||||
"ko_KO",
|
||||
"pt_PT",
|
||||
"pl_PL",
|
||||
"ru_RU",
|
||||
|
@ -105,6 +105,34 @@ public class MiBand5Coordinator extends HuamiCoordinator {
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getSupportedLanguageSettings(GBDevice device) {
|
||||
return new String[]{
|
||||
"auto",
|
||||
"ar_SA",
|
||||
"cs_CZ",
|
||||
"de_DE",
|
||||
"el_GR",
|
||||
"en_US",
|
||||
"es_ES",
|
||||
"fr_FR",
|
||||
"he_IL",
|
||||
"id_ID",
|
||||
"it_IT",
|
||||
"nl_NL",
|
||||
"pt_PT",
|
||||
"pl_PL",
|
||||
"ro_RO",
|
||||
"ru_RU",
|
||||
"th_TH",
|
||||
"tr_TR",
|
||||
"uk_UA",
|
||||
"vi_VN",
|
||||
"zh_CN",
|
||||
"zh_TW",
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBondingStyle() {
|
||||
return BONDING_STYLE_REQUIRE_KEY;
|
||||
|
@ -88,6 +88,34 @@ public class MiBand6Coordinator extends HuamiCoordinator {
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getSupportedLanguageSettings(GBDevice device) {
|
||||
return new String[]{
|
||||
"auto",
|
||||
"ar_SA",
|
||||
"cs_CZ",
|
||||
"de_DE",
|
||||
"el_GR",
|
||||
"en_US",
|
||||
"es_ES",
|
||||
"fr_FR",
|
||||
"he_IL",
|
||||
"id_ID",
|
||||
"it_IT",
|
||||
"nl_NL",
|
||||
"pt_PT",
|
||||
"pl_PL",
|
||||
"ro_RO",
|
||||
"ru_RU",
|
||||
"th_TH",
|
||||
"tr_TR",
|
||||
"uk_UA",
|
||||
"vi_VN",
|
||||
"zh_CN",
|
||||
"zh_TW",
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBondingStyle() {
|
||||
return BONDING_STYLE_REQUIRE_KEY;
|
||||
|
@ -1280,6 +1280,7 @@
|
||||
<item name="pt_BR">@string/portuguese</item>
|
||||
<item name="nl_NL">@string/dutch</item>
|
||||
<item name="pl_PL">@string/polish</item>
|
||||
<item name="cs_CZ">@string/czesh</item>
|
||||
<item name="tr_TR">@string/turkish</item>
|
||||
<item name="el_GR">@string/greek</item>
|
||||
<item name="ru_RU">@string/russian</item>
|
||||
@ -1290,6 +1291,7 @@
|
||||
<item name="vi_VN">@string/vietnamese</item>
|
||||
<item name="ja_JP">@string/japanese</item>
|
||||
<item name="ko_KO">@string/korean</item>
|
||||
<item name="he_IL">@string/hebrew</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_language_all_values">
|
||||
@ -1304,6 +1306,7 @@
|
||||
<item>pt_BR</item>
|
||||
<item>nl_NL</item>
|
||||
<item>pl_PL</item>
|
||||
<item>cs_CZ</item>
|
||||
<item>tr_TR</item>
|
||||
<item>el_GR</item>
|
||||
<item>ru_RU</item>
|
||||
@ -1314,6 +1317,7 @@
|
||||
<item>vi_VN</item>
|
||||
<item>ja_JP</item>
|
||||
<item>ko_KO</item>
|
||||
<item>he_IL</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_amazfitbip_language">
|
||||
@ -1364,30 +1368,6 @@
|
||||
<item>ru_RU</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_miband5_language">
|
||||
<item name="auto">@string/automatic</item>
|
||||
<item name="zh_CN">@string/simplified_chinese</item>
|
||||
<item name="zh_TW">@string/traditional_chinese</item>
|
||||
<item name="en_US">@string/english</item>
|
||||
<item name="ru_RU">@string/russian</item>
|
||||
<item name="es_ES">@string/spanish</item>
|
||||
<item name="it_IT">@string/italian</item>
|
||||
<item name="fr_FR">@string/french</item>
|
||||
<item name="de_DE">@string/german</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_miband5_language_values">
|
||||
<item>auto</item>
|
||||
<item>zh_CN</item>
|
||||
<item>zh_TW</item>
|
||||
<item>en_US</item>
|
||||
<item>ru_RU</item>
|
||||
<item>es_ES</item>
|
||||
<item>it_IT</item>
|
||||
<item>fr_FR</item>
|
||||
<item>de_DE</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_zetime_language">
|
||||
<item name="auto">@string/automatic</item>
|
||||
<item name="zh_CN">@string/simplified_chinese</item>
|
||||
|
@ -20,12 +20,4 @@
|
||||
android:persistent="true"
|
||||
android:summary="@string/bip_prefs_shotcuts_summary"
|
||||
android:title="@string/bip_prefs_shortcuts" />
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_language"
|
||||
android:defaultValue="auto"
|
||||
android:entries="@array/pref_miband5_language"
|
||||
android:entryValues="@array/pref_miband5_language_values"
|
||||
android:key="language"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_title_language" />
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
@ -11,15 +11,6 @@
|
||||
android:summary="@string/mi2_prefs_display_items_summary"
|
||||
android:title="@string/mi2_prefs_display_items" />
|
||||
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_language"
|
||||
android:defaultValue="auto"
|
||||
android:entries="@array/pref_miband5_language"
|
||||
android:entryValues="@array/pref_miband5_language_values"
|
||||
android:key="language"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_title_language" />
|
||||
|
||||
<MultiSelectListPreference
|
||||
android:icon="@drawable/ic_beep"
|
||||
android:defaultValue="@array/pref_amazfitneo_sounds_default"
|
||||
|
@ -20,12 +20,4 @@
|
||||
android:persistent="true"
|
||||
android:summary="@string/bip_prefs_shotcuts_summary"
|
||||
android:title="@string/bip_prefs_shortcuts" />
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_language"
|
||||
android:defaultValue="auto"
|
||||
android:entries="@array/pref_miband5_language"
|
||||
android:entryValues="@array/pref_miband5_language_values"
|
||||
android:key="language"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_title_language" />
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
@ -20,12 +20,4 @@
|
||||
android:persistent="true"
|
||||
android:summary="@string/bip_prefs_shotcuts_summary"
|
||||
android:title="@string/bip_prefs_shortcuts" />
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_language"
|
||||
android:defaultValue="auto"
|
||||
android:entries="@array/pref_miband5_language"
|
||||
android:entryValues="@array/pref_miband5_language_values"
|
||||
android:key="language"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_title_language" />
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
@ -20,14 +20,6 @@
|
||||
android:persistent="true"
|
||||
android:summary="@string/bip_prefs_shotcuts_summary"
|
||||
android:title="@string/bip_prefs_shortcuts" />
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_language"
|
||||
android:defaultValue="auto"
|
||||
android:entries="@array/pref_miband5_language"
|
||||
android:entryValues="@array/pref_miband5_language_values"
|
||||
android:key="language"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_title_language" />
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="force_new_protocol"
|
||||
|
Loading…
Reference in New Issue
Block a user