mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Merge bitcoin-core/gui#296: Do not use QObject::tr plural syntax for numbers with a unit symbol
3adde72bc9
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: ACK3adde72bc9
promag: Code review ACK3adde72bc9
. Agree with OP, looks reasonable to me. Tree-SHA512: bde65c122ca0feb7771d932cce63fd1aef1e7a9dda0188d19c577d57b279172204ac1bfcb6106a78b2c4d55d628e6dc0967051e064ec40d3c5aeafd4a48f0589
This commit is contained in:
commit
8bed1706ea
1 changed files with 3 additions and 3 deletions
|
@ -298,12 +298,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("");
|
||||
|
|
Loading…
Add table
Reference in a new issue