-rw-r--r-- | kmicromail/editaccounts.cpp | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index 733e38a..7ad4ec8 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <qtabwidget.h> | 17 | #include <qtabwidget.h> |
18 | #include <qlistview.h> | 18 | #include <qlistview.h> |
19 | #include <qspinbox.h> | 19 | #include <qspinbox.h> |
20 | #include <klocale.h> | ||
20 | 21 | ||
21 | #include <libmailwrapper/nntpwrapper.h> | 22 | #include <libmailwrapper/nntpwrapper.h> |
22 | 23 | ||
@@ -53,10 +54,10 @@ EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool | |||
53 | { | 54 | { |
54 | settings = s; | 55 | settings = s; |
55 | 56 | ||
56 | mailList->addColumn( tr( "Account" ) ); | 57 | mailList->addColumn( i18n( "Account" ) ); |
57 | mailList->addColumn( tr( "Type" ) ); | 58 | mailList->addColumn( i18n( "Type" ) ); |
58 | 59 | ||
59 | newsList->addColumn( tr( "Account" ) ); | 60 | newsList->addColumn( i18n( "Account" ) ); |
60 | 61 | ||
61 | connect( newMail, SIGNAL( clicked() ), SLOT( slotNewMail() ) ); | 62 | connect( newMail, SIGNAL( clicked() ), SLOT( slotNewMail() ) ); |
62 | connect( editMail, SIGNAL( clicked() ), SLOT( slotEditMail() ) ); | 63 | connect( editMail, SIGNAL( clicked() ), SLOT( slotEditMail() ) ); |
@@ -207,9 +208,9 @@ void EditAccounts::slotEditAccount( Account *account ) | |||
207 | 208 | ||
208 | void EditAccounts::slotDeleteAccount( Account *account ) | 209 | void EditAccounts::slotDeleteAccount( Account *account ) |
209 | { | 210 | { |
210 | if ( QMessageBox::information( this, tr( "Question" ), | 211 | if ( QMessageBox::information( this, i18n( "Question" ), |
211 | tr( "<p>Do you really want to delete the selected Account?</p>" ), | 212 | i18n( "<p>Do you really want to delete the selected Account?</p>" ), |
212 | tr( "Yes" ), tr( "No" ) ) == 0 ) | 213 | i18n( "Yes" ), i18n( "No" ) ) == 0 ) |
213 | { | 214 | { |
214 | settings->delAccount( account ); | 215 | settings->delAccount( account ); |
215 | slotFillLists(); | 216 | slotFillLists(); |
@@ -220,9 +221,9 @@ void EditAccounts::slotEditMail() | |||
220 | { | 221 | { |
221 | if ( !mailList->currentItem() ) | 222 | if ( !mailList->currentItem() ) |
222 | { | 223 | { |
223 | QMessageBox::information( this, tr( "Error" ), | 224 | QMessageBox::information( this, i18n( "Error" ), |
224 | tr( "<p>Please select an account.</p>" ), | 225 | i18n( "<p>Please select an account.</p>" ), |
225 | tr( "Ok" ) ); | 226 | i18n( "Ok" ) ); |
226 | return; | 227 | return; |
227 | } | 228 | } |
228 | 229 | ||
@@ -234,9 +235,9 @@ void EditAccounts::slotDeleteMail() | |||
234 | { | 235 | { |
235 | if ( !mailList->currentItem() ) | 236 | if ( !mailList->currentItem() ) |
236 | { | 237 | { |
237 | QMessageBox::information( this, tr( "Error" ), | 238 | QMessageBox::information( this, i18n( "Error" ), |
238 | tr( "<p>Please select an account.</p>" ), | 239 | i18n( "<p>Please select an account.</p>" ), |
239 | tr( "Ok" ) ); | 240 | i18n( "Ok" ) ); |
240 | return; | 241 | return; |
241 | } | 242 | } |
242 | 243 | ||
@@ -253,9 +254,9 @@ void EditAccounts::slotEditNews() | |||
253 | { | 254 | { |
254 | if ( !newsList->currentItem() ) | 255 | if ( !newsList->currentItem() ) |
255 | { | 256 | { |
256 | QMessageBox::information( this, tr( "Error" ), | 257 | QMessageBox::information( this, i18n( "Error" ), |
257 | tr( "<p>Please select an account.</p>" ), | 258 | i18n( "<p>Please select an account.</p>" ), |
258 | tr( "Ok" ) ); | 259 | i18n( "Ok" ) ); |
259 | return; | 260 | return; |
260 | } | 261 | } |
261 | 262 | ||
@@ -267,9 +268,9 @@ void EditAccounts::slotDeleteNews() | |||
267 | { | 268 | { |
268 | if ( !newsList->currentItem() ) | 269 | if ( !newsList->currentItem() ) |
269 | { | 270 | { |
270 | QMessageBox::information( this, tr( "Error" ), | 271 | QMessageBox::information( this, i18n( "Error" ), |
271 | tr( "<p>Please select an account.</p>" ), | 272 | i18n( "<p>Please select an account.</p>" ), |
272 | tr( "Ok" ) ); | 273 | i18n( "Ok" ) ); |
273 | return; | 274 | return; |
274 | } | 275 | } |
275 | 276 | ||
@@ -555,7 +556,7 @@ void NNTPconfig::slotShowSub() | |||
555 | item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox ); | 556 | item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox ); |
556 | item->setOn( true ); | 557 | item->setOn( true ); |
557 | } | 558 | } |
558 | topLevelWidget()->setCaption( tr("%1 groups subscribed").arg( subscribedGroups.count())); | 559 | topLevelWidget()->setCaption( i18n("%1 groups subscribed").arg( subscribedGroups.count())); |
559 | } | 560 | } |
560 | void NNTPconfig::slotShowFilter() | 561 | void NNTPconfig::slotShowFilter() |
561 | { | 562 | { |
@@ -573,16 +574,16 @@ void NNTPconfig::slotShowFilter() | |||
573 | } | 574 | } |
574 | } | 575 | } |
575 | } | 576 | } |
576 | topLevelWidget()->setCaption( tr("Filter found %1 groups").arg( count)); | 577 | topLevelWidget()->setCaption( i18n("Filter found %1 groups").arg( count)); |
577 | } | 578 | } |
578 | void NNTPconfig::slotGetNG() { | 579 | void NNTPconfig::slotGetNG() { |
579 | save(); | 580 | save(); |
580 | data->save(); | 581 | data->save(); |
581 | topLevelWidget()->setCaption( tr("Fetching group list...")); | 582 | topLevelWidget()->setCaption( i18n("Fetching group list...")); |
582 | qApp->processEvents(); | 583 | qApp->processEvents(); |
583 | NNTPwrapper* tmp = new NNTPwrapper( data ); | 584 | NNTPwrapper* tmp = new NNTPwrapper( data ); |
584 | allGroups = tmp->listAllNewsgroups(); | 585 | allGroups = tmp->listAllNewsgroups(); |
585 | topLevelWidget()->setCaption( tr("Downloaded %1 group names").arg( allGroups.count())); | 586 | topLevelWidget()->setCaption( i18n("Downloaded %1 group names").arg( allGroups.count())); |
586 | 587 | ||
587 | ListViewGroups->clear(); | 588 | ListViewGroups->clear(); |
588 | 589 | ||