author | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
commit | 94df6192e59b7d4c69e2fb43ef2c39db08bb1c39 (patch) (unidiff) | |
tree | 28956adbf73a61010d98deb27d83b324cb285471 | |
parent | 52b6fc17c0dcd1f13f701f698e0305440f26fc3e (diff) | |
download | kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.zip kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.gz kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.bz2 |
compile fixes
-rw-r--r-- | kabc/plugins/qtopia/resourceqtopia.cpp | 5 | ||||
-rw-r--r-- | kmicromail/accountitem.cpp | 97 | ||||
-rw-r--r-- | kmicromail/accountview.cpp | 9 | ||||
-rw-r--r-- | kmicromail/addresspicker.cpp | 6 | ||||
-rw-r--r-- | kmicromail/composemail.cpp | 66 | ||||
-rw-r--r-- | kmicromail/editaccounts.cpp | 45 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/abstractmail.cpp | 22 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/imapwrapper.cpp | 58 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/mboxwrapper.cpp | 29 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/pop3wrapper.cpp | 21 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/smtpwrapper.cpp | 59 | ||||
-rw-r--r-- | kmicromail/nntpgroupsdlg.cpp | 3 | ||||
-rw-r--r-- | kmicromail/selectsmtp.cpp | 5 | ||||
-rw-r--r-- | kmicromail/viewmail.cpp | 23 | ||||
-rw-r--r-- | kmicromail/viewmailbase.cpp | 21 |
15 files changed, 240 insertions, 229 deletions
diff --git a/kabc/plugins/qtopia/resourceqtopia.cpp b/kabc/plugins/qtopia/resourceqtopia.cpp index 99e8618..d6df981 100644 --- a/kabc/plugins/qtopia/resourceqtopia.cpp +++ b/kabc/plugins/qtopia/resourceqtopia.cpp | |||
@@ -26,8 +26,9 @@ $Id$ | |||
26 | */ | 26 | */ |
27 | #include <sys/types.h> | 27 | #include <sys/types.h> |
28 | #include <sys/stat.h> | 28 | #include <sys/stat.h> |
29 | //#include <unistd.h> | 29 | #ifndef _WIN32_ |
30 | 30 | #include <unistd.h> | |
31 | #endif | ||
31 | #include <qdir.h> | 32 | #include <qdir.h> |
32 | #include <qfile.h> | 33 | #include <qfile.h> |
33 | #include <qtextstream.h> | 34 | #include <qtextstream.h> |
diff --git a/kmicromail/accountitem.cpp b/kmicromail/accountitem.cpp index 49d86fc..567de87 100644 --- a/kmicromail/accountitem.cpp +++ b/kmicromail/accountitem.cpp | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <qpopupmenu.h> | 15 | #include <qpopupmenu.h> |
16 | #include <qmessagebox.h> | 16 | #include <qmessagebox.h> |
17 | #include <kiconloader.h> | 17 | #include <kiconloader.h> |
18 | #include <klocale.h> | ||
18 | 19 | ||
19 | #define GET_NEW_MAILS 101 | 20 | #define GET_NEW_MAILS 101 |
20 | 21 | ||
@@ -92,14 +93,14 @@ QPopupMenu * POP3viewItem::getContextMenu() | |||
92 | { | 93 | { |
93 | if (!account->getOffline()) | 94 | if (!account->getOffline()) |
94 | { | 95 | { |
95 | m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); | 96 | m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); |
96 | m->insertItem(QObject::tr("Disconnect",contextName),0); | 97 | m->insertItem(i18n("Disconnect"),0); |
97 | m->insertItem(QObject::tr("Set offline",contextName),1); | 98 | m->insertItem(i18n("Set offline"),1); |
98 | } | 99 | } |
99 | else | 100 | else |
100 | { | 101 | { |
101 | m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); | 102 | m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); |
102 | m->insertItem(QObject::tr("Set online",contextName),1); | 103 | m->insertItem(i18n("Set online"),1); |
103 | } | 104 | } |
104 | } | 105 | } |
105 | return m; | 106 | return m; |
@@ -187,10 +188,10 @@ QPopupMenu * POP3folderItem::getContextMenu() | |||
187 | QPopupMenu *m = new QPopupMenu(0); | 188 | QPopupMenu *m = new QPopupMenu(0); |
188 | if (m) | 189 | if (m) |
189 | { | 190 | { |
190 | m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); | 191 | m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); |
191 | m->insertItem(QObject::tr("Refresh header list",contextName),0); | 192 | m->insertItem(i18n("Refresh header list"),0); |
192 | m->insertItem(QObject::tr("Delete all mails",contextName),1); | 193 | m->insertItem(i18n("Delete all mails"),1); |
193 | m->insertItem(QObject::tr("Move/Copie all mails",contextName),2); | 194 | m->insertItem(i18n("Move/Copie all mails"),2); |
194 | } | 195 | } |
195 | return m; | 196 | return m; |
196 | } | 197 | } |
@@ -300,13 +301,13 @@ QPopupMenu * NNTPviewItem::getContextMenu() | |||
300 | { | 301 | { |
301 | if (!account->getOffline()) | 302 | if (!account->getOffline()) |
302 | { | 303 | { |
303 | m->insertItem(QObject::tr("Disconnect",contextName),0); | 304 | m->insertItem(i18n("Disconnect"),0); |
304 | m->insertItem(QObject::tr("Set offline",contextName),1); | 305 | m->insertItem(i18n("Set offline"),1); |
305 | //m->insertItem(QObject::tr("(Un-)Subscribe groups",contextName),2); | 306 | //m->insertItem(i18n("(Un-)Subscribe groups"),2); |
306 | } | 307 | } |
307 | else | 308 | else |
308 | { | 309 | { |
309 | m->insertItem(QObject::tr("Set online",contextName),1); | 310 | m->insertItem(i18n("Set online"),1); |
310 | } | 311 | } |
311 | } | 312 | } |
312 | return m; | 313 | return m; |
@@ -396,8 +397,8 @@ QPopupMenu * NNTPfolderItem::getContextMenu() | |||
396 | QPopupMenu *m = new QPopupMenu(0); | 397 | QPopupMenu *m = new QPopupMenu(0); |
397 | if (m) | 398 | if (m) |
398 | { | 399 | { |
399 | m->insertItem(QObject::tr("Refresh header list",contextName),0); | 400 | m->insertItem(i18n("Refresh header list"),0); |
400 | m->insertItem(QObject::tr("Copy all postings",contextName),1); | 401 | m->insertItem(i18n("Copy all postings"),1); |
401 | } | 402 | } |
402 | return m; | 403 | return m; |
403 | } | 404 | } |
@@ -517,18 +518,18 @@ QPopupMenu * IMAPviewItem::getContextMenu() | |||
517 | { | 518 | { |
518 | if (!account->getOffline()) | 519 | if (!account->getOffline()) |
519 | { | 520 | { |
520 | m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); | 521 | m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); |
521 | m->insertItem(QObject::tr("Refresh folder list",contextName),0); | 522 | m->insertItem(i18n("Refresh folder list"),0); |
522 | m->insertItem(QObject::tr("Create new folder",contextName),1); | 523 | m->insertItem(i18n("Create new folder"),1); |
523 | m->insertSeparator(); | 524 | m->insertSeparator(); |
524 | m->insertItem(QObject::tr("Disconnect",contextName),2); | 525 | m->insertItem(i18n("Disconnect"),2); |
525 | m->insertItem(QObject::tr("Set offline",contextName),3); | 526 | m->insertItem(i18n("Set offline"),3); |
526 | m->insertSeparator(); | 527 | m->insertSeparator(); |
527 | } | 528 | } |
528 | else | 529 | else |
529 | { | 530 | { |
530 | m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); | 531 | m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); |
531 | m->insertItem(QObject::tr("Set online",contextName),3); | 532 | m->insertItem(i18n("Set online"),3); |
532 | } | 533 | } |
533 | } | 534 | } |
534 | return m; | 535 | return m; |
@@ -672,18 +673,18 @@ QPopupMenu * IMAPfolderItem::getContextMenu() | |||
672 | { | 673 | { |
673 | if (folder->may_select()) | 674 | if (folder->may_select()) |
674 | { | 675 | { |
675 | m->insertItem(QObject::tr("Get new messages",contextName),GET_NEW_MAILS); | 676 | m->insertItem(i18n("Get new messages"),GET_NEW_MAILS); |
676 | m->insertItem(QObject::tr("Refresh header list",contextName),0); | 677 | m->insertItem(i18n("Refresh header list"),0); |
677 | m->insertItem(QObject::tr("Move/Copie all mails",contextName),4); | 678 | m->insertItem(i18n("Move/Copie all mails"),4); |
678 | m->insertItem(QObject::tr("Delete all mails",contextName),1); | 679 | m->insertItem(i18n("Delete all mails"),1); |
679 | } | 680 | } |
680 | if (folder->no_inferior()==false) | 681 | if (folder->no_inferior()==false) |
681 | { | 682 | { |
682 | m->insertItem(QObject::tr("Create new subfolder",contextName),2); | 683 | m->insertItem(i18n("Create new subfolder"),2); |
683 | } | 684 | } |
684 | if (folder->getDisplayName().lower()!="inbox") | 685 | if (folder->getDisplayName().lower()!="inbox") |
685 | { | 686 | { |
686 | m->insertItem(QObject::tr("Delete folder",contextName),3); | 687 | m->insertItem(i18n("Delete folder"),3); |
687 | } | 688 | } |
688 | } | 689 | } |
689 | return m; | 690 | return m; |
@@ -707,10 +708,10 @@ void IMAPfolderItem::createNewFolder() | |||
707 | 708 | ||
708 | void IMAPfolderItem::deleteFolder() | 709 | void IMAPfolderItem::deleteFolder() |
709 | { | 710 | { |
710 | int yesno = QMessageBox::warning(0,QObject::tr("Delete folder",contextName), | 711 | int yesno = QMessageBox::warning(0,i18n("Delete folder"), |
711 | QObject::tr("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>",contextName).arg(folder->getDisplayName()), | 712 | i18n("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>").arg(folder->getDisplayName()), |
712 | QObject::tr("Yes",contextName), | 713 | i18n("Yes"), |
713 | QObject::tr("No",contextName),QString::null,1,1); | 714 | i18n("No"),QString::null,1,1); |
714 | 715 | ||
715 | if (yesno == 0) | 716 | if (yesno == 0) |
716 | { | 717 | { |
@@ -857,10 +858,10 @@ QPopupMenu * MHviewItem::getContextMenu() | |||
857 | QPopupMenu *m = new QPopupMenu(0); | 858 | QPopupMenu *m = new QPopupMenu(0); |
858 | if (m) | 859 | if (m) |
859 | { | 860 | { |
860 | m->insertItem(QObject::tr("Refresh folder list",contextName),0); | 861 | m->insertItem(i18n("Refresh folder list"),0); |
861 | m->insertItem(QObject::tr("Create new folder",contextName),1); | 862 | m->insertItem(i18n("Create new folder"),1); |
862 | m->insertItem(QObject::tr("Delete all mails",contextName),2); | 863 | m->insertItem(i18n("Delete all mails"),2); |
863 | m->insertItem(QObject::tr("Move/Copie all mails",contextName),3); | 864 | m->insertItem(i18n("Move/Copie all mails"),3); |
864 | } | 865 | } |
865 | return m; | 866 | return m; |
866 | } | 867 | } |
@@ -975,10 +976,10 @@ RECBODYP MHfolderItem::fetchBody(const RecMailP&aMail) | |||
975 | 976 | ||
976 | void MHfolderItem::deleteFolder() | 977 | void MHfolderItem::deleteFolder() |
977 | { | 978 | { |
978 | int yesno = QMessageBox::warning(0,QObject::tr("Delete folder",contextName), | 979 | int yesno = QMessageBox::warning(0,i18n("Delete folder"), |
979 | QObject::tr("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>",contextName).arg(folder->getDisplayName()), | 980 | i18n("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>").arg(folder->getDisplayName()), |
980 | QObject::tr("Yes",contextName), | 981 | i18n("Yes"), |
981 | QObject::tr("No",contextName),QString::null,1,1); | 982 | i18n("No"),QString::null,1,1); |
982 | 983 | ||
983 | if (yesno == 0) | 984 | if (yesno == 0) |
984 | { | 985 | { |
@@ -1002,10 +1003,10 @@ QPopupMenu * MHfolderItem::getContextMenu() | |||
1002 | QPopupMenu *m = new QPopupMenu(0); | 1003 | QPopupMenu *m = new QPopupMenu(0); |
1003 | if (m) | 1004 | if (m) |
1004 | { | 1005 | { |
1005 | m->insertItem(QObject::tr("Move/Copie all mails",contextName),2); | 1006 | m->insertItem(i18n("Move/Copie all mails"),2); |
1006 | m->insertItem(QObject::tr("Delete all mails",contextName),0); | 1007 | m->insertItem(i18n("Delete all mails"),0); |
1007 | m->insertItem(QObject::tr("Create new subfolder",contextName),3); | 1008 | m->insertItem(i18n("Create new subfolder"),3); |
1008 | m->insertItem(QObject::tr("Delete folder",contextName),1); | 1009 | m->insertItem(i18n("Delete folder"),1); |
1009 | } | 1010 | } |
1010 | return m; | 1011 | return m; |
1011 | } | 1012 | } |
@@ -1117,11 +1118,11 @@ void AccountViewItem::deleteAllMail(AbstractMail*wrapper,const FolderP&folder) | |||
1117 | if (!wrapper) return; | 1118 | if (!wrapper) return; |
1118 | QString fname=""; | 1119 | QString fname=""; |
1119 | if (folder) fname = folder->getDisplayName(); | 1120 | if (folder) fname = folder->getDisplayName(); |
1120 | int yesno = QMessageBox::warning(0,QObject::tr("Delete all mails",contextName), | 1121 | int yesno = QMessageBox::warning(0,i18n("Delete all mails"), |
1121 | QObject::tr("<center>Realy delete all mails in box <br>%1</center>",contextName). | 1122 | i18n("<center>Realy delete all mails in box <br>%1</center>"). |
1122 | arg(fname), | 1123 | arg(fname), |
1123 | QObject::tr("Yes",contextName), | 1124 | i18n("Yes"), |
1124 | QObject::tr("No",contextName),QString::null,1,1); | 1125 | i18n("No"),QString::null,1,1); |
1125 | 1126 | ||
1126 | if (yesno == 0) | 1127 | if (yesno == 0) |
1127 | { | 1128 | { |
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp index de8c5bb..c10d384 100644 --- a/kmicromail/accountview.cpp +++ b/kmicromail/accountview.cpp | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <qpopupmenu.h> | 16 | #include <qpopupmenu.h> |
17 | #include <qcheckbox.h> | 17 | #include <qcheckbox.h> |
18 | #include <qspinbox.h> | 18 | #include <qspinbox.h> |
19 | #include <klocale.h> | ||
19 | 20 | ||
20 | using namespace Opie::Core; | 21 | using namespace Opie::Core; |
21 | AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) | 22 | AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) |
@@ -156,8 +157,8 @@ void AccountView::downloadMailsInbox(const FolderP&fromFolder,AbstractMail*fromW | |||
156 | } | 157 | } |
157 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) | 158 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) |
158 | { | 159 | { |
159 | QMessageBox::critical(0,tr("Error creating new Folder"), | 160 | QMessageBox::critical(0,i18n("Error creating new Folder"), |
160 | tr("<center>Error while creating<br>new folder - breaking.</center>")); | 161 | i18n("<center>Error while creating<br>new folder - breaking.</center>")); |
161 | return; | 162 | return; |
162 | } | 163 | } |
163 | int maxsize = 0; | 164 | int maxsize = 0; |
@@ -186,8 +187,8 @@ void AccountView::downloadMails(const FolderP&fromFolder,AbstractMail*fromWrappe | |||
186 | } | 187 | } |
187 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) | 188 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) |
188 | { | 189 | { |
189 | QMessageBox::critical(0,tr("Error creating new Folder"), | 190 | QMessageBox::critical(0,i18n("Error creating new Folder"), |
190 | tr("<center>Error while creating<br>new folder - breaking.</center>")); | 191 | i18n("<center>Error while creating<br>new folder - breaking.</center>")); |
191 | return; | 192 | return; |
192 | } | 193 | } |
193 | int maxsize = 0; | 194 | int maxsize = 0; |
diff --git a/kmicromail/addresspicker.cpp b/kmicromail/addresspicker.cpp index ec6da49..f4234b4 100644 --- a/kmicromail/addresspicker.cpp +++ b/kmicromail/addresspicker.cpp | |||
@@ -62,7 +62,7 @@ AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFl | |||
62 | #if 0 | 62 | #if 0 |
63 | // makes this realy sense?? | 63 | // makes this realy sense?? |
64 | addressList->insertItem( | 64 | addressList->insertItem( |
65 | tr( "There are no entries in the addressbook." ) ); | 65 | i18n( "There are no entries in the addressbook." ) ); |
66 | #endif | 66 | #endif |
67 | addressList->setEnabled( false ); | 67 | addressList->setEnabled( false ); |
68 | okButton->setEnabled( false ); | 68 | okButton->setEnabled( false ); |
@@ -89,8 +89,8 @@ void AddressPicker::accept() | |||
89 | 89 | ||
90 | if ( names.isEmpty() ) | 90 | if ( names.isEmpty() ) |
91 | { | 91 | { |
92 | QMessageBox::information(this, tr("Error"), tr("<p>You have to select" | 92 | QMessageBox::information(this, i18n("Error"), i18n("<p>You have to select" |
93 | " at least one address entry.</p>"), tr("Ok")); | 93 | " at least one address entry.</p>"), i18n("Ok")); |
94 | return; | 94 | return; |
95 | } | 95 | } |
96 | 96 | ||
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 946e97d..35ad367 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -52,9 +52,9 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
52 | QString whoami_uid = config.readEntry( "WhoAmI" ); | 52 | QString whoami_uid = config.readEntry( "WhoAmI" ); |
53 | 53 | ||
54 | if ( whoami_uid.isEmpty() ) { | 54 | if ( whoami_uid.isEmpty() ) { |
55 | QMessageBox::information( 0, tr( "Hint" ), | 55 | QMessageBox::information( 0, i18n( "Hint" ), |
56 | tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 56 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
57 | tr( "Ok" ) ); | 57 | i18n( "Ok" ) ); |
58 | 58 | ||
59 | 59 | ||
60 | fillSettings(); | 60 | fillSettings(); |
@@ -67,9 +67,9 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
67 | QStringList mails = con.emails(); | 67 | QStringList mails = con.emails(); |
68 | QString defmail = con.preferredEmail(); | 68 | QString defmail = con.preferredEmail(); |
69 | if ( mails.count() == 0) | 69 | if ( mails.count() == 0) |
70 | QMessageBox::information( 0, tr( "Hint" ), | 70 | QMessageBox::information( 0, i18n( "Hint" ), |
71 | tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 71 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
72 | tr( "Ok" ) ); | 72 | i18n( "Ok" ) ); |
73 | if (defmail.length()!=0) { | 73 | if (defmail.length()!=0) { |
74 | fromBox->insertItem(defmail); | 74 | fromBox->insertItem(defmail); |
75 | } | 75 | } |
@@ -87,8 +87,8 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
87 | } | 87 | } |
88 | checkBoxLater->setChecked( KOPrefs::instance()->mSendLater ); | 88 | checkBoxLater->setChecked( KOPrefs::instance()->mSendLater ); |
89 | 89 | ||
90 | attList->addColumn( tr( "Name" ) ); | 90 | attList->addColumn( i18n( "Name" ) ); |
91 | attList->addColumn( tr( "Size" ) ); | 91 | attList->addColumn( i18n( "Size" ) ); |
92 | QList<Account> accounts = settings->getAccounts(); | 92 | QList<Account> accounts = settings->getAccounts(); |
93 | 93 | ||
94 | if ( QApplication::desktop()->width() < 320 ) | 94 | if ( QApplication::desktop()->width() < 320 ) |
@@ -113,9 +113,9 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
113 | if ( smtpAccounts.count() > 0 ) { | 113 | if ( smtpAccounts.count() > 0 ) { |
114 | fillValues( smtpAccountBox->currentItem() ); | 114 | fillValues( smtpAccountBox->currentItem() ); |
115 | } else { | 115 | } else { |
116 | QMessageBox::information( 0, tr( "Problem" ), | 116 | QMessageBox::information( 0, i18n( "Problem" ), |
117 | tr( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), | 117 | i18n( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), |
118 | tr( "Ok" ) ); | 118 | i18n( "Ok" ) ); |
119 | return; | 119 | return; |
120 | } | 120 | } |
121 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); | 121 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); |
@@ -172,15 +172,15 @@ void ComposeMail::saveAsDraft() | |||
172 | /* attachments we will ignore! */ | 172 | /* attachments we will ignore! */ |
173 | if ( it != 0 ) { | 173 | if ( it != 0 ) { |
174 | if ( warnAttach ) | 174 | if ( warnAttach ) |
175 | QMessageBox::warning(0,tr("Store message"), | 175 | QMessageBox::warning(0,i18n("Store message"), |
176 | tr("<center>Attachments will not be stored in \"Draft\" folder</center>")); | 176 | i18n("<center>Attachments will not be stored in \"Draft\" folder</center>")); |
177 | warnAttach = false; | 177 | warnAttach = false; |
178 | } | 178 | } |
179 | setStatus( tr("Mail saved as draft!") ); | 179 | setStatus( i18n("Mail saved as draft!") ); |
180 | } | 180 | } |
181 | void ComposeMail::clearStatus() | 181 | void ComposeMail::clearStatus() |
182 | { | 182 | { |
183 | topLevelWidget()->setCaption( tr("Compose mail") ); | 183 | topLevelWidget()->setCaption( i18n("Compose mail") ); |
184 | } | 184 | } |
185 | void ComposeMail::setStatus( QString status ) | 185 | void ComposeMail::setStatus( QString status ) |
186 | { | 186 | { |
@@ -228,9 +228,9 @@ void ComposeMail::insertAttendees(const QString& uid,const QStringList& nameLis | |||
228 | if ( mPickLineEdit == 0 ) { //whoami received | 228 | if ( mPickLineEdit == 0 ) { //whoami received |
229 | QString defmail = uidList[0]; | 229 | QString defmail = uidList[0]; |
230 | if ( emailList.count() == 0 ) | 230 | if ( emailList.count() == 0 ) |
231 | QMessageBox::information( 0, tr( "Hint" ), | 231 | QMessageBox::information( 0, i18n( "Hint" ), |
232 | tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 232 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
233 | tr( "Ok" ) ); | 233 | i18n( "Ok" ) ); |
234 | if (defmail.length()!=0) { | 234 | if (defmail.length()!=0) { |
235 | fromBox->insertItem(defmail); | 235 | fromBox->insertItem(defmail); |
236 | } | 236 | } |
@@ -355,9 +355,9 @@ void ComposeMail::addAttachment() | |||
355 | void ComposeMail::removeAttachment() | 355 | void ComposeMail::removeAttachment() |
356 | { | 356 | { |
357 | if ( !attList->currentItem() ) { | 357 | if ( !attList->currentItem() ) { |
358 | QMessageBox::information( this, tr( "Error" ), | 358 | QMessageBox::information( this, i18n( "Error" ), |
359 | tr( "<p>Please select a File.</p>" ), | 359 | i18n( "<p>Please select a File.</p>" ), |
360 | tr( "Ok" ) ); | 360 | i18n( "Ok" ) ); |
361 | } else { | 361 | } else { |
362 | attList->takeItem( attList->currentItem() ); | 362 | attList->takeItem( attList->currentItem() ); |
363 | } | 363 | } |
@@ -372,10 +372,10 @@ void ComposeMail::accept() | |||
372 | } | 372 | } |
373 | 373 | ||
374 | if (! checkBoxLater->isChecked() ) { | 374 | if (! checkBoxLater->isChecked() ) { |
375 | int yesno = QMessageBox::warning(0,tr("Stop editing message"), | 375 | int yesno = QMessageBox::warning(0,i18n("Stop editing message"), |
376 | tr("Send this message?"), | 376 | i18n("Send this message?"), |
377 | tr("Yes"), | 377 | i18n("Yes"), |
378 | tr("Cancel")); | 378 | i18n("Cancel")); |
379 | 379 | ||
380 | if (yesno == 1) { | 380 | if (yesno == 1) { |
381 | return; | 381 | return; |
@@ -393,8 +393,8 @@ void ComposeMail::accept() | |||
393 | if ( !toLine->text().isEmpty() ) { | 393 | if ( !toLine->text().isEmpty() ) { |
394 | mail->setTo( toLine->text() ); | 394 | mail->setTo( toLine->text() ); |
395 | } else { | 395 | } else { |
396 | QMessageBox::warning(0,tr("Sending mail"), | 396 | QMessageBox::warning(0,i18n("Sending mail"), |
397 | tr("No Receiver spezified" ) ); | 397 | i18n("No Receiver spezified" ) ); |
398 | return; | 398 | return; |
399 | } | 399 | } |
400 | 400 | ||
@@ -435,16 +435,16 @@ void ComposeMail::accept() | |||
435 | void ComposeMail::reject() | 435 | void ComposeMail::reject() |
436 | { | 436 | { |
437 | //qDebug("ComposeMail::reject() "); | 437 | //qDebug("ComposeMail::reject() "); |
438 | int yesno = QMessageBox::warning(0,tr("Store message?"), | 438 | int yesno = QMessageBox::warning(0,i18n("Store message?"), |
439 | tr("Store message into drafts?\n"), | 439 | i18n("Store message into drafts?\n"), |
440 | tr("Yes"), | 440 | i18n("Yes"), |
441 | tr("No")); | 441 | i18n("No")); |
442 | 442 | ||
443 | //qDebug("button %d ", yesno); | 443 | //qDebug("button %d ", yesno); |
444 | if (yesno == 0) { | 444 | if (yesno == 0) { |
445 | if ( toLine->text().isEmpty() ) { | 445 | if ( toLine->text().isEmpty() ) { |
446 | QMessageBox::warning(0,tr("Sending mail"), | 446 | QMessageBox::warning(0,i18n("Sending mail"), |
447 | tr("No Receiver spezified" ) ); | 447 | i18n("No Receiver spezified" ) ); |
448 | return; | 448 | return; |
449 | } | 449 | } |
450 | saveAsDraft(); | 450 | saveAsDraft(); |
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index 733e38a..7ad4ec8 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <qtabwidget.h> | 17 | #include <qtabwidget.h> |
18 | #include <qlistview.h> | 18 | #include <qlistview.h> |
19 | #include <qspinbox.h> | 19 | #include <qspinbox.h> |
20 | #include <klocale.h> | ||
20 | 21 | ||
21 | #include <libmailwrapper/nntpwrapper.h> | 22 | #include <libmailwrapper/nntpwrapper.h> |
22 | 23 | ||
@@ -53,10 +54,10 @@ EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool | |||
53 | { | 54 | { |
54 | settings = s; | 55 | settings = s; |
55 | 56 | ||
56 | mailList->addColumn( tr( "Account" ) ); | 57 | mailList->addColumn( i18n( "Account" ) ); |
57 | mailList->addColumn( tr( "Type" ) ); | 58 | mailList->addColumn( i18n( "Type" ) ); |
58 | 59 | ||
59 | newsList->addColumn( tr( "Account" ) ); | 60 | newsList->addColumn( i18n( "Account" ) ); |
60 | 61 | ||
61 | connect( newMail, SIGNAL( clicked() ), SLOT( slotNewMail() ) ); | 62 | connect( newMail, SIGNAL( clicked() ), SLOT( slotNewMail() ) ); |
62 | connect( editMail, SIGNAL( clicked() ), SLOT( slotEditMail() ) ); | 63 | connect( editMail, SIGNAL( clicked() ), SLOT( slotEditMail() ) ); |
@@ -207,9 +208,9 @@ void EditAccounts::slotEditAccount( Account *account ) | |||
207 | 208 | ||
208 | void EditAccounts::slotDeleteAccount( Account *account ) | 209 | void EditAccounts::slotDeleteAccount( Account *account ) |
209 | { | 210 | { |
210 | if ( QMessageBox::information( this, tr( "Question" ), | 211 | if ( QMessageBox::information( this, i18n( "Question" ), |
211 | tr( "<p>Do you really want to delete the selected Account?</p>" ), | 212 | i18n( "<p>Do you really want to delete the selected Account?</p>" ), |
212 | tr( "Yes" ), tr( "No" ) ) == 0 ) | 213 | i18n( "Yes" ), i18n( "No" ) ) == 0 ) |
213 | { | 214 | { |
214 | settings->delAccount( account ); | 215 | settings->delAccount( account ); |
215 | slotFillLists(); | 216 | slotFillLists(); |
@@ -220,9 +221,9 @@ void EditAccounts::slotEditMail() | |||
220 | { | 221 | { |
221 | if ( !mailList->currentItem() ) | 222 | if ( !mailList->currentItem() ) |
222 | { | 223 | { |
223 | QMessageBox::information( this, tr( "Error" ), | 224 | QMessageBox::information( this, i18n( "Error" ), |
224 | tr( "<p>Please select an account.</p>" ), | 225 | i18n( "<p>Please select an account.</p>" ), |
225 | tr( "Ok" ) ); | 226 | i18n( "Ok" ) ); |
226 | return; | 227 | return; |
227 | } | 228 | } |
228 | 229 | ||
@@ -234,9 +235,9 @@ void EditAccounts::slotDeleteMail() | |||
234 | { | 235 | { |
235 | if ( !mailList->currentItem() ) | 236 | if ( !mailList->currentItem() ) |
236 | { | 237 | { |
237 | QMessageBox::information( this, tr( "Error" ), | 238 | QMessageBox::information( this, i18n( "Error" ), |
238 | tr( "<p>Please select an account.</p>" ), | 239 | i18n( "<p>Please select an account.</p>" ), |
239 | tr( "Ok" ) ); | 240 | i18n( "Ok" ) ); |
240 | return; | 241 | return; |
241 | } | 242 | } |
242 | 243 | ||
@@ -253,9 +254,9 @@ void EditAccounts::slotEditNews() | |||
253 | { | 254 | { |
254 | if ( !newsList->currentItem() ) | 255 | if ( !newsList->currentItem() ) |
255 | { | 256 | { |
256 | QMessageBox::information( this, tr( "Error" ), | 257 | QMessageBox::information( this, i18n( "Error" ), |
257 | tr( "<p>Please select an account.</p>" ), | 258 | i18n( "<p>Please select an account.</p>" ), |
258 | tr( "Ok" ) ); | 259 | i18n( "Ok" ) ); |
259 | return; | 260 | return; |
260 | } | 261 | } |
261 | 262 | ||
@@ -267,9 +268,9 @@ void EditAccounts::slotDeleteNews() | |||
267 | { | 268 | { |
268 | if ( !newsList->currentItem() ) | 269 | if ( !newsList->currentItem() ) |
269 | { | 270 | { |
270 | QMessageBox::information( this, tr( "Error" ), | 271 | QMessageBox::information( this, i18n( "Error" ), |
271 | tr( "<p>Please select an account.</p>" ), | 272 | i18n( "<p>Please select an account.</p>" ), |
272 | tr( "Ok" ) ); | 273 | i18n( "Ok" ) ); |
273 | return; | 274 | return; |
274 | } | 275 | } |
275 | 276 | ||
@@ -555,7 +556,7 @@ void NNTPconfig::slotShowSub() | |||
555 | item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox ); | 556 | item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox ); |
556 | item->setOn( true ); | 557 | item->setOn( true ); |
557 | } | 558 | } |
558 | topLevelWidget()->setCaption( tr("%1 groups subscribed").arg( subscribedGroups.count())); | 559 | topLevelWidget()->setCaption( i18n("%1 groups subscribed").arg( subscribedGroups.count())); |
559 | } | 560 | } |
560 | void NNTPconfig::slotShowFilter() | 561 | void NNTPconfig::slotShowFilter() |
561 | { | 562 | { |
@@ -573,16 +574,16 @@ void NNTPconfig::slotShowFilter() | |||
573 | } | 574 | } |
574 | } | 575 | } |
575 | } | 576 | } |
576 | topLevelWidget()->setCaption( tr("Filter found %1 groups").arg( count)); | 577 | topLevelWidget()->setCaption( i18n("Filter found %1 groups").arg( count)); |
577 | } | 578 | } |
578 | void NNTPconfig::slotGetNG() { | 579 | void NNTPconfig::slotGetNG() { |
579 | save(); | 580 | save(); |
580 | data->save(); | 581 | data->save(); |
581 | topLevelWidget()->setCaption( tr("Fetching group list...")); | 582 | topLevelWidget()->setCaption( i18n("Fetching group list...")); |
582 | qApp->processEvents(); | 583 | qApp->processEvents(); |
583 | NNTPwrapper* tmp = new NNTPwrapper( data ); | 584 | NNTPwrapper* tmp = new NNTPwrapper( data ); |
584 | allGroups = tmp->listAllNewsgroups(); | 585 | allGroups = tmp->listAllNewsgroups(); |
585 | topLevelWidget()->setCaption( tr("Downloaded %1 group names").arg( allGroups.count())); | 586 | topLevelWidget()->setCaption( i18n("Downloaded %1 group names").arg( allGroups.count())); |
586 | 587 | ||
587 | ListViewGroups->clear(); | 588 | ListViewGroups->clear(); |
588 | 589 | ||
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp index 2d7533c..8ee112c 100644 --- a/kmicromail/libmailwrapper/abstractmail.cpp +++ b/kmicromail/libmailwrapper/abstractmail.cpp | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <qprogressbar.h> | 11 | #include <qprogressbar.h> |
12 | #include <qapplication.h> | 12 | #include <qapplication.h> |
13 | #include <qmessagebox.h> | 13 | #include <qmessagebox.h> |
14 | 14 | #include <klocale.h> | |
15 | #include <kdecore/kstandarddirs.h> | 15 | #include <kdecore/kstandarddirs.h> |
16 | #include <qfile.h> | 16 | #include <qfile.h> |
17 | #include <qtextstream.h> | 17 | #include <qtextstream.h> |
@@ -147,10 +147,10 @@ void AbstractMail::deleteMailList(const QValueList<RecMailP>&target) | |||
147 | int iii = 0; | 147 | int iii = 0; |
148 | int count = target.count(); | 148 | int count = target.count(); |
149 | QProgressBar wid ( count ); | 149 | QProgressBar wid ( count ); |
150 | wid.setCaption( tr("Deleting ...")); | 150 | wid.setCaption( i18n("Deleting ...")); |
151 | wid.show(); | 151 | wid.show(); |
152 | while (iii < count ) { | 152 | while (iii < count ) { |
153 | Global::statusMessage(tr("Delete message %1 of %2").arg(iii).arg(count)); | 153 | Global::statusMessage(i18n("Delete message %1 of %2").arg(iii).arg(count)); |
154 | wid.setProgress( iii ); | 154 | wid.setProgress( iii ); |
155 | wid.raise(); | 155 | wid.raise(); |
156 | qApp->processEvents(); | 156 | qApp->processEvents(); |
@@ -172,15 +172,15 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe | |||
172 | // create local folder | 172 | // create local folder |
173 | if ( !targetMail->createMbox(lfName)) | 173 | if ( !targetMail->createMbox(lfName)) |
174 | { | 174 | { |
175 | QMessageBox::critical(0,tr("Error creating new Folder"), | 175 | QMessageBox::critical(0,i18n("Error creating new Folder"), |
176 | tr("Error while creating new folder\n%1\n\nCancelling action.").arg(lfName)); | 176 | i18n("Error while creating new folder\n%1\n\nCancelling action.").arg(lfName)); |
177 | return; | 177 | return; |
178 | } | 178 | } |
179 | QValueList<RecMailP> t; | 179 | QValueList<RecMailP> t; |
180 | listMessages(fromFolder->getName(),t,acc->getMaxMailSize() ); | 180 | listMessages(fromFolder->getName(),t,acc->getMaxMailSize() ); |
181 | if ( t.count() == 0 ) { | 181 | if ( t.count() == 0 ) { |
182 | qDebug("There are no new messages %s", fromFolder->getName().latin1()); | 182 | qDebug("There are no new messages %s", fromFolder->getName().latin1()); |
183 | Global::statusMessage(tr("There are no new messages")); | 183 | Global::statusMessage(i18n("There are no new messages")); |
184 | return; | 184 | return; |
185 | } | 185 | } |
186 | QValueList<RecMailP> e; | 186 | QValueList<RecMailP> e; |
@@ -210,11 +210,11 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe | |||
210 | } | 210 | } |
211 | qDebug("Downloaded %d messages ",n.count() ); | 211 | qDebug("Downloaded %d messages ",n.count() ); |
212 | if ( n.count() == 0 ) { | 212 | if ( n.count() == 0 ) { |
213 | Global::statusMessage(tr("There are no new messages")); | 213 | Global::statusMessage(i18n("There are no new messages")); |
214 | return; | 214 | return; |
215 | } | 215 | } |
216 | mvcpMailList( n,lfName,targetMail,!acc->getLeaveOnServer()); | 216 | mvcpMailList( n,lfName,targetMail,!acc->getLeaveOnServer()); |
217 | Global::statusMessage(tr("Downloaded %1 messages").arg(n.count())); | 217 | Global::statusMessage(i18n("Downloaded %1 messages").arg(n.count())); |
218 | 218 | ||
219 | #if 0 | 219 | #if 0 |
220 | QValueList<RecMailP> t; | 220 | QValueList<RecMailP> t; |
@@ -240,13 +240,13 @@ void AbstractMail::mvcpMailList(const QValueList<RecMailP>& t, | |||
240 | if ( count == 0 ) | 240 | if ( count == 0 ) |
241 | return; | 241 | return; |
242 | // wel, processevents is qite strange, we need a widget for getting | 242 | // wel, processevents is qite strange, we need a widget for getting |
243 | // Global::statusMessage(tr("Copy2 message %1").arg(iii)); displaye | 243 | // Global::statusMessage(i18n("Copy2 message %1").arg(iii)); displaye |
244 | 244 | ||
245 | QProgressBar wid ( count ); | 245 | QProgressBar wid ( count ); |
246 | wid.setCaption( tr("Copying ...")); | 246 | wid.setCaption( i18n("Copying...")); |
247 | wid.show(); | 247 | wid.show(); |
248 | while (iii < count ) { | 248 | while (iii < count ) { |
249 | Global::statusMessage(tr("Copy message %1 of %2").arg(iii).arg(count)); | 249 | Global::statusMessage(i18n("Copy message %1 of %2").arg(iii).arg(count)); |
250 | wid.setProgress( iii ); | 250 | wid.setProgress( iii ); |
251 | wid.raise(); | 251 | wid.raise(); |
252 | qApp->processEvents(); | 252 | qApp->processEvents(); |
diff --git a/kmicromail/libmailwrapper/imapwrapper.cpp b/kmicromail/libmailwrapper/imapwrapper.cpp index 8150453..3aec13d 100644 --- a/kmicromail/libmailwrapper/imapwrapper.cpp +++ b/kmicromail/libmailwrapper/imapwrapper.cpp | |||
@@ -48,7 +48,7 @@ int IMAPwrapper::selectMbox(const QString&mbox) | |||
48 | void IMAPwrapper::imap_progress( size_t current, size_t maximum ) | 48 | void IMAPwrapper::imap_progress( size_t current, size_t maximum ) |
49 | { | 49 | { |
50 | //qDebug("imap progress %d of %d ",current,maximum ); | 50 | //qDebug("imap progress %d of %d ",current,maximum ); |
51 | //Global::statusMessage(tr("Downloading message %1 of %2").arg( current).arg(maximum)); | 51 | //Global::statusMessage(i18n("Downloading message %1 of %2").arg( current).arg(maximum)); |
52 | //qApp->processEvents() | 52 | //qApp->processEvents() |
53 | static int last = 0; | 53 | static int last = 0; |
54 | if ( last != current ) | 54 | if ( last != current ) |
@@ -66,8 +66,8 @@ void IMAPwrapper::progress( QString m ) | |||
66 | } | 66 | } |
67 | QString mess; | 67 | QString mess; |
68 | //qDebug("progress "); | 68 | //qDebug("progress "); |
69 | if ( mMax ) mess = mProgrMess +tr(" message %1 of %2").arg( mCurrent++).arg(mMax); | 69 | if ( mMax ) mess = mProgrMess +i18n(" message %1 of %2").arg( mCurrent++).arg(mMax); |
70 | else mess = mProgrMess +tr(" message %1").arg( mCurrent++); | 70 | else mess = mProgrMess +i18n(" message %1").arg( mCurrent++); |
71 | Global::statusMessage(mess); | 71 | Global::statusMessage(mess); |
72 | //qDebug("Progress %s %s", mess.latin1(), m.latin1()); | 72 | //qDebug("Progress %s %s", mess.latin1(), m.latin1()); |
73 | qApp->processEvents(); | 73 | qApp->processEvents(); |
@@ -100,7 +100,7 @@ bool IMAPwrapper::start_tls(bool force_tls) | |||
100 | if (try_tls) { | 100 | if (try_tls) { |
101 | err = mailimap_starttls(m_imap); | 101 | err = mailimap_starttls(m_imap); |
102 | if (err != MAILIMAP_NO_ERROR && force_tls) { | 102 | if (err != MAILIMAP_NO_ERROR && force_tls) { |
103 | Global::statusMessage(tr("Server has no TLS support!")); | 103 | Global::statusMessage(i18n("Server has no TLS support!")); |
104 | try_tls = false; | 104 | try_tls = false; |
105 | } else { | 105 | } else { |
106 | mailstream_low * low; | 106 | mailstream_low * low; |
@@ -188,7 +188,7 @@ void IMAPwrapper::login() | |||
188 | } else { | 188 | } else { |
189 | failure="Unknown failure"; | 189 | failure="Unknown failure"; |
190 | } | 190 | } |
191 | Global::statusMessage(tr("error connecting imap server: %1").arg(failure)); | 191 | Global::statusMessage(i18n("error connecting imap server: %1").arg(failure)); |
192 | mailimap_free( m_imap ); | 192 | mailimap_free( m_imap ); |
193 | m_imap = 0; | 193 | m_imap = 0; |
194 | return; | 194 | return; |
@@ -200,7 +200,7 @@ void IMAPwrapper::login() | |||
200 | 200 | ||
201 | bool ok = true; | 201 | bool ok = true; |
202 | if (force_tls && !try_tls) { | 202 | if (force_tls && !try_tls) { |
203 | Global::statusMessage(tr("Server has no TLS support!")); | 203 | Global::statusMessage(i18n("Server has no TLS support!")); |
204 | ok = false; | 204 | ok = false; |
205 | } | 205 | } |
206 | 206 | ||
@@ -210,7 +210,7 @@ void IMAPwrapper::login() | |||
210 | if (ok) { | 210 | if (ok) { |
211 | err = mailimap_login_simple( m_imap, (char*)user.latin1(), (char*)pass.latin1() ); | 211 | err = mailimap_login_simple( m_imap, (char*)user.latin1(), (char*)pass.latin1() ); |
212 | if ( err != MAILIMAP_NO_ERROR ) { | 212 | if ( err != MAILIMAP_NO_ERROR ) { |
213 | Global::statusMessage(tr("error logging in imap server: %1").arg(m_imap->imap_response)); | 213 | Global::statusMessage(i18n("error logging in imap server: %1").arg(m_imap->imap_response)); |
214 | ok = false; | 214 | ok = false; |
215 | } | 215 | } |
216 | } | 216 | } |
@@ -256,14 +256,14 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma | |||
256 | int last = m_imap->imap_selection_info->sel_exists; | 256 | int last = m_imap->imap_selection_info->sel_exists; |
257 | 257 | ||
258 | if (last == 0) { | 258 | if (last == 0) { |
259 | Global::statusMessage(tr("Mailbox has no mails")); | 259 | Global::statusMessage(i18n("Mailbox has no mails")); |
260 | return; | 260 | return; |
261 | } else { | 261 | } else { |
262 | } | 262 | } |
263 | progress( tr("Fetch ")); | 263 | progress( i18n("Fetch ")); |
264 | mMax = last; | 264 | mMax = last; |
265 | //qDebug("last %d ", last); | 265 | //qDebug("last %d ", last); |
266 | Global::statusMessage(tr("Fetching header list")); | 266 | Global::statusMessage(i18n("Fetching header list")); |
267 | qApp->processEvents(); | 267 | qApp->processEvents(); |
268 | /* the range has to start at 1!!! not with 0!!!! */ | 268 | /* the range has to start at 1!!! not with 0!!!! */ |
269 | //LR the access to web.de imap server is no working with value 1 | 269 | //LR the access to web.de imap server is no working with value 1 |
@@ -299,12 +299,12 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma | |||
299 | } | 299 | } |
300 | } | 300 | } |
301 | } | 301 | } |
302 | Global::statusMessage(tr("Mailbox has %1 mails").arg(target.count())); | 302 | Global::statusMessage(i18n("Mailbox has %1 mails").arg(target.count())); |
303 | } else { | 303 | } else { |
304 | --tryAgain; | 304 | --tryAgain; |
305 | --tryAgain;//disabled tryagain by adding this line | 305 | --tryAgain;//disabled tryagain by adding this line |
306 | if ( tryAgain < 0 ) | 306 | if ( tryAgain < 0 ) |
307 | Global::statusMessage(tr("Error fetching headers: %1").arg(m_imap->imap_response)); | 307 | Global::statusMessage(i18n("Error fetching headers: %1").arg(m_imap->imap_response)); |
308 | else | 308 | else |
309 | qDebug("try again... "); | 309 | qDebug("try again... "); |
310 | } | 310 | } |
@@ -333,7 +333,7 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders() | |||
333 | * We must not forget to filter them out in next loop! | 333 | * We must not forget to filter them out in next loop! |
334 | * it seems like ugly code. and yes - it is ugly code. but the best way. | 334 | * it seems like ugly code. and yes - it is ugly code. but the best way. |
335 | */ | 335 | */ |
336 | Global::statusMessage(tr("Fetching folder list")); | 336 | Global::statusMessage(i18n("Fetching folder list")); |
337 | qApp->processEvents(); | 337 | qApp->processEvents(); |
338 | QString temp; | 338 | QString temp; |
339 | mask = "INBOX" ; | 339 | mask = "INBOX" ; |
@@ -969,13 +969,13 @@ void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target) | |||
969 | 969 | ||
970 | 970 | ||
971 | mMax = count; | 971 | mMax = count; |
972 | progress( tr("Delete")); | 972 | progress( i18n("Delete")); |
973 | 973 | ||
974 | QProgressBar wid ( count ); | 974 | QProgressBar wid ( count ); |
975 | wid.setCaption( tr("Deleting ...")); | 975 | wid.setCaption( i18n("Deleting ...")); |
976 | wid.show(); | 976 | wid.show(); |
977 | while (iii < count ) { | 977 | while (iii < count ) { |
978 | Global::statusMessage(tr("Delete message %1 of %2").arg(iii).arg(count)); | 978 | Global::statusMessage(i18n("Delete message %1 of %2").arg(iii).arg(count)); |
979 | wid.setProgress( iii ); | 979 | wid.setProgress( iii ); |
980 | wid.raise(); | 980 | wid.raise(); |
981 | qApp->processEvents(); | 981 | qApp->processEvents(); |
@@ -1003,7 +1003,7 @@ void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target) | |||
1003 | 1003 | ||
1004 | // err = mailimap_expunge(m_imap); | 1004 | // err = mailimap_expunge(m_imap); |
1005 | //if (err != MAILIMAP_NO_ERROR) { | 1005 | //if (err != MAILIMAP_NO_ERROR) { |
1006 | // Global::statusMessage(tr("Error deleting mails: %s").arg(m_imap->imap_response)); | 1006 | // Global::statusMessage(i18n("Error deleting mails: %s").arg(m_imap->imap_response)); |
1007 | // } | 1007 | // } |
1008 | //#endif | 1008 | //#endif |
1009 | //deleteMail( mail); | 1009 | //deleteMail( mail); |
@@ -1012,7 +1012,7 @@ void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target) | |||
1012 | //qDebug("Deleting imap mails... "); | 1012 | //qDebug("Deleting imap mails... "); |
1013 | err = mailimap_expunge(m_imap); | 1013 | err = mailimap_expunge(m_imap); |
1014 | if (err != MAILIMAP_NO_ERROR) { | 1014 | if (err != MAILIMAP_NO_ERROR) { |
1015 | Global::statusMessage(tr("Error deleting mails: %s").arg(m_imap->imap_response)); | 1015 | Global::statusMessage(i18n("Error deleting mails: %s").arg(m_imap->imap_response)); |
1016 | } | 1016 | } |
1017 | } | 1017 | } |
1018 | void IMAPwrapper::deleteMail(const RecMailP&mail) | 1018 | void IMAPwrapper::deleteMail(const RecMailP&mail) |
@@ -1046,7 +1046,7 @@ void IMAPwrapper::deleteMail(const RecMailP&mail) | |||
1046 | 1046 | ||
1047 | err = mailimap_expunge(m_imap); | 1047 | err = mailimap_expunge(m_imap); |
1048 | if (err != MAILIMAP_NO_ERROR) { | 1048 | if (err != MAILIMAP_NO_ERROR) { |
1049 | Global::statusMessage(tr("error deleting mail: %s").arg(m_imap->imap_response)); | 1049 | Global::statusMessage(i18n("error deleting mail: %s").arg(m_imap->imap_response)); |
1050 | } | 1050 | } |
1051 | //qDebug("IMAPwrapper::deleteMail 2"); | 1051 | //qDebug("IMAPwrapper::deleteMail 2"); |
1052 | 1052 | ||
@@ -1129,7 +1129,7 @@ int IMAPwrapper::deleteAllMail(const FolderP&folder) | |||
1129 | 1129 | ||
1130 | int last = m_imap->imap_selection_info->sel_exists; | 1130 | int last = m_imap->imap_selection_info->sel_exists; |
1131 | if (last == 0) { | 1131 | if (last == 0) { |
1132 | Global::statusMessage(tr("Mailbox has no mails!")); | 1132 | Global::statusMessage(i18n("Mailbox has no mails!")); |
1133 | return 0; | 1133 | return 0; |
1134 | } | 1134 | } |
1135 | flist = mailimap_flag_list_new_empty(); | 1135 | flist = mailimap_flag_list_new_empty(); |
@@ -1140,14 +1140,14 @@ int IMAPwrapper::deleteAllMail(const FolderP&folder) | |||
1140 | mailimap_set_free( set ); | 1140 | mailimap_set_free( set ); |
1141 | mailimap_store_att_flags_free(store_flags); | 1141 | mailimap_store_att_flags_free(store_flags); |
1142 | if (err != MAILIMAP_NO_ERROR) { | 1142 | if (err != MAILIMAP_NO_ERROR) { |
1143 | Global::statusMessage(tr("error deleting mail: %s").arg(m_imap->imap_response)); | 1143 | Global::statusMessage(i18n("error deleting mail: %s").arg(m_imap->imap_response)); |
1144 | return 0; | 1144 | return 0; |
1145 | } | 1145 | } |
1146 | // odebug << "deleting mail: " << m_imap->imap_response << "" << oendl; | 1146 | // odebug << "deleting mail: " << m_imap->imap_response << "" << oendl; |
1147 | /* should we realy do that at this moment? */ | 1147 | /* should we realy do that at this moment? */ |
1148 | err = mailimap_expunge(m_imap); | 1148 | err = mailimap_expunge(m_imap); |
1149 | if (err != MAILIMAP_NO_ERROR) { | 1149 | if (err != MAILIMAP_NO_ERROR) { |
1150 | Global::statusMessage(tr("error deleting mail: %s").arg(m_imap->imap_response)); | 1150 | Global::statusMessage(i18n("error deleting mail: %s").arg(m_imap->imap_response)); |
1151 | return 0; | 1151 | return 0; |
1152 | } | 1152 | } |
1153 | // odebug << "Delete successfull " << m_imap->imap_response << "" << oendl; | 1153 | // odebug << "Delete successfull " << m_imap->imap_response << "" << oendl; |
@@ -1171,14 +1171,14 @@ int IMAPwrapper::createMbox(const QString&folder,const FolderP&parentfolder,cons | |||
1171 | if (delemiter.length()>0) { | 1171 | if (delemiter.length()>0) { |
1172 | pre+=delemiter; | 1172 | pre+=delemiter; |
1173 | } else { | 1173 | } else { |
1174 | Global::statusMessage(tr("Cannot create folder %1 for holding subfolders").arg(pre)); | 1174 | Global::statusMessage(i18n("Cannot create folder %1 for holding subfolders").arg(pre)); |
1175 | return 0; | 1175 | return 0; |
1176 | } | 1176 | } |
1177 | } | 1177 | } |
1178 | // odebug << "Creating " << pre.latin1() << "" << oendl; | 1178 | // odebug << "Creating " << pre.latin1() << "" << oendl; |
1179 | int res = mailimap_create(m_imap,pre.latin1()); | 1179 | int res = mailimap_create(m_imap,pre.latin1()); |
1180 | if (res != MAILIMAP_NO_ERROR) { | 1180 | if (res != MAILIMAP_NO_ERROR) { |
1181 | Global::statusMessage(tr("%1").arg(m_imap->imap_response)); | 1181 | Global::statusMessage(i18n("%1").arg(m_imap->imap_response)); |
1182 | return 0; | 1182 | return 0; |
1183 | } | 1183 | } |
1184 | return 1; | 1184 | return 1; |
@@ -1191,7 +1191,7 @@ int IMAPwrapper::deleteMbox(const FolderP&folder) | |||
1191 | if (!m_imap) {return 0;} | 1191 | if (!m_imap) {return 0;} |
1192 | int res = mailimap_delete(m_imap,folder->getName()); | 1192 | int res = mailimap_delete(m_imap,folder->getName()); |
1193 | if (res != MAILIMAP_NO_ERROR) { | 1193 | if (res != MAILIMAP_NO_ERROR) { |
1194 | Global::statusMessage(tr("%1").arg(m_imap->imap_response)); | 1194 | Global::statusMessage(i18n("%1").arg(m_imap->imap_response)); |
1195 | return 0; | 1195 | return 0; |
1196 | } | 1196 | } |
1197 | return 1; | 1197 | return 1; |
@@ -1274,7 +1274,7 @@ void IMAPwrapper::mvcpAllMails(const FolderP&fromFolder, | |||
1274 | { | 1274 | { |
1275 | if (targetWrapper != this || maxSizeInKb > 0 ) { | 1275 | if (targetWrapper != this || maxSizeInKb > 0 ) { |
1276 | mMax = 0; | 1276 | mMax = 0; |
1277 | progress( tr("Copy")); | 1277 | progress( i18n("Copy")); |
1278 | AbstractMail::mvcpAllMails(fromFolder,targetFolder,targetWrapper,moveit, maxSizeInKb); | 1278 | AbstractMail::mvcpAllMails(fromFolder,targetFolder,targetWrapper,moveit, maxSizeInKb); |
1279 | //qDebug("IMAPwrapper::mvcpAllMails::Using generic"); | 1279 | //qDebug("IMAPwrapper::mvcpAllMails::Using generic"); |
1280 | // odebug << "Using generic" << oendl; | 1280 | // odebug << "Using generic" << oendl; |
@@ -1289,13 +1289,13 @@ void IMAPwrapper::mvcpAllMails(const FolderP&fromFolder, | |||
1289 | if ( err != MAILIMAP_NO_ERROR ) { | 1289 | if ( err != MAILIMAP_NO_ERROR ) { |
1290 | return; | 1290 | return; |
1291 | } | 1291 | } |
1292 | Global::statusMessage( tr("Copying mails on server...") ); | 1292 | Global::statusMessage( i18n("Copying mails on server...") ); |
1293 | int last = m_imap->imap_selection_info->sel_exists; | 1293 | int last = m_imap->imap_selection_info->sel_exists; |
1294 | set = mailimap_set_new_interval( 1, last ); | 1294 | set = mailimap_set_new_interval( 1, last ); |
1295 | err = mailimap_copy(m_imap,set,targetFolder.latin1()); | 1295 | err = mailimap_copy(m_imap,set,targetFolder.latin1()); |
1296 | mailimap_set_free( set ); | 1296 | mailimap_set_free( set ); |
1297 | if ( err != MAILIMAP_NO_ERROR ) { | 1297 | if ( err != MAILIMAP_NO_ERROR ) { |
1298 | QString error_msg = tr("Error copy mails: %1").arg(m_imap->imap_response); | 1298 | QString error_msg = i18n("Error copy mails: %1").arg(m_imap->imap_response); |
1299 | Global::statusMessage(error_msg); | 1299 | Global::statusMessage(error_msg); |
1300 | // odebug << error_msg << oendl; | 1300 | // odebug << error_msg << oendl; |
1301 | return; | 1301 | return; |
@@ -1325,7 +1325,7 @@ void IMAPwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstra | |||
1325 | err = mailimap_copy(m_imap,set,targetFolder.latin1()); | 1325 | err = mailimap_copy(m_imap,set,targetFolder.latin1()); |
1326 | mailimap_set_free( set ); | 1326 | mailimap_set_free( set ); |
1327 | if ( err != MAILIMAP_NO_ERROR ) { | 1327 | if ( err != MAILIMAP_NO_ERROR ) { |
1328 | QString error_msg = tr("error copy mail: %1").arg(m_imap->imap_response); | 1328 | QString error_msg = i18n("error copy mail: %1").arg(m_imap->imap_response); |
1329 | Global::statusMessage(error_msg); | 1329 | Global::statusMessage(error_msg); |
1330 | // odebug << error_msg << oendl; | 1330 | // odebug << error_msg << oendl; |
1331 | return; | 1331 | return; |
diff --git a/kmicromail/libmailwrapper/mboxwrapper.cpp b/kmicromail/libmailwrapper/mboxwrapper.cpp index 39dd156..0cdbae4 100644 --- a/kmicromail/libmailwrapper/mboxwrapper.cpp +++ b/kmicromail/libmailwrapper/mboxwrapper.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <libetpan/libetpan.h> | 4 | #include <libetpan/libetpan.h> |
5 | #include <qdir.h> | 5 | #include <qdir.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <klocale.h> | ||
7 | 8 | ||
8 | 9 | ||
9 | #include <qpe/global.h> | 10 | #include <qpe/global.h> |
@@ -44,7 +45,7 @@ void MBOXwrapper::listMessages(const QString & mailbox, QValueList<RecMailP> &ta | |||
44 | mailfolder_disconnect(folder); | 45 | mailfolder_disconnect(folder); |
45 | mailfolder_free(folder); | 46 | mailfolder_free(folder); |
46 | mailstorage_free(storage); | 47 | mailstorage_free(storage); |
47 | Global::statusMessage(tr("Mailbox has %1 mail(s)").arg(target.count())); | 48 | Global::statusMessage(i18n("Mailbox has %1 mail(s)").arg(target.count())); |
48 | } | 49 | } |
49 | 50 | ||
50 | QValueList<Opie::Core::OSmartPointer<Folder> >* MBOXwrapper::listFolders() | 51 | QValueList<Opie::Core::OSmartPointer<Folder> >* MBOXwrapper::listFolders() |
@@ -143,12 +144,12 @@ int MBOXwrapper::createMbox(const QString&folder,const FolderP&,const QString&,b | |||
143 | p+=folder; | 144 | p+=folder; |
144 | QFileInfo fi(p); | 145 | QFileInfo fi(p); |
145 | if (fi.exists()) { | 146 | if (fi.exists()) { |
146 | Global::statusMessage(tr("Mailbox exists.")); | 147 | Global::statusMessage(i18n("Mailbox exists.")); |
147 | return 0; | 148 | return 0; |
148 | } | 149 | } |
149 | mailmbox_folder*f = 0; | 150 | mailmbox_folder*f = 0; |
150 | if (mailmbox_init(p.latin1(),0,1,0,&f) != MAIL_NO_ERROR) { | 151 | if (mailmbox_init(p.latin1(),0,1,0,&f) != MAIL_NO_ERROR) { |
151 | Global::statusMessage(tr("Error init folder")); | 152 | Global::statusMessage(i18n("Error init folder")); |
152 | return 0; | 153 | return 0; |
153 | } | 154 | } |
154 | if (f) mailmbox_done(f); | 155 | if (f) mailmbox_done(f); |
@@ -162,12 +163,12 @@ void MBOXwrapper::storeMessage(const char*msg,size_t length, const QString&folde | |||
162 | mailmbox_folder*f = 0; | 163 | mailmbox_folder*f = 0; |
163 | int r = mailmbox_init(p.latin1(),0,1,0,&f); | 164 | int r = mailmbox_init(p.latin1(),0,1,0,&f); |
164 | if (r != MAIL_NO_ERROR) { | 165 | if (r != MAIL_NO_ERROR) { |
165 | Global::statusMessage(tr("Error init folder")); | 166 | Global::statusMessage(i18n("Error init folder")); |
166 | return; | 167 | return; |
167 | } | 168 | } |
168 | r = mailmbox_append_message(f,msg,length); | 169 | r = mailmbox_append_message(f,msg,length); |
169 | if (r != MAIL_NO_ERROR) { | 170 | if (r != MAIL_NO_ERROR) { |
170 | Global::statusMessage(tr("Error writing to message folder")); | 171 | Global::statusMessage(i18n("Error writing to message folder")); |
171 | } | 172 | } |
172 | mailmbox_done(f); | 173 | mailmbox_done(f); |
173 | } | 174 | } |
@@ -187,21 +188,21 @@ encodedString* MBOXwrapper::fetchRawBody(const RecMailP&mail) | |||
187 | folder = mailfolder_new( storage,(char*)p.latin1(),NULL); | 188 | folder = mailfolder_new( storage,(char*)p.latin1(),NULL); |
188 | r = mailfolder_connect(folder); | 189 | r = mailfolder_connect(folder); |
189 | if (r != MAIL_NO_ERROR) { | 190 | if (r != MAIL_NO_ERROR) { |
190 | Global::statusMessage(tr("Error initializing mbox")); | 191 | Global::statusMessage(i18n("Error initializing mbox")); |
191 | mailfolder_free(folder); | 192 | mailfolder_free(folder); |
192 | mailstorage_free(storage); | 193 | mailstorage_free(storage); |
193 | return 0; | 194 | return 0; |
194 | } | 195 | } |
195 | r = mailsession_get_message(folder->fld_session, mail->getNumber(), &msg); | 196 | r = mailsession_get_message(folder->fld_session, mail->getNumber(), &msg); |
196 | if (r != MAIL_NO_ERROR) { | 197 | if (r != MAIL_NO_ERROR) { |
197 | Global::statusMessage(tr("Error fetching mail %i").arg(mail->getNumber())); | 198 | Global::statusMessage(i18n("Error fetching mail %i").arg(mail->getNumber())); |
198 | mailfolder_free(folder); | 199 | mailfolder_free(folder); |
199 | mailstorage_free(storage); | 200 | mailstorage_free(storage); |
200 | return 0; | 201 | return 0; |
201 | } | 202 | } |
202 | r = mailmessage_fetch(msg,&data,&size); | 203 | r = mailmessage_fetch(msg,&data,&size); |
203 | if (r != MAIL_NO_ERROR) { | 204 | if (r != MAIL_NO_ERROR) { |
204 | Global::statusMessage(tr("Error fetching mail %i").arg(mail->getNumber())); | 205 | Global::statusMessage(i18n("Error fetching mail %i").arg(mail->getNumber())); |
205 | mailfolder_free(folder); | 206 | mailfolder_free(folder); |
206 | mailstorage_free(storage); | 207 | mailstorage_free(storage); |
207 | mailmessage_free(msg); | 208 | mailmessage_free(msg); |
@@ -257,14 +258,14 @@ int MBOXwrapper::deleteAllMail(const FolderP&tfolder) | |||
257 | mailstorage*storage = mailstorage_new(NULL); | 258 | mailstorage*storage = mailstorage_new(NULL); |
258 | int r = mbox_mailstorage_init(storage,(char*)p.latin1(),0,0,0); | 259 | int r = mbox_mailstorage_init(storage,(char*)p.latin1(),0,0,0); |
259 | if (r != MAIL_NO_ERROR) { | 260 | if (r != MAIL_NO_ERROR) { |
260 | Global::statusMessage(tr("Error initializing mbox")); | 261 | Global::statusMessage(i18n("Error initializing mbox")); |
261 | res = 0; | 262 | res = 0; |
262 | } | 263 | } |
263 | if (res) { | 264 | if (res) { |
264 | folder = mailfolder_new( storage,(char*)p.latin1(),NULL); | 265 | folder = mailfolder_new( storage,(char*)p.latin1(),NULL); |
265 | r = mailfolder_connect(folder); | 266 | r = mailfolder_connect(folder); |
266 | if (r != MAIL_NO_ERROR) { | 267 | if (r != MAIL_NO_ERROR) { |
267 | Global::statusMessage(tr("Error initializing mbox")); | 268 | Global::statusMessage(i18n("Error initializing mbox")); |
268 | res = 0; | 269 | res = 0; |
269 | } | 270 | } |
270 | } | 271 | } |
@@ -278,7 +279,7 @@ int MBOXwrapper::deleteAllMail(const FolderP&tfolder) | |||
278 | for(unsigned int i = 0 ; l!= 0 && res==1 && i < carray_count(l->msg_tab) ; ++i) { | 279 | for(unsigned int i = 0 ; l!= 0 && res==1 && i < carray_count(l->msg_tab) ; ++i) { |
279 | r = mailsession_remove_message(folder->fld_session,i+1); | 280 | r = mailsession_remove_message(folder->fld_session,i+1); |
280 | if (r != MAIL_NO_ERROR) { | 281 | if (r != MAIL_NO_ERROR) { |
281 | Global::statusMessage(tr("Error deleting mail %1").arg(i+1)); | 282 | Global::statusMessage(i18n("Error deleting mail %1").arg(i+1)); |
282 | res = 0; | 283 | res = 0; |
283 | break; | 284 | break; |
284 | } | 285 | } |
@@ -295,11 +296,11 @@ int MBOXwrapper::deleteMbox(const FolderP&tfolder) | |||
295 | QString p = MBOXPath+"/"+tfolder->getDisplayName(); | 296 | QString p = MBOXPath+"/"+tfolder->getDisplayName(); |
296 | QFile fi(p); | 297 | QFile fi(p); |
297 | if (!fi.exists()) { | 298 | if (!fi.exists()) { |
298 | Global::statusMessage(tr("Mailbox doesn't exist.")); | 299 | Global::statusMessage(i18n("Mailbox doesn't exist.")); |
299 | return 0; | 300 | return 0; |
300 | } | 301 | } |
301 | if (!fi.remove()) { | 302 | if (!fi.remove()) { |
302 | Global::statusMessage(tr("Error deleting Mailbox.")); | 303 | Global::statusMessage(i18n("Error deleting Mailbox.")); |
303 | return 0; | 304 | return 0; |
304 | } | 305 | } |
305 | return 1; | 306 | return 1; |
@@ -315,7 +316,7 @@ void MBOXwrapper::statusFolder(folderStat&target_stat,const QString & mailbox) | |||
315 | QString p = MBOXPath+"/"+mailbox; | 316 | QString p = MBOXPath+"/"+mailbox; |
316 | QFile fi(p); | 317 | QFile fi(p); |
317 | if (!fi.exists()) { | 318 | if (!fi.exists()) { |
318 | Global::statusMessage(tr("Mailbox doesn't exist.")); | 319 | Global::statusMessage(i18n("Mailbox doesn't exist.")); |
319 | return; | 320 | return; |
320 | } | 321 | } |
321 | int r = mbox_mailstorage_init(storage,(char*)p.latin1(),0,0,0); | 322 | int r = mbox_mailstorage_init(storage,(char*)p.latin1(),0,0,0); |
diff --git a/kmicromail/libmailwrapper/pop3wrapper.cpp b/kmicromail/libmailwrapper/pop3wrapper.cpp index 9d52f52..2888f7c 100644 --- a/kmicromail/libmailwrapper/pop3wrapper.cpp +++ b/kmicromail/libmailwrapper/pop3wrapper.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | #include "logindialog.h" | 5 | #include "logindialog.h" |
6 | #include <libetpan/libetpan.h> | 6 | #include <libetpan/libetpan.h> |
7 | 7 | ||
8 | #include <klocale.h> | ||
8 | 9 | ||
9 | #include <qpe/global.h> | 10 | #include <qpe/global.h> |
10 | #include <qfile.h> | 11 | #include <qfile.h> |
@@ -107,7 +108,7 @@ void POP3wrapper::listMessages(const QString &, QValueList<Opie::Core::OSmartPoi | |||
107 | uint32_t res_messages,res_recent,res_unseen; | 108 | uint32_t res_messages,res_recent,res_unseen; |
108 | mailsession_status_folder(m_pop3->sto_session,"INBOX",&res_messages,&res_recent,&res_unseen); | 109 | mailsession_status_folder(m_pop3->sto_session,"INBOX",&res_messages,&res_recent,&res_unseen); |
109 | parseList(target,m_pop3->sto_session,"INBOX", false, maxSizeInKb); | 110 | parseList(target,m_pop3->sto_session,"INBOX", false, maxSizeInKb); |
110 | Global::statusMessage( tr("Mailbox contains %1 mail(s)").arg(res_messages)); | 111 | Global::statusMessage( i18n("Mailbox contains %1 mail(s)").arg(res_messages)); |
111 | } | 112 | } |
112 | 113 | ||
113 | void POP3wrapper::login() | 114 | void POP3wrapper::login() |
@@ -165,7 +166,7 @@ void POP3wrapper::login() | |||
165 | err = mailstorage_connect(m_pop3); | 166 | err = mailstorage_connect(m_pop3); |
166 | if (err != MAIL_NO_ERROR) { | 167 | if (err != MAIL_NO_ERROR) { |
167 | ; // odebug << QString( "FEHLERNUMMER %1" ).arg( err ) << oendl; | 168 | ; // odebug << QString( "FEHLERNUMMER %1" ).arg( err ) << oendl; |
168 | Global::statusMessage(tr("Error %1 initializing folder").arg( err )); | 169 | Global::statusMessage(i18n("Error %1 initializing folder").arg( err )); |
169 | mailstorage_free(m_pop3); | 170 | mailstorage_free(m_pop3); |
170 | m_pop3 = 0; | 171 | m_pop3 = 0; |
171 | } else { | 172 | } else { |
@@ -202,10 +203,10 @@ void POP3wrapper::deleteMailList(const QValueList<RecMailP>&target) | |||
202 | int count = target.count(); | 203 | int count = target.count(); |
203 | 204 | ||
204 | QProgressBar wid ( count ); | 205 | QProgressBar wid ( count ); |
205 | wid.setCaption( tr("Deleting ...")); | 206 | wid.setCaption( i18n("Deleting ...")); |
206 | wid.show(); | 207 | wid.show(); |
207 | while (iii < count ) { | 208 | while (iii < count ) { |
208 | Global::statusMessage(tr("Delete message %1 of %2").arg(iii).arg(count)); | 209 | Global::statusMessage(i18n("Delete message %1 of %2").arg(iii).arg(count)); |
209 | wid.setProgress( iii ); | 210 | wid.setProgress( iii ); |
210 | wid.raise(); | 211 | wid.raise(); |
211 | qApp->processEvents(); | 212 | qApp->processEvents(); |
@@ -213,7 +214,7 @@ void POP3wrapper::deleteMailList(const QValueList<RecMailP>&target) | |||
213 | RecMailP mail = (*target.at( iii )); | 214 | RecMailP mail = (*target.at( iii )); |
214 | int err = mailsession_remove_message(m_pop3->sto_session,mail->getNumber()); | 215 | int err = mailsession_remove_message(m_pop3->sto_session,mail->getNumber()); |
215 | if (err != MAIL_NO_ERROR) { | 216 | if (err != MAIL_NO_ERROR) { |
216 | Global::statusMessage(tr("Error deleting mail")); | 217 | Global::statusMessage(i18n("Error deleting mail")); |
217 | } | 218 | } |
218 | ++iii; | 219 | ++iii; |
219 | } | 220 | } |
@@ -224,7 +225,7 @@ void POP3wrapper::deleteMail(const RecMailP&mail) { | |||
224 | return; | 225 | return; |
225 | int err = mailsession_remove_message(m_pop3->sto_session,mail->getNumber()); | 226 | int err = mailsession_remove_message(m_pop3->sto_session,mail->getNumber()); |
226 | if (err != MAIL_NO_ERROR) { | 227 | if (err != MAIL_NO_ERROR) { |
227 | Global::statusMessage(tr("error deleting mail")); | 228 | Global::statusMessage(i18n("error deleting mail")); |
228 | } | 229 | } |
229 | } | 230 | } |
230 | 231 | ||
@@ -239,24 +240,24 @@ int POP3wrapper::deleteAllMail(const FolderP&) { | |||
239 | uint32_t result = 0; | 240 | uint32_t result = 0; |
240 | int err = mailsession_messages_number(m_pop3->sto_session,NULL,&result); | 241 | int err = mailsession_messages_number(m_pop3->sto_session,NULL,&result); |
241 | if (err != MAIL_NO_ERROR) { | 242 | if (err != MAIL_NO_ERROR) { |
242 | Global::statusMessage(tr("Error getting folder info")); | 243 | Global::statusMessage(i18n("Error getting folder info")); |
243 | return 0; | 244 | return 0; |
244 | } | 245 | } |
245 | 246 | ||
246 | 247 | ||
247 | 248 | ||
248 | QProgressBar wid ( result ); | 249 | QProgressBar wid ( result ); |
249 | wid.setCaption( tr("Deleting ...")); | 250 | wid.setCaption( i18n("Deleting ...")); |
250 | wid.show(); | 251 | wid.show(); |
251 | for (unsigned int i = 0; i < result; ++i) { | 252 | for (unsigned int i = 0; i < result; ++i) { |
252 | Global::statusMessage(tr("Delete message %1 of %2").arg(i).arg(result)); | 253 | Global::statusMessage(i18n("Delete message %1 of %2").arg(i).arg(result)); |
253 | wid.setProgress( i ); | 254 | wid.setProgress( i ); |
254 | wid.raise(); | 255 | wid.raise(); |
255 | qApp->processEvents(); | 256 | qApp->processEvents(); |
256 | 257 | ||
257 | err = mailsession_remove_message(m_pop3->sto_session,i+1); | 258 | err = mailsession_remove_message(m_pop3->sto_session,i+1); |
258 | if (err != MAIL_NO_ERROR) { | 259 | if (err != MAIL_NO_ERROR) { |
259 | Global::statusMessage(tr("Error deleting mail %1").arg(i+1)); | 260 | Global::statusMessage(i18n("Error deleting mail %1").arg(i+1)); |
260 | res=0; | 261 | res=0; |
261 | } | 262 | } |
262 | break; | 263 | break; |
diff --git a/kmicromail/libmailwrapper/smtpwrapper.cpp b/kmicromail/libmailwrapper/smtpwrapper.cpp index d5a528c..dee1477 100644 --- a/kmicromail/libmailwrapper/smtpwrapper.cpp +++ b/kmicromail/libmailwrapper/smtpwrapper.cpp | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <qpe/qcopenvelope_qws.h> | 14 | #include <qpe/qcopenvelope_qws.h> |
15 | 15 | ||
16 | #include <libetpan/libetpan.h> | 16 | #include <libetpan/libetpan.h> |
17 | #include <klocale.h> | ||
17 | 18 | ||
18 | 19 | ||
19 | using namespace Opie::Core; | 20 | using namespace Opie::Core; |
@@ -44,43 +45,43 @@ void SMTPwrapper::emitQCop( int queued ) { | |||
44 | QString SMTPwrapper::mailsmtpError( int errnum ) { | 45 | QString SMTPwrapper::mailsmtpError( int errnum ) { |
45 | switch ( errnum ) { | 46 | switch ( errnum ) { |
46 | case MAILSMTP_NO_ERROR: | 47 | case MAILSMTP_NO_ERROR: |
47 | return tr( "No error" ); | 48 | return i18n( "No error" ); |
48 | case MAILSMTP_ERROR_UNEXPECTED_CODE: | 49 | case MAILSMTP_ERROR_UNEXPECTED_CODE: |
49 | return tr( "Unexpected error code" ); | 50 | return i18n( "Unexpected error code" ); |
50 | case MAILSMTP_ERROR_SERVICE_NOT_AVAILABLE: | 51 | case MAILSMTP_ERROR_SERVICE_NOT_AVAILABLE: |
51 | return tr( "Service not available" ); | 52 | return i18n( "Service not available" ); |
52 | case MAILSMTP_ERROR_STREAM: | 53 | case MAILSMTP_ERROR_STREAM: |
53 | return tr( "Stream error" ); | 54 | return i18n( "Stream error" ); |
54 | case MAILSMTP_ERROR_HOSTNAME: | 55 | case MAILSMTP_ERROR_HOSTNAME: |
55 | return tr( "gethostname() failed" ); | 56 | return i18n( "gethostname() failed" ); |
56 | case MAILSMTP_ERROR_NOT_IMPLEMENTED: | 57 | case MAILSMTP_ERROR_NOT_IMPLEMENTED: |
57 | return tr( "Not implemented" ); | 58 | return i18n( "Not implemented" ); |
58 | case MAILSMTP_ERROR_ACTION_NOT_TAKEN: | 59 | case MAILSMTP_ERROR_ACTION_NOT_TAKEN: |
59 | return tr( "Error, action not taken" ); | 60 | return i18n( "Error, action not taken" ); |
60 | case MAILSMTP_ERROR_EXCEED_STORAGE_ALLOCATION: | 61 | case MAILSMTP_ERROR_EXCEED_STORAGE_ALLOCATION: |
61 | return tr( "Data exceeds storage allocation" ); | 62 | return i18n( "Data exceeds storage allocation" ); |
62 | case MAILSMTP_ERROR_IN_PROCESSING: | 63 | case MAILSMTP_ERROR_IN_PROCESSING: |
63 | return tr( "Error in processing" ); | 64 | return i18n( "Error in processing" ); |
64 | case MAILSMTP_ERROR_STARTTLS_NOT_SUPPORTED: | 65 | case MAILSMTP_ERROR_STARTTLS_NOT_SUPPORTED: |
65 | return tr( "Starttls not supported" ); | 66 | return i18n( "Starttls not supported" ); |
66 | // case MAILSMTP_ERROR_INSUFFISANT_SYSTEM_STORAGE: | 67 | // case MAILSMTP_ERROR_INSUFFISANT_SYSTEM_STORAGE: |
67 | // return tr( "Insufficient system storage" ); | 68 | // return i18n( "Insufficient system storage" ); |
68 | case MAILSMTP_ERROR_MAILBOX_UNAVAILABLE: | 69 | case MAILSMTP_ERROR_MAILBOX_UNAVAILABLE: |
69 | return tr( "Mailbox unavailable" ); | 70 | return i18n( "Mailbox unavailable" ); |
70 | case MAILSMTP_ERROR_MAILBOX_NAME_NOT_ALLOWED: | 71 | case MAILSMTP_ERROR_MAILBOX_NAME_NOT_ALLOWED: |
71 | return tr( "Mailbox name not allowed" ); | 72 | return i18n( "Mailbox name not allowed" ); |
72 | case MAILSMTP_ERROR_BAD_SEQUENCE_OF_COMMAND: | 73 | case MAILSMTP_ERROR_BAD_SEQUENCE_OF_COMMAND: |
73 | return tr( "Bad command sequence" ); | 74 | return i18n( "Bad command sequence" ); |
74 | case MAILSMTP_ERROR_USER_NOT_LOCAL: | 75 | case MAILSMTP_ERROR_USER_NOT_LOCAL: |
75 | return tr( "User not local" ); | 76 | return i18n( "User not local" ); |
76 | case MAILSMTP_ERROR_TRANSACTION_FAILED: | 77 | case MAILSMTP_ERROR_TRANSACTION_FAILED: |
77 | return tr( "Transaction failed" ); | 78 | return i18n( "Transaction failed" ); |
78 | case MAILSMTP_ERROR_MEMORY: | 79 | case MAILSMTP_ERROR_MEMORY: |
79 | return tr( "Memory error" ); | 80 | return i18n( "Memory error" ); |
80 | case MAILSMTP_ERROR_CONNECTION_REFUSED: | 81 | case MAILSMTP_ERROR_CONNECTION_REFUSED: |
81 | return tr( "Connection refused" ); | 82 | return i18n( "Connection refused" ); |
82 | default: | 83 | default: |
83 | return tr( "Unknown error code" ); | 84 | return i18n( "Unknown error code" ); |
84 | } | 85 | } |
85 | } | 86 | } |
86 | 87 | ||
@@ -152,8 +153,8 @@ void SMTPwrapper::storeFailedMail(const char*data,unsigned int size, const char* | |||
152 | storeMail(data,size,"Sendfailed"); | 153 | storeMail(data,size,"Sendfailed"); |
153 | } | 154 | } |
154 | if (failuremessage) { | 155 | if (failuremessage) { |
155 | QMessageBox::critical(0,tr("Error sending mail"), | 156 | QMessageBox::critical(0,i18n("Error sending mail"), |
156 | tr("<center>%1</center>").arg(failuremessage)); | 157 | i18n("<center>%1</center>").arg(failuremessage)); |
157 | } | 158 | } |
158 | } | 159 | } |
159 | 160 | ||
@@ -221,7 +222,7 @@ void SMTPwrapper::connect_server() | |||
221 | } | 222 | } |
222 | if ( err != MAILSMTP_NO_ERROR ) { | 223 | if ( err != MAILSMTP_NO_ERROR ) { |
223 | ; // odebug << "Error init connection" << oendl; | 224 | ; // odebug << "Error init connection" << oendl; |
224 | failuretext = tr("Error init SMTP connection: %1").arg(mailsmtpError(err)); | 225 | failuretext = i18n("Error init SMTP connection: %1").arg(mailsmtpError(err)); |
225 | result = 0; | 226 | result = 0; |
226 | } | 227 | } |
227 | 228 | ||
@@ -230,7 +231,7 @@ void SMTPwrapper::connect_server() | |||
230 | err = mailsmtp_init( m_smtp ); | 231 | err = mailsmtp_init( m_smtp ); |
231 | if (err != MAILSMTP_NO_ERROR) { | 232 | if (err != MAILSMTP_NO_ERROR) { |
232 | result = 0; | 233 | result = 0; |
233 | failuretext = tr("Error init SMTP connection: %1").arg(mailsmtpError(err)); | 234 | failuretext = i18n("Error init SMTP connection: %1").arg(mailsmtpError(err)); |
234 | } | 235 | } |
235 | } | 236 | } |
236 | 237 | ||
@@ -245,7 +246,7 @@ void SMTPwrapper::connect_server() | |||
245 | 246 | ||
246 | if (!try_tls && force_tls) { | 247 | if (!try_tls && force_tls) { |
247 | result = 0; | 248 | result = 0; |
248 | failuretext = tr("Error init SMTP tls: %1").arg(mailsmtpError(err)); | 249 | failuretext = i18n("Error init SMTP tls: %1").arg(mailsmtpError(err)); |
249 | } | 250 | } |
250 | 251 | ||
251 | if (result==1 && m_SmtpAccount->getLogin() ) { | 252 | if (result==1 && m_SmtpAccount->getLogin() ) { |
@@ -261,7 +262,7 @@ void SMTPwrapper::connect_server() | |||
261 | pass = login.getPassword(); | 262 | pass = login.getPassword(); |
262 | } else { | 263 | } else { |
263 | result = 0; | 264 | result = 0; |
264 | failuretext=tr("Login aborted - storing mail to localfolder"); | 265 | failuretext=i18n("Login aborted - storing mail to localfolder"); |
265 | } | 266 | } |
266 | } else { | 267 | } else { |
267 | user = m_SmtpAccount->getUser(); | 268 | user = m_SmtpAccount->getUser(); |
@@ -273,7 +274,7 @@ void SMTPwrapper::connect_server() | |||
273 | if ( err == MAILSMTP_NO_ERROR ) { | 274 | if ( err == MAILSMTP_NO_ERROR ) { |
274 | ; // odebug << "auth ok" << oendl; | 275 | ; // odebug << "auth ok" << oendl; |
275 | } else { | 276 | } else { |
276 | failuretext = tr("Authentification failed"); | 277 | failuretext = i18n("Authentification failed"); |
277 | result = 0; | 278 | result = 0; |
278 | } | 279 | } |
279 | } | 280 | } |
@@ -300,7 +301,7 @@ int SMTPwrapper::smtpSend(char*from,clist*rcpts,const char*data,size_t size ) | |||
300 | if (m_smtp) { | 301 | if (m_smtp) { |
301 | err = mailsmtp_send( m_smtp, from, rcpts, data, size ); | 302 | err = mailsmtp_send( m_smtp, from, rcpts, data, size ); |
302 | if ( err != MAILSMTP_NO_ERROR ) { | 303 | if ( err != MAILSMTP_NO_ERROR ) { |
303 | failuretext=tr("Error sending mail: %1").arg(mailsmtpError(err)); | 304 | failuretext=i18n("Error sending mail: %1").arg(mailsmtpError(err)); |
304 | result = 0; | 305 | result = 0; |
305 | } | 306 | } |
306 | } else { | 307 | } else { |
@@ -433,8 +434,8 @@ bool SMTPwrapper::flushOutbox() { | |||
433 | 434 | ||
434 | while (mailsToSend.count()>0) { | 435 | while (mailsToSend.count()>0) { |
435 | if (sendQueuedMail(wrap, (*mailsToSend.begin()))==0) { | 436 | if (sendQueuedMail(wrap, (*mailsToSend.begin()))==0) { |
436 | QMessageBox::critical(0,tr("Error sending mail"), | 437 | QMessageBox::critical(0,i18n("Error sending mail"), |
437 | tr("Error sending queued mail - breaking")); | 438 | i18n("Error sending queued mail - breaking")); |
438 | returnValue = false; | 439 | returnValue = false; |
439 | break; | 440 | break; |
440 | } | 441 | } |
diff --git a/kmicromail/nntpgroupsdlg.cpp b/kmicromail/nntpgroupsdlg.cpp index c94d9fa..a461bdf 100644 --- a/kmicromail/nntpgroupsdlg.cpp +++ b/kmicromail/nntpgroupsdlg.cpp | |||
@@ -1,5 +1,6 @@ | |||
1 | #include "nntpgroupsdlg.h" | 1 | #include "nntpgroupsdlg.h" |
2 | #include "nntpgroups.h" | 2 | #include "nntpgroups.h" |
3 | #include <klocale.h> | ||
3 | 4 | ||
4 | #include <libmailwrapper/settings.h> | 5 | #include <libmailwrapper/settings.h> |
5 | 6 | ||
@@ -8,7 +9,7 @@ | |||
8 | NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name) | 9 | NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name) |
9 | : QDialog(parent,name,true,WStyle_ContextHelp) | 10 | : QDialog(parent,name,true,WStyle_ContextHelp) |
10 | { | 11 | { |
11 | setCaption(tr("Subscribed newsgroups")); | 12 | setCaption(i18n("Subscribed newsgroups")); |
12 | m_Account = account; | 13 | m_Account = account; |
13 | QVBoxLayout*dlglayout = new QVBoxLayout(this); | 14 | QVBoxLayout*dlglayout = new QVBoxLayout(this); |
14 | dlglayout->setSpacing(2); | 15 | dlglayout->setSpacing(2); |
diff --git a/kmicromail/selectsmtp.cpp b/kmicromail/selectsmtp.cpp index 24eced1..ff8b524 100644 --- a/kmicromail/selectsmtp.cpp +++ b/kmicromail/selectsmtp.cpp | |||
@@ -9,12 +9,13 @@ | |||
9 | #include <qlabel.h> | 9 | #include <qlabel.h> |
10 | #include <qtabwidget.h> | 10 | #include <qtabwidget.h> |
11 | #include <qlistview.h> | 11 | #include <qlistview.h> |
12 | #include <klocale.h> | ||
12 | selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl) | 13 | selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl) |
13 | : selectstoreui(parent,name,modal,fl) | 14 | : selectstoreui(parent,name,modal,fl) |
14 | { | 15 | { |
15 | //m_smtpList.setAutoDelete(false); | 16 | //m_smtpList.setAutoDelete(false); |
16 | m_smtpList = 0; | 17 | m_smtpList = 0; |
17 | //headlabel->setText(tr("<center>Select SMTP account to use</center>")); | 18 | //headlabel->setText(i18n("<center>Select SMTP account to use</center>")); |
18 | headlabel->hide(); | 19 | headlabel->hide(); |
19 | folderSelection->hide(); | 20 | folderSelection->hide(); |
20 | folderLabel->hide(); | 21 | folderLabel->hide(); |
@@ -26,7 +27,7 @@ selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl) | |||
26 | Line2->hide(); | 27 | Line2->hide(); |
27 | selMove->hide(); | 28 | selMove->hide(); |
28 | m_current_smtp = 0; | 29 | m_current_smtp = 0; |
29 | setCaption(tr("Select SMTP Account")); | 30 | setCaption(i18n("Select SMTP Account")); |
30 | } | 31 | } |
31 | 32 | ||
32 | selectsmtp::~selectsmtp() | 33 | selectsmtp::~selectsmtp() |
diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp index 32a3b7c..7cf5c8e 100644 --- a/kmicromail/viewmail.cpp +++ b/kmicromail/viewmail.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <qfile.h> | 26 | #include <qfile.h> |
27 | #include <qlayout.h> | 27 | #include <qlayout.h> |
28 | #include "koprefs.h" | 28 | #include "koprefs.h" |
29 | #include <klocale.h> | ||
29 | 30 | ||
30 | //using namespace Opie::Ui; | 31 | //using namespace Opie::Ui; |
31 | //using namespace Opie::Core; | 32 | //using namespace Opie::Core; |
@@ -218,12 +219,12 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int | |||
218 | 219 | ||
219 | if ( item->text( 0 ).left( 5 ) == "text/" || item->text(0)=="message/rfc822" ) | 220 | if ( item->text( 0 ).left( 5 ) == "text/" || item->text(0)=="message/rfc822" ) |
220 | { | 221 | { |
221 | menu->insertItem( tr( "Show Text" ), 1 ); | 222 | menu->insertItem( i18n( "Show Text" ), 1 ); |
222 | } | 223 | } |
223 | if (item->text(0).left(6)=="image/") { | 224 | if (item->text(0).left(6)=="image/") { |
224 | menu->insertItem(tr("Display image preview"),2); | 225 | menu->insertItem(i18n("Display image preview"),2); |
225 | } | 226 | } |
226 | menu->insertItem( tr( "Save Attachment" ), 0 ); | 227 | menu->insertItem( i18n( "Save Attachment" ), 0 ); |
227 | menu->insertSeparator(1); | 228 | menu->insertSeparator(1); |
228 | 229 | ||
229 | ret = menu->exec( point, 0 ); | 230 | ret = menu->exec( point, 0 ); |
@@ -356,16 +357,16 @@ void ViewMail::setText() | |||
356 | bccString += (*it); | 357 | bccString += (*it); |
357 | } | 358 | } |
358 | 359 | ||
359 | setCaption( tr("E-Mail by %1").arg( m_mail[0] ) ); | 360 | setCaption( i18n("E-Mail by %1").arg( m_mail[0] ) ); |
360 | 361 | ||
361 | m_mailHtml = "<html><body>" | 362 | m_mailHtml = "<html><body>" |
362 | "<table width=\"100%\" border=\"0\"><tr bgcolor=\"#FFDD76\"><td>" | 363 | "<table width=\"100%\" border=\"0\"><tr bgcolor=\"#FFDD76\"><td>" |
363 | "<div align=left><b>" + deHtml( m_mail[1] ) + "</b></div>" | 364 | "<div align=left><b>" + deHtml( m_mail[1] ) + "</b></div>" |
364 | "</td></tr><tr bgcolor=\"#EEEEE6\"><td>" | 365 | "</td></tr><tr bgcolor=\"#EEEEE6\"><td>" |
365 | "<b>" + tr( "From" ) + ": </b><font color=#6C86C0>" + deHtml( m_mail[0] ) + "</font><br>" | 366 | "<b>" + i18n( "From" ) + ": </b><font color=#6C86C0>" + deHtml( m_mail[0] ) + "</font><br>" |
366 | "<b>" + tr( "To" ) + ": </b><font color=#6C86C0>" + deHtml( toString ) + "</font><br><b>" + | 367 | "<b>" + i18n( "To" ) + ": </b><font color=#6C86C0>" + deHtml( toString ) + "</font><br><b>" + |
367 | tr( "Cc" ) + ": </b>" + deHtml( ccString ) + "<br>" | 368 | i18n( "Cc" ) + ": </b>" + deHtml( ccString ) + "<br>" |
368 | "<b>" + tr( "Date" ) + ": </b> " + m_mail[3] + | 369 | "<b>" + i18n( "Date" ) + ": </b> " + m_mail[3] + |
369 | "</td></tr></table><font>"; | 370 | "</td></tr></table><font>"; |
370 | 371 | ||
371 | if ( !m_showHtml ) | 372 | if ( !m_showHtml ) |
@@ -426,7 +427,7 @@ void ViewMail::slotReply() | |||
426 | { | 427 | { |
427 | if (!m_gotBody) | 428 | if (!m_gotBody) |
428 | { | 429 | { |
429 | QMessageBox::information(this, tr("Error"), tr("<p>The mail body is not yet downloaded, so you cannot reply yet."), tr("Ok")); | 430 | QMessageBox::information(this, i18n("Error"), i18n("<p>The mail body is not yet downloaded, so you cannot reply yet."), i18n("Ok")); |
430 | return; | 431 | return; |
431 | } | 432 | } |
432 | 433 | ||
@@ -469,7 +470,7 @@ void ViewMail::slotForward() | |||
469 | { | 470 | { |
470 | if (!m_gotBody) | 471 | if (!m_gotBody) |
471 | { | 472 | { |
472 | QMessageBox::information(this, tr("Error"), tr("<p>The mail body is not yet downloaded, so you cannot forward yet."), tr("Ok")); | 473 | QMessageBox::information(this, i18n("Error"), i18n("<p>The mail body is not yet downloaded, so you cannot forward yet."), i18n("Ok")); |
473 | return; | 474 | return; |
474 | } | 475 | } |
475 | 476 | ||
@@ -502,7 +503,7 @@ void ViewMail::slotForward() | |||
502 | 503 | ||
503 | void ViewMail::slotDeleteMail( ) | 504 | void ViewMail::slotDeleteMail( ) |
504 | { | 505 | { |
505 | if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) | 506 | if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) |
506 | { | 507 | { |
507 | m_recMail->Wrapper()->deleteMail( m_recMail ); | 508 | m_recMail->Wrapper()->deleteMail( m_recMail ); |
508 | hide(); | 509 | hide(); |
diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp index 705b57f..3d7ed42 100644 --- a/kmicromail/viewmailbase.cpp +++ b/kmicromail/viewmailbase.cpp | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <qmenubar.h> | 9 | #include <qmenubar.h> |
10 | #include <kiconloader.h> | 10 | #include <kiconloader.h> |
11 | //#include <qpe/resource.h> | 11 | //#include <qpe/resource.h> |
12 | #include <klocale.h> | ||
12 | 13 | ||
13 | #include "viewmailbase.h" | 14 | #include "viewmailbase.h" |
14 | //#include "opendiag.h" | 15 | //#include "opendiag.h" |
@@ -22,33 +23,33 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | |||
22 | toolbar = new QToolBar(this); | 23 | toolbar = new QToolBar(this); |
23 | menubar = new QMenuBar( toolbar ); | 24 | menubar = new QMenuBar( toolbar ); |
24 | mailmenu = new QPopupMenu( menubar ); | 25 | mailmenu = new QPopupMenu( menubar ); |
25 | menubar->insertItem( tr( "Mail" ), mailmenu ); | 26 | menubar->insertItem( i18n( "Mail" ), mailmenu ); |
26 | 27 | ||
27 | toolbar->setHorizontalStretchable(true); | 28 | toolbar->setHorizontalStretchable(true); |
28 | addToolBar(toolbar); | 29 | addToolBar(toolbar); |
29 | 30 | ||
30 | reply = new QAction(tr("Reply"),SmallIcon("reply"), 0, 0, this); | 31 | reply = new QAction(i18n("Reply"),SmallIcon("reply"), 0, 0, this); |
31 | reply->addTo(toolbar); | 32 | reply->addTo(toolbar); |
32 | reply->addTo(mailmenu); | 33 | reply->addTo(mailmenu); |
33 | 34 | ||
34 | forward = new QAction(tr("Forward"),SmallIcon("forward"), 0, 0, this); | 35 | forward = new QAction(i18n("Forward"),SmallIcon("forward"), 0, 0, this); |
35 | forward->addTo(toolbar); | 36 | forward->addTo(toolbar); |
36 | forward->addTo(mailmenu); | 37 | forward->addTo(mailmenu); |
37 | 38 | ||
38 | attachbutton = new QAction(tr("Attachments"),SmallIcon("attach"), 0, 0, this, 0, true); | 39 | attachbutton = new QAction(i18n("Attachments"),SmallIcon("attach"), 0, 0, this, 0, true); |
39 | attachbutton->addTo(toolbar); | 40 | attachbutton->addTo(toolbar); |
40 | attachbutton->addTo(mailmenu); | 41 | attachbutton->addTo(mailmenu); |
41 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); | 42 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); |
42 | 43 | ||
43 | 44 | ||
44 | showHtml = new QAction( tr( "Show Html" ), SmallIcon( "html" ), 0, 0, this, 0, true ); | 45 | showHtml = new QAction( i18n( "Show Html" ), SmallIcon( "html" ), 0, 0, this, 0, true ); |
45 | showHtml->addTo( toolbar ); | 46 | showHtml->addTo( toolbar ); |
46 | showHtml->addTo( mailmenu ); | 47 | showHtml->addTo( mailmenu ); |
47 | 48 | ||
48 | deleteMail = new QAction(tr("Delete Mail"),SmallIcon("trash"), 0, 0, this); | 49 | deleteMail = new QAction(i18n("Delete Mail"),SmallIcon("trash"), 0, 0, this); |
49 | deleteMail->addTo(toolbar); | 50 | deleteMail->addTo(toolbar); |
50 | deleteMail->addTo(mailmenu); | 51 | deleteMail->addTo(mailmenu); |
51 | closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); | 52 | closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); |
52 | QLabel *spacer = new QLabel(toolbar); | 53 | QLabel *spacer = new QLabel(toolbar); |
53 | spacer->setBackgroundMode(QWidget::PaletteButton); | 54 | spacer->setBackgroundMode(QWidget::PaletteButton); |
54 | toolbar->setStretchableWidget(spacer); | 55 | toolbar->setStretchableWidget(spacer); |
@@ -62,9 +63,9 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | |||
62 | attachments->setMaximumHeight(90); | 63 | attachments->setMaximumHeight(90); |
63 | attachments->setAllColumnsShowFocus(true); | 64 | attachments->setAllColumnsShowFocus(true); |
64 | attachments->addColumn("Mime Type", 60); | 65 | attachments->addColumn("Mime Type", 60); |
65 | attachments->addColumn(tr("Description"), 100); | 66 | attachments->addColumn(i18n("Description"), 100); |
66 | attachments->addColumn(tr("Filename"), 80); | 67 | attachments->addColumn(i18n("Filename"), 80); |
67 | attachments->addColumn(tr("Size"), 80); | 68 | attachments->addColumn(i18n("Size"), 80); |
68 | attachments->setSorting(-1); | 69 | attachments->setSorting(-1); |
69 | attachments->hide(); | 70 | attachments->hide(); |
70 | 71 | ||