Diffstat (limited to 'kmicromail/addresspicker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/addresspicker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kmicromail/addresspicker.cpp b/kmicromail/addresspicker.cpp index ec6da49..f4234b4 100644 --- a/kmicromail/addresspicker.cpp +++ b/kmicromail/addresspicker.cpp | |||
@@ -57,17 +57,17 @@ AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFl | |||
57 | } | 57 | } |
58 | } | 58 | } |
59 | } | 59 | } |
60 | if ( addressList->count() <= 0 ) | 60 | if ( addressList->count() <= 0 ) |
61 | { | 61 | { |
62 | #if 0 | 62 | #if 0 |
63 | // makes this realy sense?? | 63 | // makes this realy sense?? |
64 | addressList->insertItem( | 64 | addressList->insertItem( |
65 | tr( "There are no entries in the addressbook." ) ); | 65 | i18n( "There are no entries in the addressbook." ) ); |
66 | #endif | 66 | #endif |
67 | addressList->setEnabled( false ); | 67 | addressList->setEnabled( false ); |
68 | okButton->setEnabled( false ); | 68 | okButton->setEnabled( false ); |
69 | } | 69 | } |
70 | else | 70 | else |
71 | { | 71 | { |
72 | // addressList->sort(); | 72 | // addressList->sort(); |
73 | } | 73 | } |
@@ -84,18 +84,18 @@ void AddressPicker::accept() | |||
84 | if ( item->selected() ) | 84 | if ( item->selected() ) |
85 | names += item->text() + ", "; | 85 | names += item->text() + ", "; |
86 | item = item->next(); | 86 | item = item->next(); |
87 | } | 87 | } |
88 | names.replace( names.length() - 2, 2, "" ); | 88 | names.replace( names.length() - 2, 2, "" ); |
89 | 89 | ||
90 | if ( names.isEmpty() ) | 90 | if ( names.isEmpty() ) |
91 | { | 91 | { |
92 | QMessageBox::information(this, tr("Error"), tr("<p>You have to select" | 92 | QMessageBox::information(this, i18n("Error"), i18n("<p>You have to select" |
93 | " at least one address entry.</p>"), tr("Ok")); | 93 | " at least one address entry.</p>"), i18n("Ok")); |
94 | return; | 94 | return; |
95 | } | 95 | } |
96 | 96 | ||
97 | selectedNames = names; | 97 | selectedNames = names; |
98 | QDialog::accept(); | 98 | QDialog::accept(); |
99 | } | 99 | } |
100 | 100 | ||
101 | QString AddressPicker::getNames() | 101 | QString AddressPicker::getNames() |