mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin-core/gui#296: Do not use QObject::tr plural syntax for numbers with a unit symbol
This commit is contained in:
parent
c33afea7fd
commit
504f8344ba
@ -304,12 +304,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(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));
|
||||
} 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(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_WARNING));
|
||||
} else {
|
||||
ui->freeSpace->setStyleSheet("");
|
||||
|
Loading…
Reference in New Issue
Block a user