add 5 missing translations to wear

This commit is contained in:
olorinmaia 2023-10-18 21:59:48 +02:00
parent 90e23b4f78
commit e4ec18df26
2 changed files with 11 additions and 6 deletions

View file

@ -51,6 +51,7 @@
<string name="extended_bolus">Extended bolus</string> <string name="extended_bolus">Extended bolus</string>
<string name="paused">Paused</string> <string name="paused">Paused</string>
<string name="tdd_total">TDD Total</string> <string name="tdd_total">TDD Total</string>
<string name="tdd_old_data">Old data</string>
<string name="goingtodeliver">Going to deliver %1$.2f U</string> <string name="goingtodeliver">Going to deliver %1$.2f U</string>
<string name="waitingforpump">Waiting for pump</string> <string name="waitingforpump">Waiting for pump</string>
<string name="androidaps_start">AAPS started</string> <string name="androidaps_start">AAPS started</string>
@ -168,6 +169,8 @@
<string name="virtualpump_uploadstatus_title">Upload pump status to NS or Tidepool</string> <string name="virtualpump_uploadstatus_title">Upload pump status to NS or Tidepool</string>
<string name="suspendloop_label">Disabled/Suspended loop</string> <string name="suspendloop_label">Disabled/Suspended loop</string>
<string name="iob_label">Insulin on Board (IOB)</string> <string name="iob_label">Insulin on Board (IOB)</string>
<string name="loopstatus_targets">TARGETS:</string>
<string name="loopstatus_OAPS_result">OAPS RESULT:</string>
<!-- Protection--> <!-- Protection-->
<string name="wrongpassword">Wrong password</string> <string name="wrongpassword">Wrong password</string>
@ -492,6 +495,8 @@
<string name="bolus_recorded_only">Bolus will be recorded only (not delivered by pump)</string> <string name="bolus_recorded_only">Bolus will be recorded only (not delivered by pump)</string>
<string name="advisoralarm">Run alarm when is time to eat</string> <string name="advisoralarm">Run alarm when is time to eat</string>
<string name="no_action_selected">No action selected, nothing will happen</string> <string name="no_action_selected">No action selected, nothing will happen</string>
<string name="carb_equal_zero_no_action">Carbs = 0. No action taken!</string>
<string name="wizard_no_insulin_required">No insulin required!</string>
<string name="wizard_no_actual_bg">No recent BG to base calculation on!</string> <string name="wizard_no_actual_bg">No recent BG to base calculation on!</string>
<string name="wizard_no_active_profile">No active profile set!</string> <string name="wizard_no_active_profile">No active profile set!</string>
<string name="wizard_no_cob">Unknown COB! BG reading missing or recent app restart?</string> <string name="wizard_no_cob">Unknown COB! BG reading missing or recent app restart?</string>

View file

@ -175,7 +175,7 @@ class DataHandlerMobile @Inject constructor(
EventMobileToWear( EventMobileToWear(
EventData.ConfirmAction( EventData.ConfirmAction(
rh.gs(R.string.loop_status).uppercase(), rh.gs(R.string.loop_status).uppercase(),
"TARGETS:\n$targetsStatus\n\n$loopStatus\n\nOAPS RESULT:\n$oAPSResultStatus", "$targetsStatus\n\n$loopStatus\n\n$oAPSResultStatus",
returnCommand = null returnCommand = null
) )
) )
@ -336,7 +336,7 @@ class DataHandlerMobile @Inject constructor(
val dummies: MutableList<TotalDailyDose> = LinkedList() val dummies: MutableList<TotalDailyDose> = LinkedList()
val historyList = getTDDList(dummies) val historyList = getTDDList(dummies)
if (isOldData(historyList)) { if (isOldData(historyList)) {
message = "OLD DATA - " message = rh.gs(app.aaps.core.ui.R.string.tdd_old_data) + ", "
//if pump is not busy: try to fetch data //if pump is not busy: try to fetch data
if (activePump.isBusy()) { if (activePump.isBusy()) {
message += rh.gs(app.aaps.core.ui.R.string.pump_busy) message += rh.gs(app.aaps.core.ui.R.string.pump_busy)
@ -434,7 +434,7 @@ class DataHandlerMobile @Inject constructor(
return return
} }
if (bolusWizard.calculatedTotalInsulin <= 0 && bolusWizard.carbs <= 0) { if (bolusWizard.calculatedTotalInsulin <= 0 && bolusWizard.carbs <= 0) {
sendError("No insulin required") sendError(rh.gs(app.aaps.core.ui.R.string.wizard_no_insulin_required))
return return
} }
val message = val message =
@ -540,7 +540,7 @@ class DataHandlerMobile @Inject constructor(
message += "\n" + rh.gs(app.aaps.core.ui.R.string.constraint_applied) message += "\n" + rh.gs(app.aaps.core.ui.R.string.constraint_applied)
} }
if (carbsAfterConstraints <= 0) { if (carbsAfterConstraints <= 0) {
sendError("Carbs = 0! No action taken!") sendError(rh.gs(app.aaps.core.ui.R.string.carb_equal_zero_no_action))
return return
} }
rxBus.send( rxBus.send(
@ -998,7 +998,7 @@ class DataHandlerMobile @Inject constructor(
private private
val targetsStatus: String val targetsStatus: String
get() { get() {
var ret = "" var ret = rh.gs(app.aaps.core.ui.R.string.loopstatus_targets) + "\n"
if (!config.APS) { if (!config.APS) {
return rh.gs(R.string.target_only_aps_mode) return rh.gs(R.string.target_only_aps_mode)
} }
@ -1020,7 +1020,7 @@ class DataHandlerMobile @Inject constructor(
private private
val oAPSResultStatus: String val oAPSResultStatus: String
get() { get() {
var ret = "" var ret = rh.gs(app.aaps.core.ui.R.string.loopstatus_OAPS_result) + "\n"
if (!config.APS) if (!config.APS)
return rh.gs(R.string.aps_only) return rh.gs(R.string.aps_only)
val usedAPS = activePlugin.activeAPS val usedAPS = activePlugin.activeAPS