Merge pull request #3085 from olorinmaia/AddDashPodStatusStrings
Add dash pod status translation strings in AAPSClient Overview
This commit is contained in:
commit
ca0995dd2f
2 changed files with 4 additions and 3 deletions
|
@ -158,6 +158,7 @@
|
||||||
<string name="omnipod_common_pod_status_activation_time_exceeded">Activation time exceeded</string>
|
<string name="omnipod_common_pod_status_activation_time_exceeded">Activation time exceeded</string>
|
||||||
<string name="omnipod_common_pod_status_inactive">Inactive</string>
|
<string name="omnipod_common_pod_status_inactive">Inactive</string>
|
||||||
<string name="omnipod_common_pod_status_pod_fault_description">Pod Fault: %1$03d %2$s</string>
|
<string name="omnipod_common_pod_status_pod_fault_description">Pod Fault: %1$03d %2$s</string>
|
||||||
|
<string name="omnipod_common_pod_status_normal">Normal</string>
|
||||||
|
|
||||||
<!-- Omnipod - Commands -->
|
<!-- Omnipod - Commands -->
|
||||||
<string name="omnipod_common_cmd_deactivate_pod">Deactivate Pod</string>
|
<string name="omnipod_common_cmd_deactivate_pod">Deactivate Pod</string>
|
||||||
|
|
|
@ -991,9 +991,9 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
||||||
val extended = JSONObject()
|
val extended = JSONObject()
|
||||||
try {
|
try {
|
||||||
val podStatus = when {
|
val podStatus = when {
|
||||||
podStateManager.isPodRunning && podStateManager.isSuspended -> "suspended"
|
podStateManager.isPodRunning && podStateManager.isSuspended -> rh.gs(info.nightscout.androidaps.plugins.pump.omnipod.common.R.string.omnipod_common_pod_status_suspended).lowercase()
|
||||||
podStateManager.isPodRunning -> "normal"
|
podStateManager.isPodRunning -> rh.gs(info.nightscout.androidaps.plugins.pump.omnipod.common.R.string.omnipod_common_pod_status_normal).lowercase()
|
||||||
else -> "no active Pod"
|
else -> rh.gs(info.nightscout.androidaps.plugins.pump.omnipod.common.R.string.omnipod_common_pod_status_no_active_pod).lowercase()
|
||||||
}
|
}
|
||||||
status.put("status", podStatus)
|
status.put("status", podStatus)
|
||||||
status.put("timestamp", dateUtil.toISOString(podStateManager.lastUpdatedSystem))
|
status.put("timestamp", dateUtil.toISOString(podStateManager.lastUpdatedSystem))
|
||||||
|
|
Loading…
Reference in a new issue