summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-07-21 21:28:21 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-08-11 09:47:22 (GMT)
commit009e552f76e17570f2c09789949d3804a153d696 (patch)
tree8d7e95abda5e97836f59d4266273c8b11a56f217 /Swift
parent360d7d6e0b184fea1d22ba0cc755db6f2e57e889 (diff)
downloadswift-009e552f76e17570f2c09789949d3804a153d696.zip
swift-009e552f76e17570f2c09789949d3804a153d696.tar.bz2
Remove extra space in file transfer file size text
Test-Information: Verified the change is visible in the UI. Change-Id: I31ebb28b3930c45e791ffea2ba8eb08364fcbd9b
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtWebKitChatView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/QtUI/QtWebKitChatView.cpp b/Swift/QtUI/QtWebKitChatView.cpp
index 0c82e73..8327473 100644
--- a/Swift/QtUI/QtWebKitChatView.cpp
+++ b/Swift/QtUI/QtWebKitChatView.cpp
@@ -668,8 +668,8 @@ std::string QtWebKitChatView::addFileTransfer(const std::string& senderName, boo
if (senderIsSelf) {
// outgoing
filePaths_[ft_id] = P2QSTRING(filename);
- actionText = tr("Send file");
- htmlString = actionText + ": " + P2QSTRING(filename) + " ( " + formattedFileSize + ") <br/>" +
+ actionText = tr("Send file: %1 (%2)").arg(P2QSTRING(filename)).arg(formattedFileSize);
+ htmlString = actionText + " <br/>" +
"<div id='" + ft_id + "'>" +
buildChatWindowButton(tr("Cancel"), ButtonFileTransferCancel, ft_id) +
buildChatWindowButton(tr("Set Description"), ButtonFileTransferSetDescription, ft_id) +
@@ -677,8 +677,8 @@ std::string QtWebKitChatView::addFileTransfer(const std::string& senderName, boo
"</div>";
} else {
// incoming
- actionText = tr("Receiving file");
- htmlString = actionText + ": " + P2QSTRING(filename) + " ( " + formattedFileSize + ") <br/>" +
+ actionText = tr("Receiving file: %1 (%2)").arg(P2QSTRING(filename)).arg(formattedFileSize);
+ htmlString = actionText + " <br/>" +
"<div id='" + ft_id + "'>" +
buildChatWindowButton(tr("Cancel"), ButtonFileTransferCancel, ft_id) +
buildChatWindowButton(tr("Accept"), ButtonFileTransferAcceptRequest, ft_id, P2QSTRING(filename)) +