summaryrefslogtreecommitdiffstats
path: root/kmail/importjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/importjob.cpp')
-rw-r--r--kmail/importjob.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmail/importjob.cpp b/kmail/importjob.cpp
index f7c44d19d..9aaf4b957 100644
--- a/kmail/importjob.cpp
+++ b/kmail/importjob.cpp
@@ -78,7 +78,7 @@ void KMail::ImportJob::finish()
mProgressItem->setComplete();
mProgressItem = 0;
TQString text = i18n( "Importing the archive file '%1' into the folder '%2' succeeded." )
- .arg( mArchiveFile.path() ).arg( mRootFolder->name() );
+ .tqarg( mArchiveFile.path() ).tqarg( mRootFolder->name() );
text += "\n" + i18n( "1 message was imported.", "%n messages were imported.", mNumberOfImportedMessages );
KMessageBox::information( mParentWidget, text, i18n( "Import finished." ) );
deleteLater();
@@ -95,7 +95,7 @@ void KMail::ImportJob::abort( const TQString &errorMessage )
return;
mAborted = true;
- TQString text = i18n( "Failed to import the archive into folder '%1'." ).arg( mRootFolder->name() );
+ TQString text = i18n( "Failed to import the archive into folder '%1'." ).tqarg( mRootFolder->name() );
text += "\n" + errorMessage;
if ( mProgressItem ) {
mProgressItem->setComplete();
@@ -111,7 +111,7 @@ KMFolder * KMail::ImportJob::createSubFolder( KMFolder *tqparent, const TQString
KMFolder *newFolder = FolderUtil::createSubFolder( tqparent, tqparent->child(), folderName, TQString(),
KMFolderTypeMaildir );
if ( !newFolder ) {
- abort( i18n( "Unable to create subfolder for folder '%1'." ).arg( tqparent->name() ) );
+ abort( i18n( "Unable to create subfolder for folder '%1'." ).tqarg( tqparent->name() ) );
return 0;
}
else {
@@ -207,11 +207,11 @@ void KMail::ImportJob::importNextMessage()
}
mCurrentFolder = folder;
if ( mCurrentFolder->open( "ImportJob" ) != 0 ) {
- abort( i18n( "Unable to open folder '%1'." ).arg( mCurrentFolder->name() ) );
+ abort( i18n( "Unable to open folder '%1'." ).tqarg( mCurrentFolder->name() ) );
return;
}
kdDebug(5006) << "importNextMessage(): Current folder of queue is now: " << mCurrentFolder->name() << endl;
- mProgressItem->setqStatus( i18n( "Importing folder %1" ).arg( mCurrentFolder->name() ) );
+ mProgressItem->setqStatus( i18n( "Importing folder %1" ).tqarg( mCurrentFolder->name() ) );
}
mProgressItem->setProgress( ( mProgressItem->progress() + 5 ) );
@@ -231,7 +231,7 @@ void KMail::ImportJob::importNextMessage()
// uploaded.
if ( mCurrentFolder->folderType() != KMFolderTypeImap ) {
if ( mCurrentFolder->addMsg( mCurrentMessage, &retIndex ) != 0 ) {
- abort( i18n( "Failed to add a message to the folder '%1'." ).arg( mCurrentFolder->name() ) );
+ abort( i18n( "Failed to add a message to the folder '%1'." ).tqarg( mCurrentFolder->name() ) );
return;
}
messageAdded();
@@ -284,7 +284,7 @@ KMFolder* KMail::ImportJob::getOrCreateSubFolder( KMFolder *tqparentFolder, cons
mode_t subFolderPermissions )
{
if ( !tqparentFolder->createChildFolder() ) {
- abort( i18n( "Unable to create subfolder for folder '%1'." ).arg( tqparentFolder->name() ) );
+ abort( i18n( "Unable to create subfolder for folder '%1'." ).tqarg( tqparentFolder->name() ) );
return 0;
}
@@ -334,7 +334,7 @@ void KMail::ImportJob::importNextDirectory()
const TQString folderName = folderNameForDirectoryName( entry->name() );
if ( folderName.isEmpty() ) {
- abort( i18n( "Unexpected subdirectory named '%1'." ).arg( entry->name() ) );
+ abort( i18n( "Unexpected subdirectory named '%1'." ).tqarg( entry->name() ) );
return;
}
KMFolder *subFolder = getOrCreateSubFolder( currentFolder, folderName, entry->permissions() );
@@ -368,12 +368,12 @@ void KMail::ImportJob::start()
else if ( !mimeType->patterns().grep( "zip", false ).isEmpty() )
mArchive = new KZip( mArchiveFile.path() );
else {
- abort( i18n( "The file '%1' does not appear to be a valid archive." ).arg( mArchiveFile.path() ) );
+ abort( i18n( "The file '%1' does not appear to be a valid archive." ).tqarg( mArchiveFile.path() ) );
return;
}
if ( !mArchive->open( IO_ReadOnly ) ) {
- abort( i18n( "Unable to open archive file '%1'" ).arg( mArchiveFile.path() ) );
+ abort( i18n( "Unable to open archive file '%1'" ).tqarg( mArchiveFile.path() ) );
return;
}