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

fix(i18n): string Call with %1 ended. %2 is no longer translatable

Fixes #4552
This commit is contained in:
Karl 2017-08-25 22:44:16 +02:00
parent 776b37f689
commit 56ac95dad9

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("");