diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt index 65a39e32c6..cc1fdadb06 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt @@ -173,7 +173,7 @@ class TreatmentsUserEntryFragment : DaggerFragment() { holder.binding.iconSource.visibility = View.INVISIBLE holder.binding.values.text = valuesWithUnitString.trim() holder.binding.values.visibility = if (holder.binding.values.text != "") View.VISIBLE else View.GONE - holder.binding.action.text = translator.translate(current.action.name) + holder.binding.action.text = translator.translate(current.action) holder.binding.action.setTextColor(resourceHelper.gc(userEntryPresentationHelper.colorId(current.action.colorGroup))) } diff --git a/core/src/main/java/info/nightscout/androidaps/utils/Translator.kt b/core/src/main/java/info/nightscout/androidaps/utils/Translator.kt index c3ca647e6d..4551152acb 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/Translator.kt +++ b/core/src/main/java/info/nightscout/androidaps/utils/Translator.kt @@ -18,6 +18,7 @@ class Translator @Inject internal constructor( fun translate(action: Action): String = when(action) { Action.BOLUS -> resourceHelper.gs(R.string.uel_bolus) + Action.SMB -> resourceHelper.gs(R.string.smb_shortname) Action.BOLUS_ADVISOR -> resourceHelper.gs(R.string.uel_bolus_advisor) Action.EXTENDED_BOLUS -> resourceHelper.gs(R.string.uel_extended_bolus) Action.SUPERBOLUS_TBR -> resourceHelper.gs(R.string.uel_superbolus_tbr) @@ -85,8 +86,7 @@ class Translator @Inject internal constructor( Action.OTP_EXPORT -> resourceHelper.gs(R.string.uel_otp_export) Action.OTP_RESET -> resourceHelper.gs(R.string.uel_otp_reset) Action.EXPORT_CSV -> resourceHelper.gs(R.string.uel_export_csv) - Action.SMB -> TODO() - Action.STOP_SMS -> TODO() + Action.STOP_SMS -> resourceHelper.gs(R.string.uel_stop_sms) Action.UNKNOWN -> resourceHelper.gs(R.string.unknown) }