1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Amazfit Bip: Support Russian language.

Closes #1145
This commit is contained in:
Andreas Shimokawa 2018-07-16 14:36:52 +02:00
parent 46f3686764
commit f2aa71e32c
3 changed files with 13 additions and 2 deletions

View File

@ -50,12 +50,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.btle.actions.ConditionalWrit
import nodomain.freeyourgadget.gadgetbridge.service.btle.profiles.alertnotification.AlertCategory;
import nodomain.freeyourgadget.gadgetbridge.service.btle.profiles.alertnotification.AlertNotificationProfile;
import nodomain.freeyourgadget.gadgetbridge.service.btle.profiles.alertnotification.NewAlert;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip.operations.AmazfitBipFetchLogsOperation;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.HuamiIcon;
import nodomain.freeyourgadget.gadgetbridge.service.devices.miband.NotificationStrategy;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip.operations.AmazfitBipFetchLogsOperation;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.MiBand2Support;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.operations.FetchActivityOperation;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.operations.FetchSportsSummaryOperation;
import nodomain.freeyourgadget.gadgetbridge.service.devices.miband.NotificationStrategy;
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
import nodomain.freeyourgadget.gadgetbridge.util.StringUtils;
import nodomain.freeyourgadget.gadgetbridge.util.Version;
@ -427,6 +427,10 @@ public class AmazfitBipSupport extends MiBand2Support {
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_SPANISH;
localeString = "es_ES";
break;
case 4:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "ru_RU";
break;
default:
switch (language) {
case "zh":
@ -442,6 +446,10 @@ public class AmazfitBipSupport extends MiBand2Support {
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_SPANISH;
localeString = "es_ES";
break;
case "ru":
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "ru_RU";
break;
default:
command_old = AmazfitBipService.COMMAND_SET_LANGUAGE_ENGLISH;
localeString = "en_US";

View File

@ -258,6 +258,7 @@
<item name="1">@string/traditional_chinese</item>
<item name="2">@string/english</item>
<item name="3">@string/spanish</item>
<item name="4">@string/russian</item>
</string-array>
<string-array name="pref_amazfitbip_language_values">
@ -266,6 +267,7 @@
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>
<string-array name="prefs_heartrate_measurement_interval">

View File

@ -421,6 +421,7 @@
<string name="traditional_chinese">Traditional Chinese</string>
<string name="english">English</string>
<string name="spanish">Spanish</string>
<string name="russian">Russian</string>
<string name="FetchActivityOperation_about_to_transfer_since">About to transfer data since %1$s</string>