-rw-r--r-- | kmicromail/viewmail.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp index 32a3b7c..7cf5c8e 100644 --- a/kmicromail/viewmail.cpp +++ b/kmicromail/viewmail.cpp | |||
@@ -27,4 +27,5 @@ | |||
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; |
@@ -219,10 +220,10 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int | |||
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 | ||
@@ -357,5 +358,5 @@ void ViewMail::setText() | |||
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>" |
@@ -363,8 +364,8 @@ void ViewMail::setText() | |||
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 | ||
@@ -427,5 +428,5 @@ void ViewMail::slotReply() | |||
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 | } |
@@ -470,5 +471,5 @@ void ViewMail::slotForward() | |||
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 | } |
@@ -503,5 +504,5 @@ void ViewMail::slotForward() | |||
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 ); |