Skip to content

Commit 9adb694

Browse files
committed
Qt/Intro: Move sizeWarningLabel text into C++ code
1 parent a9baa6d commit 9adb694

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/qt/forms/intro.ui

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555
</item>
5656
<item>
5757
<widget class="QLabel" name="sizeWarningLabel">
58-
<property name="text">
59-
<string>%1 will download and store a copy of the Bitcoin block chain. At least %2GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</string>
60-
</property>
6158
<property name="wordWrap">
6259
<bool>true</bool>
6360
</property>

src/qt/intro.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ Intro::Intro(QWidget *parent) :
133133
}
134134
}
135135
requiredSpace += CHAIN_STATE_SIZE;
136-
ui->sizeWarningLabel->setText(ui->sizeWarningLabel->text().arg(tr(PACKAGE_NAME)).arg(requiredSpace));
136+
ui->sizeWarningLabel->setText(
137+
tr("%1 will download and store a copy of the Bitcoin block chain.").arg(tr(PACKAGE_NAME)) + " " +
138+
tr("At least %1 GB of data will be stored in this directory, and it will grow over time.").arg(requiredSpace) + " " +
139+
tr("The wallet will also be stored in this directory.")
140+
);
137141
startThread();
138142
}
139143

0 commit comments

Comments
 (0)