From 4bd21c2a68e8aabfd76fc223fd8a4dd0a857444d Mon Sep 17 00:00:00 2001 From: Philoul Date: Sun, 14 Mar 2021 17:07:27 +0100 Subject: [PATCH] Add string to Activity monitor for translation --- .../java/info/nightscout/androidaps/utils/ActivityMonitor.kt | 2 +- core/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/utils/ActivityMonitor.kt b/app/src/main/java/info/nightscout/androidaps/utils/ActivityMonitor.kt index 31a9f0dc23..7364bef9a5 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/ActivityMonitor.kt +++ b/app/src/main/java/info/nightscout/androidaps/utils/ActivityMonitor.kt @@ -66,7 +66,7 @@ class ActivityMonitor @Inject constructor( val duration = DateUtil.niceTimeScalar(v as Long, resourceHelper) val start = sp.getLong(key.replace("total", "start"), 0) val days = T.msecs(DateUtil.now() - start).days() - result += "$activity: $duration in $days days
" + result += resourceHelper.gs(R.string.activitymonitorformat, activity, duration, days) } return result } diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index ecd92d70ca..9dffe1f936 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -236,6 +236,7 @@ %1$s: ∑: %2$.2f U Bol: %3$.2f U Bas: %4$.2f U(%5$.0f%%)]]> %1$s: ∑: %2$.2f U Bol: %3$.2f U Bas: %4$.2f U(%5$.0f%%) Carbs: %6$.0f g]]> + %1$s: %2$s in %3$d days
]]>
BG Check