From 56ac95dad9a807b4799840d7b2c3b1c1c44869f2 Mon Sep 17 00:00:00 2001 From: Karl Date: Fri, 25 Aug 2017 22:44:16 +0200 Subject: [PATCH] fix(i18n): string `Call with %1 ended. %2` is no longer translatable Fixes #4552 --- src/widget/form/chatform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 5156bc2a3..79b2f8f42 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -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("");