diff options
author | Pavol Babincak <scroolik@gmail.com> | 2012-04-24 18:18:18 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-04-24 18:32:19 (GMT) |
commit | f52b5f87cf21c9cd8dea4ff1fad8fe5a32dbae80 (patch) | |
tree | 623f756a90525e0879037d7d9cc73ef73cfbe9c8 /Swift/QtUI/QtChatView.cpp | |
parent | 02c18de062510e8061598bf492c68cb5b0624831 (diff) | |
download | swift-contrib-f52b5f87cf21c9cd8dea4ff1fad8fe5a32dbae80.zip swift-contrib-f52b5f87cf21c9cd8dea4ff1fad8fe5a32dbae80.tar.bz2 |
File transfer strings made translatable
License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Diffstat (limited to 'Swift/QtUI/QtChatView.cpp')
-rw-r--r-- | Swift/QtUI/QtChatView.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp index 4fa25ee..e1d718f 100644 --- a/Swift/QtUI/QtChatView.cpp +++ b/Swift/QtUI/QtChatView.cpp @@ -327,12 +327,12 @@ void QtChatView::setFileTransferStatus(QString id, const ChatWindow::FileTransfe QString newInnerHTML = ""; if (state == ChatWindow::WaitingForAccept) { - newInnerHTML = "Waiting for other side to accept the transfer.<br/>" + + newInnerHTML = tr("Waiting for other side to accept the transfer.") + "<br/>" + QtChatWindow::buildChatWindowButton(tr("Cancel"), QtChatWindow::ButtonFileTransferCancel, id); } if (state == ChatWindow::Negotiating) { // replace with text "Negotiaging" + Cancel button - newInnerHTML = "Negotiating...<br/>" + + newInnerHTML = tr("Negotiating...") + "<br/>" + QtChatWindow::buildChatWindowButton(tr("Cancel"), QtChatWindow::ButtonFileTransferCancel, id); } else if (state == ChatWindow::Transferring) { @@ -347,14 +347,14 @@ void QtChatView::setFileTransferStatus(QString id, const ChatWindow::FileTransfe QtChatWindow::buildChatWindowButton(tr("Cancel"), QtChatWindow::ButtonFileTransferCancel, id); } else if (state == ChatWindow::Canceled) { - newInnerHTML = "Transfer has been canceled!"; + newInnerHTML = tr("Transfer has been canceled!"); } else if (state == ChatWindow::Finished) { // text "Successful transfer" - newInnerHTML = "Transfer completed successfully."; + newInnerHTML = tr("Transfer completed successfully."); } else if (state == ChatWindow::FTFailed) { - newInnerHTML = "Transfer failed."; + newInnerHTML = tr("Transfer failed."); } ftElement.setInnerXml(newInnerHTML); |