diff options
Diffstat (limited to 'konversation/src/dcctransfersend.cpp')
-rw-r--r-- | konversation/src/dcctransfersend.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/konversation/src/dcctransfersend.cpp b/konversation/src/dcctransfersend.cpp index db0bad2..1ed371f 100644 --- a/konversation/src/dcctransfersend.cpp +++ b/konversation/src/dcctransfersend.cpp @@ -170,7 +170,7 @@ bool DccTransferSend::queue() //Check the file exists if ( !KIO::NetAccess::exists( m_fileURL, true, NULL ) ) { - failed( i18n( "The url \"%1\" does not exist" ).tqarg( m_fileURL.prettyURL() ) ); + failed( i18n( "The url \"%1\" does not exist" ).arg( m_fileURL.prettyURL() ) ); return false; } @@ -178,7 +178,7 @@ bool DccTransferSend::queue() //Download the file. Does nothing if it's local (file:/) if ( !KIO::NetAccess::download( m_fileURL, m_tmpFile, NULL ) ) { - failed( i18n( "Could not retrieve \"%1\"" ).tqarg( m_fileURL.prettyURL() ) ); + failed( i18n( "Could not retrieve \"%1\"" ).arg( m_fileURL.prettyURL() ) ); kdDebug() << "DccTransferSend::DccTransferSend(): KIO::NetAccess::download() failed. reason: " << KIO::NetAccess::lastErrorString() << endl; return false; } @@ -187,7 +187,7 @@ bool DccTransferSend::queue() if ( m_fileName.isEmpty() ) { bool pressedOk; - m_fileName = KInputDialog::getText( i18n( "Enter Filename" ), i18n( "<qt>The file that you are sending to <i>%1</i> does not have a filename.<br>Please enter a filename to be presented to the receiver, or cancel the dcc transfer</qt>" ).tqarg( getPartnerNick() ), "unknown", &pressedOk, NULL ); + m_fileName = KInputDialog::getText( i18n( "Enter Filename" ), i18n( "<qt>The file that you are sending to <i>%1</i> does not have a filename.<br>Please enter a filename to be presented to the receiver, or cancel the dcc transfer</qt>" ).arg( getPartnerNick() ), "unknown", &pressedOk, NULL ); if ( !pressedOk ) { @@ -365,7 +365,7 @@ void DccTransferSend::startSending() startTransferLogger(); // initialize CPS counter, ETA counter, etc... } else - failed( i18n( "Could not open the file: %1" ).tqarg( getTQFileErrorString( m_file.status() ) ) ); + failed( i18n( "Could not open the file: %1" ).arg( getTQFileErrorString( m_file.status() ) ) ); } void DccTransferSend::writeData() // slot @@ -418,7 +418,7 @@ void DccTransferSend::getAck() // slot void DccTransferSend::slotGotSocketError( int errorCode ) { kdDebug() << "DccTransferSend::slotGotSocketError(): code = " << errorCode << " string = " << m_serverSocket->errorString() << endl; - failed( i18n( "Socket error: %1" ).tqarg( m_serverSocket->errorString() ) ); + failed( i18n( "Socket error: %1" ).arg( m_serverSocket->errorString() ) ); } void DccTransferSend::startConnectionTimer( int sec ) @@ -445,7 +445,7 @@ void DccTransferSend::slotConnectionTimeout() // slot void DccTransferSend::slotConnectionFailed( int /* errorCode */ ) { - failed( i18n( "Connection failure: %1" ).tqarg( m_sendSocket->KSocketBase::errorString() ) ); + failed( i18n( "Connection failure: %1" ).arg( m_sendSocket->KSocketBase::errorString() ) ); } void DccTransferSend::slotServerSocketClosed() @@ -472,16 +472,16 @@ TQString DccTransferSend::getTQFileErrorString( int code ) errorString=i18n("The operation was successful. Should never happen in an error dialog."); break; case IO_ReadError: - errorString=i18n("Could not read from file \"%1\".").tqarg( m_fileName ); + errorString=i18n("Could not read from file \"%1\".").arg( m_fileName ); break; case IO_WriteError: - errorString=i18n("Could not write to file \"%1\".").tqarg( m_fileName ); + errorString=i18n("Could not write to file \"%1\".").arg( m_fileName ); break; case IO_FatalError: errorString=i18n("A fatal unrecoverable error occurred."); break; case IO_OpenError: - errorString=i18n("Could not open file \"%1\".").tqarg( m_fileName ); + errorString=i18n("Could not open file \"%1\".").arg( m_fileName ); break; // Same case value? Damn! @@ -499,7 +499,7 @@ TQString DccTransferSend::getTQFileErrorString( int code ) errorString=i18n("An unspecified error happened on close."); break; default: - errorString=i18n("Unknown error. Code %1").tqarg(code); + errorString=i18n("Unknown error. Code %1").arg(code); break; } |