From 4d4e0ffab362e128f55a30a50695d78887076640 Mon Sep 17 00:00:00 2001 From: Philoul Date: Fri, 15 Jan 2021 00:27:05 +0100 Subject: [PATCH] Add String for Bolus Progress / Cancel Button for translation --- .../info/nightscout/androidaps/data/ListenerService.java | 7 ++++--- wear/src/main/res/values/strings.xml | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wear/src/main/java/info/nightscout/androidaps/data/ListenerService.java b/wear/src/main/java/info/nightscout/androidaps/data/ListenerService.java index 2f048af9a7..ef32aecde9 100644 --- a/wear/src/main/java/info/nightscout/androidaps/data/ListenerService.java +++ b/wear/src/main/java/info/nightscout/androidaps/data/ListenerService.java @@ -37,6 +37,7 @@ import com.google.android.gms.wearable.WearableListenerService; import java.util.Set; import java.util.concurrent.TimeUnit; +import info.nightscout.androidaps.aaps; import info.nightscout.androidaps.R; import info.nightscout.androidaps.interaction.AAPSPreferences; import info.nightscout.androidaps.interaction.actions.AcceptActivity; @@ -635,13 +636,13 @@ public class ListenerService extends WearableListenerService implements GoogleAp NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, AAPS_NOTIFY_CHANNEL_ID_BOLUSPROGRESS) .setSmallIcon(R.drawable.ic_icon) - .setContentTitle("Bolus Progress") + .setContentTitle(aaps.gs(R.string.bolus_progress)) .setContentText(progresspercent + "% - " + progresstatus) - .setSubText("press to cancel") + .setSubText(aaps.gs(R.string.press_to_cancel)) .setContentIntent(cancelPendingIntent) .setPriority(NotificationCompat.PRIORITY_MAX) .setVibrate(vibratePattern) - .addAction(R.drawable.ic_cancel, "CANCEL BOLUS", cancelPendingIntent); + .addAction(R.drawable.ic_cancel, aaps.gs(R.string.cancel_bolus), cancelPendingIntent); NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this); diff --git a/wear/src/main/res/values/strings.xml b/wear/src/main/res/values/strings.xml index 3f455b036b..715bda4d95 100644 --- a/wear/src/main/res/values/strings.xml +++ b/wear/src/main/res/values/strings.xml @@ -100,6 +100,9 @@ timeshift bolus + Bolus Progress + press to cancel + CANCEL BOLUS Pump Loop