author | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
commit | 94df6192e59b7d4c69e2fb43ef2c39db08bb1c39 (patch) (side-by-side diff) | |
tree | 28956adbf73a61010d98deb27d83b324cb285471 /kmicromail/accountitem.cpp | |
parent | 52b6fc17c0dcd1f13f701f698e0305440f26fc3e (diff) | |
download | kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.zip kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.gz kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.bz2 |
compile fixes
-rw-r--r-- | kmicromail/accountitem.cpp | 97 |
1 files changed, 49 insertions, 48 deletions
diff --git a/kmicromail/accountitem.cpp b/kmicromail/accountitem.cpp index 49d86fc..567de87 100644 --- a/kmicromail/accountitem.cpp +++ b/kmicromail/accountitem.cpp @@ -12,12 +12,13 @@ //#include <qpe/qpeapplication.h> /* QT */ #include <qpopupmenu.h> #include <qmessagebox.h> #include <kiconloader.h> +#include <klocale.h> #define GET_NEW_MAILS 101 using namespace Opie::Core; #define SETPIX(x) if (!account->getOffline()) {setPixmap( 0,x);} else {setPixmap( 0, PIXMAP_OFFLINE );} /** @@ -89,20 +90,20 @@ QPopupMenu * POP3viewItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { if (!account->getOffline()) { - m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); - m->insertItem(QObject::tr("Disconnect",contextName),0); - m->insertItem(QObject::tr("Set offline",contextName),1); + m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); + m->insertItem(i18n("Disconnect"),0); + m->insertItem(i18n("Set offline"),1); } else { - m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); - m->insertItem(QObject::tr("Set online",contextName),1); + m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); + m->insertItem(i18n("Set online"),1); } } return m; } void POP3viewItem::disconnect() @@ -184,16 +185,16 @@ RECBODYP POP3folderItem::fetchBody(const RecMailP&aMail) QPopupMenu * POP3folderItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { - m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); - m->insertItem(QObject::tr("Refresh header list",contextName),0); - m->insertItem(QObject::tr("Delete all mails",contextName),1); - m->insertItem(QObject::tr("Move/Copie all mails",contextName),2); + m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); + m->insertItem(i18n("Refresh header list"),0); + m->insertItem(i18n("Delete all mails"),1); + m->insertItem(i18n("Move/Copie all mails"),2); } return m; } void POP3folderItem::downloadMails() { @@ -297,19 +298,19 @@ QPopupMenu * NNTPviewItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { if (!account->getOffline()) { - m->insertItem(QObject::tr("Disconnect",contextName),0); - m->insertItem(QObject::tr("Set offline",contextName),1); - //m->insertItem(QObject::tr("(Un-)Subscribe groups",contextName),2); + m->insertItem(i18n("Disconnect"),0); + m->insertItem(i18n("Set offline"),1); + //m->insertItem(i18n("(Un-)Subscribe groups"),2); } else { - m->insertItem(QObject::tr("Set online",contextName),1); + m->insertItem(i18n("Set online"),1); } } return m; } void NNTPviewItem::subscribeGroups() @@ -393,14 +394,14 @@ RECBODYP NNTPfolderItem::fetchBody(const RecMailP&aMail) QPopupMenu * NNTPfolderItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { - m->insertItem(QObject::tr("Refresh header list",contextName),0); - m->insertItem(QObject::tr("Copy all postings",contextName),1); + m->insertItem(i18n("Refresh header list"),0); + m->insertItem(i18n("Copy all postings"),1); } return m; } void NNTPfolderItem::downloadMails() { @@ -514,24 +515,24 @@ QPopupMenu * IMAPviewItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { if (!account->getOffline()) { - m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); - m->insertItem(QObject::tr("Refresh folder list",contextName),0); - m->insertItem(QObject::tr("Create new folder",contextName),1); + m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); + m->insertItem(i18n("Refresh folder list"),0); + m->insertItem(i18n("Create new folder"),1); m->insertSeparator(); - m->insertItem(QObject::tr("Disconnect",contextName),2); - m->insertItem(QObject::tr("Set offline",contextName),3); + m->insertItem(i18n("Disconnect"),2); + m->insertItem(i18n("Set offline"),3); m->insertSeparator(); } else { - m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); - m->insertItem(QObject::tr("Set online",contextName),3); + m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); + m->insertItem(i18n("Set online"),3); } } return m; } void IMAPviewItem::createNewFolder() @@ -669,24 +670,24 @@ QPopupMenu * IMAPfolderItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { if (folder->may_select()) { - m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); - m->insertItem(QObject::tr("Refresh header list",contextName),0); - m->insertItem(QObject::tr("Move/Copie all mails",contextName),4); - m->insertItem(QObject::tr("Delete all mails",contextName),1); + m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); + m->insertItem(i18n("Refresh header list"),0); + m->insertItem(i18n("Move/Copie all mails"),4); + m->insertItem(i18n("Delete all mails"),1); } if (folder->no_inferior()==false) { - m->insertItem(QObject::tr("Create new subfolder",contextName),2); + m->insertItem(i18n("Create new subfolder"),2); } if (folder->getDisplayName().lower()!="inbox") { - m->insertItem(QObject::tr("Delete folder",contextName),3); + m->insertItem(i18n("Delete folder"),3); } } return m; } void IMAPfolderItem::createNewFolder() @@ -704,16 +705,16 @@ void IMAPfolderItem::createNewFolder() } } } void IMAPfolderItem::deleteFolder() { - int yesno = QMessageBox::warning(0,QObject::tr("Delete folder",contextName), - QObject::tr("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>",contextName).arg(folder->getDisplayName()), - QObject::tr("Yes",contextName), - QObject::tr("No",contextName),QString::null,1,1); + int yesno = QMessageBox::warning(0,i18n("Delete folder"), + i18n("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>").arg(folder->getDisplayName()), + i18n("Yes"), + i18n("No"),QString::null,1,1); if (yesno == 0) { if (imap->getWrapper()->deleteMbox(folder)) { QListView*v=listView(); @@ -854,16 +855,16 @@ RECBODYP MHviewItem::fetchBody( const RecMailP &mail ) QPopupMenu * MHviewItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { - m->insertItem(QObject::tr("Refresh folder list",contextName),0); - m->insertItem(QObject::tr("Create new folder",contextName),1); - m->insertItem(QObject::tr("Delete all mails",contextName),2); - m->insertItem(QObject::tr("Move/Copie all mails",contextName),3); + m->insertItem(i18n("Refresh folder list"),0); + m->insertItem(i18n("Create new folder"),1); + m->insertItem(i18n("Delete all mails"),2); + m->insertItem(i18n("Move/Copie all mails"),3); } return m; } void MHviewItem::createFolder() { @@ -972,16 +973,16 @@ RECBODYP MHfolderItem::fetchBody(const RecMailP&aMail) { return mbox->getWrapper()->fetchBody(aMail); } void MHfolderItem::deleteFolder() { - int yesno = QMessageBox::warning(0,QObject::tr("Delete folder",contextName), - QObject::tr("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>",contextName).arg(folder->getDisplayName()), - QObject::tr("Yes",contextName), - QObject::tr("No",contextName),QString::null,1,1); + int yesno = QMessageBox::warning(0,i18n("Delete folder"), + i18n("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>").arg(folder->getDisplayName()), + i18n("Yes"), + i18n("No"),QString::null,1,1); if (yesno == 0) { if (mbox->getWrapper()->deleteMbox(folder)) { QListView*v=listView(); @@ -999,16 +1000,16 @@ void MHfolderItem::deleteFolder() QPopupMenu * MHfolderItem::getContextMenu() { QPopupMenu *m = new QPopupMenu(0); if (m) { - m->insertItem(QObject::tr("Move/Copie all mails",contextName),2); - m->insertItem(QObject::tr("Delete all mails",contextName),0); - m->insertItem(QObject::tr("Create new subfolder",contextName),3); - m->insertItem(QObject::tr("Delete folder",contextName),1); + m->insertItem(i18n("Move/Copie all mails"),2); + m->insertItem(i18n("Delete all mails"),0); + m->insertItem(i18n("Create new subfolder"),3); + m->insertItem(i18n("Delete folder"),1); } return m; } void MHfolderItem::downloadMails() { @@ -1114,17 +1115,17 @@ AccountView*AccountViewItem::accountView() void AccountViewItem::deleteAllMail(AbstractMail*wrapper,const FolderP&folder) { if (!wrapper) return; QString fname=""; if (folder) fname = folder->getDisplayName(); - int yesno = QMessageBox::warning(0,QObject::tr("Delete all mails",contextName), - QObject::tr("<center>Realy delete all mails in box <br>%1</center>",contextName). + int yesno = QMessageBox::warning(0,i18n("Delete all mails"), + i18n("<center>Realy delete all mails in box <br>%1</center>"). arg(fname), - QObject::tr("Yes",contextName), - QObject::tr("No",contextName),QString::null,1,1); + i18n("Yes"), + i18n("No"),QString::null,1,1); if (yesno == 0) { if (wrapper->deleteAllMail(folder)) { AccountView * view = (AccountView*)listView(); |