aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Brydolf <jacob@brydolf.net>2016-10-04 22:22:59 +0200
committerIlya Kitaev <mbg033@gmail.com>2016-10-10 00:19:39 +0300
commit49018390dc121c390ecec1c81891cf4902dd9aeb (patch)
tree5249208cae4fe494ecd3f846199c18be68acf972
parent8b748bf25ddb459e6291d124fedcb80fa05445d3 (diff)
downloadmonzero-gui-49018390dc121c390ecec1c81891cf4902dd9aeb.tar.gz
monzero-gui-49018390dc121c390ecec1c81891cf4902dd9aeb.tar.xz
monzero-gui-49018390dc121c390ecec1c81891cf4902dd9aeb.zip
added comma/locale separation to sync counter
-rw-r--r--main.qml5
1 files changed, 4 insertions, 1 deletions
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
}