mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Avoid concatenation when dealing with translatable strings
Concatenation could be problematic with RTL languages.
This commit is contained in:
@@ -258,11 +258,11 @@ void AutomatedRssDownloader::updateRuleDefinitionBox()
|
||||
ui->comboAddPaused->setCurrentIndex(rule->addPaused());
|
||||
ui->spinIgnorePeriod->setValue(rule->ignoreDays());
|
||||
QDateTime dateTime = rule->lastMatch();
|
||||
QString lMatch = tr("Last match: ");
|
||||
QString lMatch;
|
||||
if (dateTime.isValid())
|
||||
lMatch += QString::number(dateTime.daysTo(QDateTime::currentDateTime())) + tr(" days ago.");
|
||||
lMatch = tr("Last match: %1 days ago").arg(dateTime.daysTo(QDateTime::currentDateTime()));
|
||||
else
|
||||
lMatch += tr("Unknown");
|
||||
lMatch = tr("Last match: Unknown");
|
||||
ui->lblLastMatch->setText(lMatch);
|
||||
updateMustLineValidity();
|
||||
updateMustNotLineValidity();
|
||||
|
||||
Reference in New Issue
Block a user