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/composemail.cpp') 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 QString whoami_uid = config.readEntry( "WhoAmI" ); if ( whoami_uid.isEmpty() ) { - QMessageBox::information( 0, tr( "Hint" ), - tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), - tr( "Ok" ) ); + QMessageBox::information( 0, i18n( "Hint" ), + i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), + i18n( "Ok" ) ); fillSettings(); @@ -67,9 +67,9 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m QStringList mails = con.emails(); QString defmail = con.preferredEmail(); if ( mails.count() == 0) - QMessageBox::information( 0, tr( "Hint" ), - tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), - tr( "Ok" ) ); + QMessageBox::information( 0, i18n( "Hint" ), + i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), + i18n( "Ok" ) ); if (defmail.length()!=0) { fromBox->insertItem(defmail); } @@ -87,8 +87,8 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m } checkBoxLater->setChecked( KOPrefs::instance()->mSendLater ); - attList->addColumn( tr( "Name" ) ); - attList->addColumn( tr( "Size" ) ); + attList->addColumn( i18n( "Name" ) ); + attList->addColumn( i18n( "Size" ) ); QList accounts = settings->getAccounts(); if ( QApplication::desktop()->width() < 320 ) @@ -113,9 +113,9 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m if ( smtpAccounts.count() > 0 ) { fillValues( smtpAccountBox->currentItem() ); } else { - QMessageBox::information( 0, tr( "Problem" ), - tr( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), - tr( "Ok" ) ); + QMessageBox::information( 0, i18n( "Problem" ), + i18n( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), + i18n( "Ok" ) ); return; } connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); @@ -172,15 +172,15 @@ void ComposeMail::saveAsDraft() /* attachments we will ignore! */ if ( it != 0 ) { if ( warnAttach ) - QMessageBox::warning(0,tr("Store message"), - tr("
Attachments will not be stored in \"Draft\" folder
")); + QMessageBox::warning(0,i18n("Store message"), + i18n("
Attachments will not be stored in \"Draft\" folder
")); warnAttach = false; } - setStatus( tr("Mail saved as draft!") ); + setStatus( i18n("Mail saved as draft!") ); } void ComposeMail::clearStatus() { - topLevelWidget()->setCaption( tr("Compose mail") ); + topLevelWidget()->setCaption( i18n("Compose mail") ); } void ComposeMail::setStatus( QString status ) { @@ -228,9 +228,9 @@ void ComposeMail::insertAttendees(const QString& uid,const QStringList& nameLis if ( mPickLineEdit == 0 ) { //whoami received QString defmail = uidList[0]; if ( emailList.count() == 0 ) - QMessageBox::information( 0, tr( "Hint" ), - tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), - tr( "Ok" ) ); + QMessageBox::information( 0, i18n( "Hint" ), + i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), + i18n( "Ok" ) ); if (defmail.length()!=0) { fromBox->insertItem(defmail); } @@ -355,9 +355,9 @@ void ComposeMail::addAttachment() void ComposeMail::removeAttachment() { if ( !attList->currentItem() ) { - QMessageBox::information( this, tr( "Error" ), - tr( "

Please select a File.

" ), - tr( "Ok" ) ); + QMessageBox::information( this, i18n( "Error" ), + i18n( "

Please select a File.

" ), + i18n( "Ok" ) ); } else { attList->takeItem( attList->currentItem() ); } @@ -372,10 +372,10 @@ void ComposeMail::accept() } if (! checkBoxLater->isChecked() ) { - int yesno = QMessageBox::warning(0,tr("Stop editing message"), - tr("Send this message?"), - tr("Yes"), - tr("Cancel")); + int yesno = QMessageBox::warning(0,i18n("Stop editing message"), + i18n("Send this message?"), + i18n("Yes"), + i18n("Cancel")); if (yesno == 1) { return; @@ -393,8 +393,8 @@ void ComposeMail::accept() if ( !toLine->text().isEmpty() ) { mail->setTo( toLine->text() ); } else { - QMessageBox::warning(0,tr("Sending mail"), - tr("No Receiver spezified" ) ); + QMessageBox::warning(0,i18n("Sending mail"), + i18n("No Receiver spezified" ) ); return; } @@ -435,16 +435,16 @@ void ComposeMail::accept() void ComposeMail::reject() { //qDebug("ComposeMail::reject() "); - int yesno = QMessageBox::warning(0,tr("Store message?"), - tr("Store message into drafts?\n"), - tr("Yes"), - tr("No")); + int yesno = QMessageBox::warning(0,i18n("Store message?"), + i18n("Store message into drafts?\n"), + i18n("Yes"), + i18n("No")); //qDebug("button %d ", yesno); if (yesno == 0) { if ( toLine->text().isEmpty() ) { - QMessageBox::warning(0,tr("Sending mail"), - tr("No Receiver spezified" ) ); + QMessageBox::warning(0,i18n("Sending mail"), + i18n("No Receiver spezified" ) ); return; } saveAsDraft(); -- cgit v0.9.0.2