Skip to content

Commit

Permalink
use translated value for if check
Browse files Browse the repository at this point in the history
  • Loading branch information
Danfro committed Nov 20, 2021
1 parent ef29649 commit 32728a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/Setting.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32728a2

Please sign in to comment.