author | zautrix <zautrix> | 2004-10-22 08:27:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-22 08:27:03 (UTC) |
commit | e61ce30fc3f2376d8e9caff421495496344a8359 (patch) (side-by-side diff) | |
tree | e82f8e5a0ecf3f21d246b0f441502cb8ee0e11a7 /kmicromail | |
parent | a0cd6749d41390ea832e2acd814fe117bdd39c37 (diff) | |
download | kdepimpi-e61ce30fc3f2376d8e9caff421495496344a8359.zip kdepimpi-e61ce30fc3f2376d8e9caff421495496344a8359.tar.gz kdepimpi-e61ce30fc3f2376d8e9caff421495496344a8359.tar.bz2 |
added translations
-rw-r--r-- | kmicromail/main.cpp | 3 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 48 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 41 |
3 files changed, 47 insertions, 45 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index 5362f08..8947ff8 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp @@ -21,3 +21,3 @@ #include "koprefs.h" - +void dumpMissing(); //using namespace Opie::Core; @@ -59,2 +59,3 @@ int main( int argc, char **argv ) { int rv = a.exec(); + dumpMissing(); return rv; diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index ddded2a..c77345b 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -24,3 +24,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) { - setCaption( tr( "KOpieMail/Pi" ) ); + setCaption( i18n( "KOpieMail/Pi" ) ); setToolBarsMovable( false ); @@ -30,5 +30,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) mailMenu = new QPopupMenu( menuBar ); - menuBar->insertItem( tr( "Mail" ), mailMenu ); + menuBar->insertItem( i18n( "Mail" ), mailMenu ); settingsMenu = new QPopupMenu( menuBar ); - menuBar->insertItem( tr( "Settings" ), settingsMenu ); + menuBar->insertItem( i18n( "Settings" ), settingsMenu ); @@ -36,3 +36,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) toolBar->setHorizontalStretchable( true ); - QAction* getMail = new QAction( tr( "Get all new mails" ), SmallIcon("enter"), + QAction* getMail = new QAction( i18n( "Get all new mails" ), SmallIcon("enter"), 0, 0, this ); @@ -42,3 +42,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - getMail = new QAction( tr( "Get new messages" ), SmallIcon("add"), + getMail = new QAction( i18n( "Get new messages" ), SmallIcon("add"), 0, 0, this ); @@ -49,3 +49,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - composeMail = new QAction( tr( "Compose new mail" ), SmallIcon("composemail"), + composeMail = new QAction( i18n( "Compose new mail" ), SmallIcon("composemail"), 0, 0, this ); @@ -54,3 +54,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - sendQueued = new QAction( tr( "Send queued mails" ), SmallIcon("sendqueued") , + sendQueued = new QAction( i18n( "Send queued mails" ), SmallIcon("sendqueued") , 0, 0, this ); @@ -60,3 +60,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) /* - syncFolders = new QAction( tr( "Sync mailfolders" ), ICON_SYNC, + syncFolders = new QAction( i18n( "Sync mailfolders" ), ICON_SYNC, 0, 0, this ); @@ -66,3 +66,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - showFolders = new QAction( tr( "Show/Hide folders" ), SmallIcon("showfolders") , + showFolders = new QAction( i18n( "Show/Hide folders" ), SmallIcon("showfolders") , 0, 0, this, 0, true ); @@ -75,3 +75,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) /* - searchMails = new QAction( tr( "Search mails" ), SmallIcon("find") ), + searchMails = new QAction( i18n( "Search mails" ), SmallIcon("find") ), 0, 0, this ); @@ -81,3 +81,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - deleteMails = new QAction(tr("Delete Mail"), SmallIcon("trash"), 0, 0, this); + deleteMails = new QAction(i18n("Delete Mail"), SmallIcon("trash"), 0, 0, this); deleteMails->addTo( toolBar ); @@ -87,3 +87,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - editSettings = new QAction( tr( "Edit settings" ), SmallIcon("SettingsIcon") , + editSettings = new QAction( i18n( "Edit settings" ), SmallIcon("SettingsIcon") , 0, 0, this ); @@ -92,3 +92,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) SLOT( slotEditSettings() ) ); - editAccounts = new QAction( tr( "Configure accounts" ), SmallIcon("editaccounts") , + editAccounts = new QAction( i18n( "Configure accounts" ), SmallIcon("editaccounts") , 0, 0, this ); @@ -109,3 +109,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) folderView->setRootIsDecorated( false ); - folderView->addColumn( tr( "Mailbox" ) ); + folderView->addColumn( i18n( "Mailbox" ) ); @@ -114,7 +114,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) mailView = new QListView( split ); - mailView->addColumn( tr( " " ) ); - mailView->addColumn( tr( "Subject" ),QListView::Manual ); - mailView->addColumn( tr( "Sender" ),QListView::Manual ); - mailView->addColumn( tr( "Size" ),QListView::Manual); - mailView->addColumn( tr( "Date" ),QListView::Manual); + mailView->addColumn( i18n( " " ) ); + mailView->addColumn( i18n( "Subject" ),QListView::Manual ); + mailView->addColumn( i18n( "Sender" ),QListView::Manual ); + mailView->addColumn( i18n( "Size" ),QListView::Manual); + mailView->addColumn( i18n( "Date" ),QListView::Manual); mailView->setAllColumnsShowFocus(true); @@ -161,3 +161,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); + QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); @@ -169,10 +169,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) QPopupMenu* helpMenu = new QPopupMenu( menuBar ); - menuBar->insertItem( tr( "Help" ), helpMenu ); - QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); + menuBar->insertItem( i18n( "Help" ), helpMenu ); + QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); li->addTo(helpMenu); - li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); + li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); li->addTo(helpMenu); - li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); + li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 164988c..3aa7905 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp @@ -13,2 +13,3 @@ #include "koprefsdialog.h" +#include "klocale.h" @@ -178,3 +179,3 @@ void OpieMail::slotSendQueued() { - QMessageBox::information(0,tr("Info"),tr("Define a smtp account first!\n")); + QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n")); return; @@ -201,3 +202,3 @@ void OpieMail::slotSendQueued() { - QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); + QMessageBox::information(0,i18n("Info"),i18n("Mail queue flushed")); } @@ -275,3 +276,3 @@ void OpieMail::slotDeleteMail() RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data(); - if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { @@ -285,3 +286,3 @@ void OpieMail::slotDeleteAllMail() QValueList<RecMailP> t; - if ( QMessageBox::warning(this, tr("Delete All Mails"), tr("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { @@ -322,18 +323,18 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) if (mailtype==MAILLIB::A_NNTP) { - m->insertItem(tr("Read this posting"),this,SLOT(displayMail())); - m->insertItem(tr("Copy this posting"),this,SLOT(slotMoveCopyMail())); + m->insertItem(i18n("Read this posting"),this,SLOT(displayMail())); + m->insertItem(i18n("Copy this posting"),this,SLOT(slotMoveCopyMail())); m->insertSeparator(); - m->insertItem(tr("Copy all selected postings"),this,SLOT(slotMoveCopyAllMail())); - m->insertItem(tr("Clear selection"),this,SLOT(clearSelection())); + m->insertItem(i18n("Copy all selected postings"),this,SLOT(slotMoveCopyAllMail())); + m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection())); } else { if (folderView->currentisDraft()) { - m->insertItem(tr("Edit this mail"),this,SLOT(reEditMail())); + m->insertItem(i18n("Edit this mail"),this,SLOT(reEditMail())); } - m->insertItem(tr("Read this mail"),this,SLOT(displayMail())); - m->insertItem(tr("Move/Copy this mail"),this,SLOT(slotMoveCopyMail())); - m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail())); + m->insertItem(i18n("Read this mail"),this,SLOT(displayMail())); + m->insertItem(i18n("Move/Copy this mail"),this,SLOT(slotMoveCopyMail())); + m->insertItem(i18n("Delete this mail"),this,SLOT(slotDeleteMail())); m->insertSeparator(); - m->insertItem(tr("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); - m->insertItem(tr("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); - m->insertItem(tr("Clear selection"),this,SLOT(clearSelection())); + m->insertItem(i18n("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); + m->insertItem(i18n("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); + m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection())); } @@ -402,4 +403,4 @@ void OpieMail::slotMoveCopyMail() { - QMessageBox::critical(0,tr("Error creating new Folder"), - tr("<center>Error while creating<br>new folder - breaking.</center>")); + QMessageBox::critical(0,i18n("Error creating new Folder"), + i18n("<center>Error while creating<br>new folder - breaking.</center>")); return; @@ -418,3 +419,3 @@ void OpieMail::slotMoveCopyAllMail() QValueList<RecMailP> t; - // if ( QMessageBox::warning(this, tr("Move/Copy all selected mails"), tr("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) + // if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { @@ -447,4 +448,4 @@ void OpieMail::slotMoveCopyAllMail() { - QMessageBox::critical(0,tr("Error creating new Folder"), - tr("<center>Error while creating<br>new folder - breaking.</center>")); + QMessageBox::critical(0,i18n("Error creating new Folder"), + i18n("<center>Error while creating<br>new folder - breaking.</center>")); return; |