Skip to content

Commit 8bed170

Browse files
committed
Merge bitcoin-core#296: Do not use QObject::tr plural syntax for numbers with a unit symbol
3adde72 qt: Do not use QObject::tr plural syntax for numbers with a unit symbol (Hennadii Stepanov) Pull request description: Working on translation, I found this is useless and unnecessarily burdensome for translators. I guess, this statement is correct internationally wide :) ACKs for top commit: jarolrod: ACK 3adde72 promag: Code review ACK 3adde72. Agree with OP, looks reasonable to me. Tree-SHA512: bde65c122ca0feb7771d932cce63fd1aef1e7a9dda0188d19c577d57b279172204ac1bfcb6106a78b2c4d55d628e6dc0967051e064ec40d3c5aeafd4a48f0589
2 parents c9b051b + 3adde72 commit 8bed170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qt/intro.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable
298298

299299
void Intro::UpdateFreeSpaceLabel()
300300
{
301-
QString freeString = tr("%n GB of free space available", "", m_bytes_available / GB_BYTES);
301+
QString freeString = tr("%1 GB of free space available").arg(m_bytes_available / GB_BYTES);
302302
if (m_bytes_available < m_required_space_gb * GB_BYTES) {
303-
freeString += " " + tr("(of %n GB needed)", "", m_required_space_gb);
303+
freeString += " " + tr("(of %1 GB needed)").arg(m_required_space_gb);
304304
ui->freeSpace->setStyleSheet("QLabel { color: #800000 }");
305305
} else if (m_bytes_available / GB_BYTES - m_required_space_gb < 10) {
306-
freeString += " " + tr("(%n GB needed for full chain)", "", m_required_space_gb);
306+
freeString += " " + tr("(%1 GB needed for full chain)").arg(m_required_space_gb);
307307
ui->freeSpace->setStyleSheet("QLabel { color: #999900 }");
308308
} else {
309309
ui->freeSpace->setStyleSheet("");

0 commit comments

Comments
 (0)