From 32728a235398fb21efcbded622ae2b8fe1ac92a1 Mon Sep 17 00:00:00 2001 From: Danfro Date: Sun, 31 Oct 2021 22:53:22 +0100 Subject: [PATCH] use translated value for if check --- qml/Setting.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/Setting.qml b/qml/Setting.qml index 46f17f3..91f314d 100644 --- a/qml/Setting.qml +++ b/qml/Setting.qml @@ -286,7 +286,7 @@ Page { //Calculate stride in cm based on demoraphic information function calStride() { - if (sexValue.text == "Male") { + if (sexValue.text == i18n.tr("Male")) { strideText.text = Math.round(heightText.text * 0.3937008 * 0.415 * 100) / 100 } else { strideText.text = Math.round(heightText.text * 0.3937008 * 0.413 * 100) / 100