Skip to content

Commit

Permalink
use locale number format with decimal point and thousand separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Danfro committed Oct 31, 2021
1 parent 6e057d6 commit b07d7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qml/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ Page {
aspect: UbuntuShape.DropShadow
}
title.text: date
subtitle.text: "Steps: " + steps + " Distance: " + distance + " m" + " "
subtitle.text: i18n.tr("Steps: %1").arg(steps.toLocaleString(Qt.locale(),"f",0)) + " " + i18n.tr("Distance: %1 m").arg(distance.toLocaleString(Qt.locale(),"f",1))

ProportionalShape {
SlotsLayout.position: SlotsLayout.Trailing
source: Image { source: "../Images/trophy.svg" }
Expand Down

0 comments on commit b07d7c2

Please sign in to comment.