summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/emailclient.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mailit/emailclient.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mailit/emailclient.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/unsupported/mailit/emailclient.cpp b/noncore/unsupported/mailit/emailclient.cpp
index 90664bb..8359acf 100644
--- a/noncore/unsupported/mailit/emailclient.cpp
+++ b/noncore/unsupported/mailit/emailclient.cpp
@@ -278,13 +278,13 @@ void EmailClient::enqueMail(const Email &mail)
void EmailClient::sendQuedMail()
{
int count = 0;
if (accountList.count() == 0) {
- QMessageBox::warning(qApp->activeWindow(), "No account selected", "You must create an account", "OK\n");
+ QMessageBox::warning(qApp->activeWindow(), tr("No account selected"), tr("You must create an account"), "OK\n");
return;
}
//traverse listview, find messages to send
if (! sending) {
item = (EmailListItem *) outboxView->firstChild();
if (item != NULL) {
@@ -318,14 +318,14 @@ void EmailClient::mailSent()
outboxView->clear(); //should be moved to an sentBox
}
void EmailClient::getNewMail() {
if (accountList.count() == 0) {
- QMessageBox::warning(qApp->activeWindow(),"No account selected",
- "You must create an account", "OK\n");
+ QMessageBox::warning(qApp->activeWindow(),tr("No account selected"),
+ tr("You must create an account"), "OK\n");
return;
}
setMailAccount();
receiving = TRUE;
@@ -782,13 +782,13 @@ void EmailClient::selectAccount(int id)
{
if (accountList.count() > 0) {
currentAccount = accountList.at(id);
emit newCaption("Mailit - " + currentAccount->accountName);
getNewMail();
} else {
- emit newCaption("Mailit ! No account defined");
+ emit newCaption( tr("Mailit ! No account defined") );
}
}
void EmailClient::editAccount(int id)
{
MailAccount *newAccount;
@@ -822,13 +822,13 @@ void EmailClient::editAccount(int id)
void EmailClient::deleteAccount(int id)
{
MailAccount *newAccount;
QString message;
newAccount = accountList.at(id);
- message = "Delete account:\n" + newAccount->accountName;
+ message = tr("Delete account:\n") + newAccount->accountName;
switch( QMessageBox::warning( this, "Mailit", message,
"Yes", "No", 0, 0, 1 ) ) {
case 0: accountList.remove(id);
updateAccounts();
break;
@@ -843,13 +843,13 @@ void EmailClient::updateAccounts()
//rebuild menus, clear all first
editAccountMenu->clear();
selectAccountMenu->clear();
deleteAccountMenu->clear();
- newAccountId = editAccountMenu->insertItem("New", this,
+ newAccountId = editAccountMenu->insertItem( tr("New"), this,
SLOT(editAccount(int)) );
editAccountMenu->insertSeparator();
idCount = 0;
for (accountPtr = accountList.first(); accountPtr != 0;
accountPtr = accountList.next()) {