summaryrefslogtreecommitdiffabout
path: root/kmicromail/libmailwrapper/mhwrapper.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/libmailwrapper/mhwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/mhwrapper.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/kmicromail/libmailwrapper/mhwrapper.cpp b/kmicromail/libmailwrapper/mhwrapper.cpp
index 641d4d9..f4133c0 100644
--- a/kmicromail/libmailwrapper/mhwrapper.cpp
+++ b/kmicromail/libmailwrapper/mhwrapper.cpp
@@ -10,2 +10,3 @@
#include <oprocess.h>
+#include <klocale.h>
//#include <opie2/odebug.h>
@@ -78,3 +79,3 @@ void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSm
parseList(target,m_storage->sto_session,f, false, maxSizeInKb );
- Global::statusMessage(tr("Mailbox has %1 mail(s)").arg(target.count()));
+ Global::statusMessage(i18n("Mailbox has %1 mail(s)").arg(target.count()));
}
@@ -234,3 +235,3 @@ encodedString* MHwrapper::fetchRawBody(const RecMailP&mail)
if (r != MAIL_NO_ERROR) {
- Global::statusMessage(tr("Error fetching mail %i").arg(mail->getNumber()));
+ Global::statusMessage(i18n("Error fetching mail %i").arg(mail->getNumber()));
return 0;
@@ -239,3 +240,3 @@ encodedString* MHwrapper::fetchRawBody(const RecMailP&mail)
if (r != MAIL_NO_ERROR) {
- Global::statusMessage(tr("Error fetching mail %i").arg(mail->getNumber()));
+ Global::statusMessage(i18n("Error fetching mail %i").arg(mail->getNumber()));
if (msg) mailmessage_free(msg);
@@ -292,3 +293,3 @@ int MHwrapper::deleteAllMail(const FolderP&tfolder)
if (r != MAIL_NO_ERROR) {
- Global::statusMessage(tr("Error deleting mail %1").arg(i+1));
+ Global::statusMessage(i18n("Error deleting mail %1").arg(i+1));
res = 0;
@@ -346,3 +347,3 @@ void MHwrapper::oprocessStderr(OProcess*, char *buffer, int )
QString lineStr = buffer;
- QMessageBox::warning( 0, tr("Error"), lineStr ,tr("Ok") );
+ QMessageBox::warning( 0, i18n("Error"), lineStr ,i18n("Ok") );
removeMboxfailed = true;
@@ -363,3 +364,3 @@ void MHwrapper::statusFolder(folderStat&target_stat,const QString & mailbox)
if (r != MAIL_NO_ERROR) {
- Global::statusMessage(tr("Error retrieving status"));
+ Global::statusMessage(i18n("Error retrieving status"));
}