diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-25 21:41:24 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-25 21:41:24 +0300 |
commit | 3adde72bc99215062c8dabd38f8c34ad093452b5 (patch) | |
tree | 28c5c1d4e66bcd7ec4287bbe77cc1c5a2a8d28d5 /src | |
parent | c4571a0c39e08c7590bd6da5caebf695dfe028fe (diff) | |
download | bitcoin-3adde72bc99215062c8dabd38f8c34ad093452b5.tar.xz |
qt: Do not use QObject::tr plural syntax for numbers with a unit symbol
This is useless and unnecessarily burdensome for translators.
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/intro.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index aa6b2665fa..73214c29e9 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -278,12 +278,12 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable void Intro::UpdateFreeSpaceLabel() { - QString freeString = tr("%n GB of free space available", "", m_bytes_available / GB_BYTES); + QString freeString = tr("%1 GB of free space available").arg(m_bytes_available / GB_BYTES); if (m_bytes_available < m_required_space_gb * GB_BYTES) { - freeString += " " + tr("(of %n GB needed)", "", m_required_space_gb); + freeString += " " + tr("(of %1 GB needed)").arg(m_required_space_gb); ui->freeSpace->setStyleSheet("QLabel { color: #800000 }"); } else if (m_bytes_available / GB_BYTES - m_required_space_gb < 10) { - freeString += " " + tr("(%n GB needed for full chain)", "", m_required_space_gb); + freeString += " " + tr("(%1 GB needed for full chain)").arg(m_required_space_gb); ui->freeSpace->setStyleSheet("QLabel { color: #999900 }"); } else { ui->freeSpace->setStyleSheet(""); |