From d2bb42f72a79957114ecc652cd4ea274fefd8912 Mon Sep 17 00:00:00 2001 From: un1versal Date: Sat, 28 Nov 2015 08:34:50 +0000 Subject: DccChatWindow: consistency, capitalization and remove dup include --- src/modules/dcc/DccChatWindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/dcc/DccChatWindow.cpp b/src/modules/dcc/DccChatWindow.cpp index 2d2c78db6..3c9f28fb6 100644 --- a/src/modules/dcc/DccChatWindow.cpp +++ b/src/modules/dcc/DccChatWindow.cpp @@ -42,7 +42,6 @@ #include "KviConsoleWindow.h" #include "KviMainWindow.h" #include "KviMemory.h" -#include "KviMemory.h" #include "KviThread.h" #include "KviIrcSocket.h" #include "kvi_settings.h" @@ -294,7 +293,7 @@ void DccChatWindow::ownMessage(const QString &text, bool bUserFeedback) { if(!m_pSlaveThread) { - output(KVI_OUT_SYSTEMWARNING,__tr2qs_ctx("Cannot send data: No active connection","dcc")); + output(KVI_OUT_SYSTEMWARNING,__tr2qs_ctx("Can't send data: no active connection","dcc")); return; } @@ -340,7 +339,7 @@ void DccChatWindow::ownMessage(const QString &text, bool bUserFeedback) { QString szErr = cryptSessionInfo()->m_pEngine->lastError(); output(KVI_OUT_SYSTEMERROR, - __tr2qs_ctx("The crypto engine was not able to encrypt the current message (%Q): %Q, no data was sent to the remote end","dcc"), + __tr2qs_ctx("The encryption engine was not able to encrypt the current message (%Q): %Q, no data was sent to the remote end","dcc"), &text,&szErr); } break; @@ -398,7 +397,7 @@ void DccChatWindow::ownAction(const QString &text) m_pSlaveThread->sendRawData(buf.ptr(),buf.len()); output(KVI_OUT_ACTION,"%Q %Q",&(m_pDescriptor->szLocalNick),&szTmpBuffer); } else { - output(KVI_OUT_SYSTEMWARNING,__tr2qs_ctx("Cannot send data: No active connection","dcc")); + output(KVI_OUT_SYSTEMWARNING,__tr2qs_ctx("Cannot send data: no active connection","dcc")); } } @@ -473,7 +472,7 @@ bool DccChatWindow::event(QEvent *e) { QString szErr = cinf->m_pEngine->lastError(); output(KVI_OUT_SYSTEMERROR, - __tr2qs_ctx("The following message appears to be encrypted, but the crypto engine failed to decode it: %Q","dcc"), + __tr2qs_ctx("The following message appears to be encrypted, but the encryption engine failed to decode it: %Q","dcc"), &szErr); } break; -- cgit v1.3.1-10-gc9f91