From 544a67e032473c789a9f661f9cc5ba4f0f3c08d9 Mon Sep 17 00:00:00 2001 From: Danfro Date: Thu, 24 Oct 2024 23:55:37 +0200 Subject: [PATCH] make some axis labels use the translated string --- ui/qml/pages/AnalysisPage.qml | 4 ++-- ui/qml/pages/HeartratePage.qml | 2 +- ui/qml/pages/StepsPage.qml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/qml/pages/AnalysisPage.qml b/ui/qml/pages/AnalysisPage.qml index bcc10cef..4670a25f 100644 --- a/ui/qml/pages/AnalysisPage.qml +++ b/ui/qml/pages/AnalysisPage.qml @@ -40,7 +40,7 @@ PagePL { graphTitle: qsTr("Heartrate") graphHeight: 300 - axisY.units: "BPM" + axisY.units: qsTr("BPM") type: DataSource.Heartrate minY: 0 @@ -57,7 +57,7 @@ PagePL { graphTitle: qsTr("Steps") graphHeight: 300 - axisY.units: "Steps" + axisY.units: qsTr("Steps") type: DataSource.Steps minY: 0 diff --git a/ui/qml/pages/HeartratePage.qml b/ui/qml/pages/HeartratePage.qml index f820ea97..d739705f 100644 --- a/ui/qml/pages/HeartratePage.qml +++ b/ui/qml/pages/HeartratePage.qml @@ -69,7 +69,7 @@ PagePL { graphTitle: qsTr("BPM") graphHeight: 300 - axisY.units: "BPM" + axisY.units: qsTr("BPM") type: DataSource.Heartrate graphType: 2 diff --git a/ui/qml/pages/StepsPage.qml b/ui/qml/pages/StepsPage.qml index 4b0ca47c..e39c279a 100644 --- a/ui/qml/pages/StepsPage.qml +++ b/ui/qml/pages/StepsPage.qml @@ -50,7 +50,7 @@ PagePL { graphHeight: 300 axisX.mask: "MM/dd" - axisY.units: "Steps" + axisY.units: qsTr("Steps") type: DataSource.StepSummary graphType: 2