Revert "qt: Do not use QObject::tr plural syntax for numbers with a unit symbol"

This reverts commit 3adde72bc9.
24.x
Luke Dashjr 3 years ago
parent c44e734dca
commit 0c64401324

@ -298,12 +298,12 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable
void Intro::UpdateFreeSpaceLabel() void Intro::UpdateFreeSpaceLabel()
{ {
QString freeString = tr("%1 GB of space available").arg(m_bytes_available / GB_BYTES); QString freeString = tr("%n GB of space available", "", m_bytes_available / GB_BYTES);
if (m_bytes_available < m_required_space_gb * GB_BYTES) { if (m_bytes_available < m_required_space_gb * GB_BYTES) {
freeString += " " + tr("(of %1 GB needed)").arg(m_required_space_gb); freeString += " " + tr("(of %n GB needed)", "", m_required_space_gb);
ui->freeSpace->setStyleSheet("QLabel { color: #800000 }"); ui->freeSpace->setStyleSheet("QLabel { color: #800000 }");
} else if (m_bytes_available / GB_BYTES - m_required_space_gb < 10) { } else if (m_bytes_available / GB_BYTES - m_required_space_gb < 10) {
freeString += " " + tr("(%1 GB needed for full chain)").arg(m_required_space_gb); freeString += " " + tr("(%n GB needed for full chain)", "", m_required_space_gb);
ui->freeSpace->setStyleSheet("QLabel { color: #999900 }"); ui->freeSpace->setStyleSheet("QLabel { color: #999900 }");
} else { } else {
ui->freeSpace->setStyleSheet(""); ui->freeSpace->setStyleSheet("");

Loading…
Cancel
Save