From 94df6192e59b7d4c69e2fb43ef2c39db08bb1c39 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 23 Oct 2004 19:32:41 +0000 Subject: compile fixes --- (limited to 'kmicromail/viewmail.cpp') 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 @@ #include #include #include "koprefs.h" +#include //using namespace Opie::Ui; //using namespace Opie::Core; @@ -218,12 +219,12 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int if ( item->text( 0 ).left( 5 ) == "text/" || item->text(0)=="message/rfc822" ) { - menu->insertItem( tr( "Show Text" ), 1 ); + menu->insertItem( i18n( "Show Text" ), 1 ); } if (item->text(0).left(6)=="image/") { - menu->insertItem(tr("Display image preview"),2); + menu->insertItem(i18n("Display image preview"),2); } - menu->insertItem( tr( "Save Attachment" ), 0 ); + menu->insertItem( i18n( "Save Attachment" ), 0 ); menu->insertSeparator(1); ret = menu->exec( point, 0 ); @@ -356,16 +357,16 @@ void ViewMail::setText() bccString += (*it); } - setCaption( tr("E-Mail by %1").arg( m_mail[0] ) ); + setCaption( i18n("E-Mail by %1").arg( m_mail[0] ) ); m_mailHtml = "" "
" "
" + deHtml( m_mail[1] ) + "
" "
" - "" + tr( "From" ) + ": " + deHtml( m_mail[0] ) + "
" - "" + tr( "To" ) + ": " + deHtml( toString ) + "
" + - tr( "Cc" ) + ": " + deHtml( ccString ) + "
" - "" + tr( "Date" ) + ": " + m_mail[3] + + "" + i18n( "From" ) + ": " + deHtml( m_mail[0] ) + "
" + "" + i18n( "To" ) + ": " + deHtml( toString ) + "
" + + i18n( "Cc" ) + ": " + deHtml( ccString ) + "
" + "" + i18n( "Date" ) + ": " + m_mail[3] + "
"; if ( !m_showHtml ) @@ -426,7 +427,7 @@ void ViewMail::slotReply() { if (!m_gotBody) { - QMessageBox::information(this, tr("Error"), tr("

The mail body is not yet downloaded, so you cannot reply yet."), tr("Ok")); + QMessageBox::information(this, i18n("Error"), i18n("

The mail body is not yet downloaded, so you cannot reply yet."), i18n("Ok")); return; } @@ -469,7 +470,7 @@ void ViewMail::slotForward() { if (!m_gotBody) { - QMessageBox::information(this, tr("Error"), tr("

The mail body is not yet downloaded, so you cannot forward yet."), tr("Ok")); + QMessageBox::information(this, i18n("Error"), i18n("

The mail body is not yet downloaded, so you cannot forward yet."), i18n("Ok")); return; } @@ -502,7 +503,7 @@ void ViewMail::slotForward() void ViewMail::slotDeleteMail( ) { - if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("

Do you really want to delete this mail?

" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("

Do you really want to delete this mail?

" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { m_recMail->Wrapper()->deleteMail( m_recMail ); hide(); -- cgit v0.9.0.2