From aef04c442c792206aaaf7a309717d6ce50ad8b1c Mon Sep 17 00:00:00 2001 From: Stephen Lyons Date: Thu, 26 Nov 2020 21:42:42 +0000 Subject: [PATCH] Revise: put replay start and end messages through translation system (#4401) The texts were not being marked for translation. The PR was revised to take the white space out of the translation as that was requested during peer-review. Signed-off-by: Stephen Lyons --- src/TConsole.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 7ea78753ed1..a3783fce4d1 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -908,12 +908,10 @@ void TConsole::slot_toggleReplayRecording() } mReplayStream.setDevice(&mReplayFile); mpHost->mTelnet.recordReplay(); - QString message = QString("Replay recording has started. File: ") + mReplayFile.fileName() + "\n"; - printSystemMessage(message); + printSystemMessage(tr("Replay recording has started. File: %1").arg(mReplayFile.fileName()) % QChar::LineFeed); } else { mReplayFile.close(); - QString message = QString("Replay recording has been stopped. File: ") + mReplayFile.fileName() + "\n"; - printSystemMessage(message); + printSystemMessage(tr("Replay recording has been stopped. File: %1").arg(mReplayFile.fileName()) % QChar::LineFeed); } }