Merge pull request #57 from AAPS-Omnipod/omnipod_eros_dev_upstream_merge
Add translation for Omnipod exception
This commit is contained in:
commit
c8ce281f9c
|
@ -70,6 +70,7 @@ import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.NonceRes
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.NotEnoughDataException;
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.NotEnoughDataException;
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.OmnipodException;
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.OmnipodException;
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.PodFaultException;
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.PodFaultException;
|
||||||
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.PodProgressStatusVerificationFailedException;
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.PodReturnedErrorResponseException;
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.PodReturnedErrorResponseException;
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.RileyLinkInterruptedException;
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.RileyLinkInterruptedException;
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.RileyLinkTimeoutException;
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.exception.RileyLinkTimeoutException;
|
||||||
|
@ -795,6 +796,8 @@ public class AapsOmnipodManager {
|
||||||
} else if (ex instanceof IllegalPodProgressException || ex instanceof IllegalActivationProgressException ||
|
} else if (ex instanceof IllegalPodProgressException || ex instanceof IllegalActivationProgressException ||
|
||||||
ex instanceof IllegalDeliveryStatusException) {
|
ex instanceof IllegalDeliveryStatusException) {
|
||||||
comment = getStringResource(R.string.omnipod_error_invalid_progress_state);
|
comment = getStringResource(R.string.omnipod_error_invalid_progress_state);
|
||||||
|
} else if (ex instanceof PodProgressStatusVerificationFailedException) {
|
||||||
|
comment = getStringResource(R.string.omnipod_error_failed_to_verify_activation_progress);
|
||||||
} else if (ex instanceof IllegalVersionResponseTypeException) {
|
} else if (ex instanceof IllegalVersionResponseTypeException) {
|
||||||
comment = getStringResource(R.string.omnipod_error_invalid_response);
|
comment = getStringResource(R.string.omnipod_error_invalid_response);
|
||||||
} else if (ex instanceof IllegalResponseException) {
|
} else if (ex instanceof IllegalResponseException) {
|
||||||
|
|
|
@ -131,6 +131,7 @@
|
||||||
<string name="omnipod_error_failed_to_initialize_pod">Failed to initialize the Pod</string>
|
<string name="omnipod_error_failed_to_initialize_pod">Failed to initialize the Pod</string>
|
||||||
<string name="omnipod_error_failed_to_insert_cannula">Failed to insert cannula</string>
|
<string name="omnipod_error_failed_to_insert_cannula">Failed to insert cannula</string>
|
||||||
<string name="omnipod_error_pod_fault_activation_time_exceeded">The Pod\'s activation time has been exceeded. This Pod can no longer be activated.</string>
|
<string name="omnipod_error_pod_fault_activation_time_exceeded">The Pod\'s activation time has been exceeded. This Pod can no longer be activated.</string>
|
||||||
|
<string name="omnipod_error_failed_to_verify_activation_progress">Failed to verify activation progress. Please retry.</string>
|
||||||
|
|
||||||
<!-- Omnipod - Confirmation -->
|
<!-- Omnipod - Confirmation -->
|
||||||
<string name="omnipod_confirmation">Confirmation</string>
|
<string name="omnipod_confirmation">Confirmation</string>
|
||||||
|
|
Loading…
Reference in a new issue