-rw-r--r-- | kmicromail/opiemail.cpp | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 164988c..3aa7905 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp @@ -10,8 +10,9 @@ #include "selectstore.h" #include "selectsmtp.h" #include "accountitem.h" #include "koprefsdialog.h" +#include "klocale.h" #include <qmessagebox.h> #include <qtimer.h> #include <libkdepim/externalapphandler.h> @@ -175,9 +176,9 @@ void OpieMail::slotSendQueued() } } if (smtpList.count()==0) { - QMessageBox::information(0,tr("Info"),tr("Define a smtp account first!\n")); + QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n")); return; } if (smtpList.count()==1) { @@ -198,9 +199,9 @@ void OpieMail::slotSendQueued() { SMTPwrapper * wrap = new SMTPwrapper(smtp); if ( wrap->flushOutbox() ) { - QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); + QMessageBox::information(0,i18n("Info"),i18n("Mail queue flushed")); } delete wrap; } } @@ -272,9 +273,9 @@ void OpieMail::slotGetMail() void OpieMail::slotDeleteMail() { if (!mailView->currentItem()) return; RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data(); - if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { mail->Wrapper()->deleteMail( mail ); folderView->refreshCurrent(); } @@ -282,9 +283,9 @@ void OpieMail::slotDeleteMail() void OpieMail::slotDeleteAllMail() { QValueList<RecMailP> t; - if ( QMessageBox::warning(this, tr("Delete All Mails"), tr("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); while ( item ) { if ( item->isSelected() ) { @@ -319,24 +320,24 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) QPopupMenu *m = new QPopupMenu(0); if (m) { if (mailtype==MAILLIB::A_NNTP) { - m->insertItem(tr("Read this posting"),this,SLOT(displayMail())); - m->insertItem(tr("Copy this posting"),this,SLOT(slotMoveCopyMail())); + m->insertItem(i18n("Read this posting"),this,SLOT(displayMail())); + m->insertItem(i18n("Copy this posting"),this,SLOT(slotMoveCopyMail())); m->insertSeparator(); - m->insertItem(tr("Copy all selected postings"),this,SLOT(slotMoveCopyAllMail())); - m->insertItem(tr("Clear selection"),this,SLOT(clearSelection())); + m->insertItem(i18n("Copy all selected postings"),this,SLOT(slotMoveCopyAllMail())); + m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection())); } else { if (folderView->currentisDraft()) { - m->insertItem(tr("Edit this mail"),this,SLOT(reEditMail())); + m->insertItem(i18n("Edit this mail"),this,SLOT(reEditMail())); } - m->insertItem(tr("Read this mail"),this,SLOT(displayMail())); - m->insertItem(tr("Move/Copy this mail"),this,SLOT(slotMoveCopyMail())); - m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail())); + m->insertItem(i18n("Read this mail"),this,SLOT(displayMail())); + m->insertItem(i18n("Move/Copy this mail"),this,SLOT(slotMoveCopyMail())); + m->insertItem(i18n("Delete this mail"),this,SLOT(slotDeleteMail())); m->insertSeparator(); - m->insertItem(tr("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); - m->insertItem(tr("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); - m->insertItem(tr("Clear selection"),this,SLOT(clearSelection())); + m->insertItem(i18n("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); + m->insertItem(i18n("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); + m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection())); } m->setFocus(); m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) ); delete m; @@ -399,10 +400,10 @@ void OpieMail::slotMoveCopyMail() return; } if (sels.newFolder() && !targetMail->createMbox(targetFolder)) { - QMessageBox::critical(0,tr("Error creating new Folder"), - tr("<center>Error while creating<br>new folder - breaking.</center>")); + QMessageBox::critical(0,i18n("Error creating new Folder"), + i18n("<center>Error while creating<br>new folder - breaking.</center>")); return; } sels.hide(); qApp->processEvents(); @@ -415,9 +416,9 @@ void OpieMail::slotMoveCopyAllMail() { if (!mailView->currentItem()) return; QValueList<RecMailP> t; - // if ( QMessageBox::warning(this, tr("Move/Copy all selected mails"), tr("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + // if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); while ( item ) { if ( item->isSelected() ) { @@ -444,10 +445,10 @@ void OpieMail::slotMoveCopyAllMail() return; } if (sels.newFolder() && !targetMail->createMbox(targetFolder)) { - QMessageBox::critical(0,tr("Error creating new Folder"), - tr("<center>Error while creating<br>new folder - breaking.</center>")); + QMessageBox::critical(0,i18n("Error creating new Folder"), + i18n("<center>Error while creating<br>new folder - breaking.</center>")); return; } sels.hide(); qApp->processEvents(); |