1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #4595

Karl (1):
      fix(i18n): string `Call with %1 ended. %2` is no longer translatable
This commit is contained in:
Diadlo 2017-08-27 17:20:45 +03:00
commit e0b53c3f17
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -898,10 +898,10 @@ void ChatForm::stopCounter(bool error)
}
QString dhms = secondsToDHMS(timeElapsed.elapsed() / 1000);
QString name = f->getDisplayedName();
QString mess = error ? "Call with %1 ended unexpectedly. %2" : "Call with %1 ended. %2";
QString mess = error ? tr("Call with %1 ended unexpectedly. %2") : tr("Call with %1 ended. %2");
// TODO: add notification once notifications are implemented
addSystemInfoMessage(tr(mess.toStdString().c_str()).arg(name, dhms), ChatMessage::INFO,
addSystemInfoMessage(mess.arg(name, dhms), ChatMessage::INFO,
QDateTime::currentDateTime());
callDurationTimer->stop();
callDuration->setText("");