-rw-r--r-- | noncore/net/mailit/popclient.cpp | 22 | ||||
-rw-r--r-- | noncore/net/mailit/smtpclient.cpp | 8 | ||||
-rw-r--r-- | noncore/unsupported/mailit/popclient.cpp | 22 | ||||
-rw-r--r-- | noncore/unsupported/mailit/smtpclient.cpp | 8 |
4 files changed, 30 insertions, 30 deletions
diff --git a/noncore/net/mailit/popclient.cpp b/noncore/net/mailit/popclient.cpp index a406af2..2f14ed2 100644 --- a/noncore/net/mailit/popclient.cpp +++ b/noncore/net/mailit/popclient.cpp @@ -98,10 +98,10 @@ void PopClient::setSelectedMails(MailList *list) void PopClient::connectionEstablished() { - emit updateStatus("Connection established"); + emit updateStatus(tr("Connection established")); } void PopClient::errorHandling(int status) { - emit updateStatus("Error Occured"); + emit updateStatus(tr("Error Occured")); emit errorOccurred(status); socket->close(); @@ -213,17 +213,17 @@ void PopClient::incomingData() temp.setNum(messageCount - lastSync); if (!selected) { - emit updateStatus("Retrieving " + temp + "/" + temp2); + emit updateStatus(tr("Retrieving ") + temp + "/" + temp2); } else { //completing a previously closed transfer if ( (messageCount - lastSync) <= 0) { temp.setNum(messageCount); - emit updateStatus("Previous message " + temp); + emit updateStatus(tr("Previous message ") + temp); } else { - emit updateStatus("Completing message " + temp); + emit updateStatus(tr("Completing message ") + temp); } } break; } else { - emit updateStatus("No new Messages"); + emit updateStatus(tr("No new Messages")); status = Quit; } @@ -301,8 +301,8 @@ void PopClient::incomingData() if ( (messageCount - lastSync) <= 0) { temp.setNum(messageCount); - emit updateStatus("Previous message " + temp); + emit updateStatus(tr("Previous message ") + temp); } else { temp.setNum(messageCount - lastSync); - emit updateStatus("Completing message " + temp); + emit updateStatus(tr("Completing message ") + temp); } break; @@ -316,5 +316,5 @@ void PopClient::incomingData() temp2.setNum(newMessages - lastSync); temp.setNum(messageCount - lastSync); - emit updateStatus("Retrieving " + temp + "/" + temp2); + emit updateStatus(tr("Retrieving ") + temp + "/" + temp2); break; @@ -332,7 +332,7 @@ void PopClient::incomingData() if (newM > 0) { temp.setNum(newM); - emit updateStatus(temp + " new messages"); + emit updateStatus(temp + tr(" new messages")); } else { - emit updateStatus("No new messages"); + emit updateStatus(tr("No new messages")); } diff --git a/noncore/net/mailit/smtpclient.cpp b/noncore/net/mailit/smtpclient.cpp index 7bb7933..3bdc072 100644 --- a/noncore/net/mailit/smtpclient.cpp +++ b/noncore/net/mailit/smtpclient.cpp @@ -51,5 +51,5 @@ void SmtpClient::newConnection(QString target, int port) socket->connectToHost(target, port); - emit updateStatus("DNS lookup"); + emit updateStatus(tr("DNS lookup")); } @@ -68,5 +68,5 @@ void SmtpClient::addMail(QString from, QString subject, QStringList to, QString void SmtpClient::connectionEstablished() { - emit updateStatus("Connection established"); + emit updateStatus(tr("Connection established")); } @@ -130,5 +130,5 @@ void SmtpClient::incomingData() *stream << "DATA\r\n"; status = Body; - emit updateStatus("Sending: " + mailPtr->subject); + emit updateStatus(tr("Sending: ") + mailPtr->subject); } else errorHandling(ErrUnknownResponse); break; @@ -152,5 +152,5 @@ void SmtpClient::incomingData() QString temp; temp.setNum(mailList.count()); - emit updateStatus("Sent " + temp + " messages"); + emit updateStatus(tr("Sent ") + temp + tr(" messages")); emit mailSent(); mailList.clear(); diff --git a/noncore/unsupported/mailit/popclient.cpp b/noncore/unsupported/mailit/popclient.cpp index a406af2..2f14ed2 100644 --- a/noncore/unsupported/mailit/popclient.cpp +++ b/noncore/unsupported/mailit/popclient.cpp @@ -98,10 +98,10 @@ void PopClient::setSelectedMails(MailList *list) void PopClient::connectionEstablished() { - emit updateStatus("Connection established"); + emit updateStatus(tr("Connection established")); } void PopClient::errorHandling(int status) { - emit updateStatus("Error Occured"); + emit updateStatus(tr("Error Occured")); emit errorOccurred(status); socket->close(); @@ -213,17 +213,17 @@ void PopClient::incomingData() temp.setNum(messageCount - lastSync); if (!selected) { - emit updateStatus("Retrieving " + temp + "/" + temp2); + emit updateStatus(tr("Retrieving ") + temp + "/" + temp2); } else { //completing a previously closed transfer if ( (messageCount - lastSync) <= 0) { temp.setNum(messageCount); - emit updateStatus("Previous message " + temp); + emit updateStatus(tr("Previous message ") + temp); } else { - emit updateStatus("Completing message " + temp); + emit updateStatus(tr("Completing message ") + temp); } } break; } else { - emit updateStatus("No new Messages"); + emit updateStatus(tr("No new Messages")); status = Quit; } @@ -301,8 +301,8 @@ void PopClient::incomingData() if ( (messageCount - lastSync) <= 0) { temp.setNum(messageCount); - emit updateStatus("Previous message " + temp); + emit updateStatus(tr("Previous message ") + temp); } else { temp.setNum(messageCount - lastSync); - emit updateStatus("Completing message " + temp); + emit updateStatus(tr("Completing message ") + temp); } break; @@ -316,5 +316,5 @@ void PopClient::incomingData() temp2.setNum(newMessages - lastSync); temp.setNum(messageCount - lastSync); - emit updateStatus("Retrieving " + temp + "/" + temp2); + emit updateStatus(tr("Retrieving ") + temp + "/" + temp2); break; @@ -332,7 +332,7 @@ void PopClient::incomingData() if (newM > 0) { temp.setNum(newM); - emit updateStatus(temp + " new messages"); + emit updateStatus(temp + tr(" new messages")); } else { - emit updateStatus("No new messages"); + emit updateStatus(tr("No new messages")); } diff --git a/noncore/unsupported/mailit/smtpclient.cpp b/noncore/unsupported/mailit/smtpclient.cpp index 7bb7933..3bdc072 100644 --- a/noncore/unsupported/mailit/smtpclient.cpp +++ b/noncore/unsupported/mailit/smtpclient.cpp @@ -51,5 +51,5 @@ void SmtpClient::newConnection(QString target, int port) socket->connectToHost(target, port); - emit updateStatus("DNS lookup"); + emit updateStatus(tr("DNS lookup")); } @@ -68,5 +68,5 @@ void SmtpClient::addMail(QString from, QString subject, QStringList to, QString void SmtpClient::connectionEstablished() { - emit updateStatus("Connection established"); + emit updateStatus(tr("Connection established")); } @@ -130,5 +130,5 @@ void SmtpClient::incomingData() *stream << "DATA\r\n"; status = Body; - emit updateStatus("Sending: " + mailPtr->subject); + emit updateStatus(tr("Sending: ") + mailPtr->subject); } else errorHandling(ErrUnknownResponse); break; @@ -152,5 +152,5 @@ void SmtpClient::incomingData() QString temp; temp.setNum(mailList.count()); - emit updateStatus("Sent " + temp + " messages"); + emit updateStatus(tr("Sent ") + temp + tr(" messages")); emit mailSent(); mailList.clear(); |