From 49018390dc121c390ecec1c81891cf4902dd9aeb Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Tue, 4 Oct 2016 22:22:59 +0200 Subject: [PATCH] added comma/locale separation to sync counter --- main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index 214686da..a87def23 100644 --- a/main.qml +++ b/main.qml @@ -260,7 +260,10 @@ ApplicationWindow { var currHeight = blockHeight.toFixed(0) if(currHeight > splashCounter + 1000){ splashCounter = currHeight - var progressText = qsTr("Synchronizing blocks %1/%2").arg(currHeight).arg(currentWallet.daemonBlockChainHeight().toFixed(0)); + var locale = Qt.locale() + var currHeightString = currHeight.toLocaleString(locale,"f",0) + var targetHeightString = currentWallet.daemonBlockChainHeight().toLocaleString(locale,"f",0) + var progressText = qsTr("Synchronizing blocks %1/%2").arg(currHeightString).arg(targetHeightString); console.log("Progress text: " + progressText); splash.heightProgressText = progressText }