Amazfit Bip: Add new latin languages

This commit is contained in:
DerFetzer 2019-05-14 20:58:07 +02:00
parent 2fd1d7b4d0
commit dd067eddd7
2 changed files with 40 additions and 0 deletions

View File

@ -515,6 +515,22 @@ public class AmazfitBipSupport extends HuamiSupport {
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "ru_RU";
break;
case 5:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "de_DE";
break;
case 6:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "it_IT";
break;
case 7:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "fr_FR";
break;
case 8:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "tr_TR";
break;
default:
switch (language) {
case "zh":
@ -534,6 +550,22 @@ public class AmazfitBipSupport extends HuamiSupport {
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "ru_RU";
break;
case "de":
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "de_DE";
break;
case "it":
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "it_IT";
break;
case "fr":
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "fr_FR";
break;
case "tr":
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "tr_TR";
break;
default:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "en_US";

View File

@ -356,6 +356,10 @@
<item name="2">@string/english</item>
<item name="3">@string/spanish</item>
<item name="4">@string/russian</item>
<item name="5">@string/german</item>
<item name="6">@string/italian</item>
<item name="7">@string/french</item>
<item name="8">@string/turkish</item>
</string-array>
<string-array name="pref_amazfitbip_language_values">
@ -365,6 +369,10 @@
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
</string-array>
<string-array name="pref_miband3_language">