diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewMenus.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewMenus.kt
index 1cc60f0400..02e66e4ae8 100644
--- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewMenus.kt
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewMenus.kt
@@ -61,16 +61,16 @@ class OverviewMenus @Inject constructor(
private val config: Config
) {
- enum class CharType(@StringRes val nameId: Int, @ColorRes val colorId: Int, val primary: Boolean, val secondary: Boolean) {
- PRE(R.string.overview_show_predictions, R.color.prediction, primary = true, secondary = false),
- BAS(R.string.overview_show_basals, R.color.basal, primary = true, secondary = false),
- IOB(R.string.overview_show_iob, R.color.iob, primary = false, secondary = true),
- COB(R.string.overview_show_cob, R.color.cob, primary = false, secondary = true),
- DEV(R.string.overview_show_deviations, R.color.deviations, primary = false, secondary = true),
- SEN(R.string.overview_show_sensitivity, R.color.ratio, primary = false, secondary = true),
- ACT(R.string.overview_show_activity, R.color.activity, primary = true, secondary = true),
- ABS(R.string.overview_show_absinsulin, R.color.iob, primary = false, secondary = true),
- DEVSLOPE(R.string.overview_show_deviationslope, R.color.devslopepos, primary = false, secondary = true)
+ enum class CharType(@StringRes val nameId: Int, @ColorRes val colorId: Int, val primary: Boolean, val secondary: Boolean, @StringRes val shortnameId: Int) {
+ PRE(R.string.overview_show_predictions, R.color.prediction, primary = true, secondary = false, shortnameId = R.string.prediction_shortname),
+ BAS(R.string.overview_show_basals, R.color.basal, primary = true, secondary = false,shortnameId = R.string.basal_shortname),
+ IOB(R.string.overview_show_iob, R.color.iob, primary = false, secondary = true,shortnameId = R.string.iob),
+ COB(R.string.overview_show_cob, R.color.cob, primary = false, secondary = true,shortnameId = R.string.cob),
+ DEV(R.string.overview_show_deviations, R.color.deviations, primary = false, secondary = true,shortnameId = R.string.deviation_shortname),
+ SEN(R.string.overview_show_sensitivity, R.color.ratio, primary = false, secondary = true,shortnameId = R.string.sensitivity_shortname),
+ ACT(R.string.overview_show_activity, R.color.activity, primary = true, secondary = true,shortnameId = R.string.activity_shortname),
+ ABS(R.string.overview_show_absinsulin, R.color.iob, primary = false, secondary = true,shortnameId = R.string.abs_insulin_shortname),
+ DEVSLOPE(R.string.overview_show_deviationslope, R.color.devslopepos, primary = false, secondary = true,shortnameId = R.string.devslope_shortname)
}
companion object {
@@ -80,7 +80,7 @@ class OverviewMenus @Inject constructor(
fun enabledTypes(graph: Int): String {
val r = StringBuilder()
for (type in CharType.values()) if (setting[graph][type.ordinal]) {
- r.append(type.name)
+ r.append(resourceHelper.gs(type.shortnameId))
r.append(" ")
}
return r.toString()
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4a4595fab4..7c3923fd9f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -527,8 +527,14 @@
Threshold warning battery level [%]
statuslights_bat_critical
Threshold critical battery level [%]
+ PRED
IOB
COB
+ BAS
+ DEV
+ ACT
+ ABS
+ DEVSLOPE
About
Missing SMS permission
Missing phone state permission