From 16e8f01ccbcfe6c9a24114481571e91743f2c0fc Mon Sep 17 00:00:00 2001 From: Matt Vogt Date: Tue, 5 May 2015 07:25:46 +1000 Subject: [PATCH] [transfer-engine] Workaround lupdate bug. Contributes to MER#962 --- src/transferengine.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/transferengine.cpp b/src/transferengine.cpp index 03129d6..93d04a0 100644 --- a/src/transferengine.cpp +++ b/src/transferengine.cpp @@ -417,12 +417,16 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty existing = ¬ification; } + //: Group name for notifications of successful transfers + //% "Transfers" + const QString transfersGroup(qtTrId("transferengine-notification_group")); + //: Group name for notifications of failed transfers + //% "Warnings" + const QString errorsGroup(qtTrId("transferengine-notification_errors_group")); + // Update the notification existing->setCategory(category); - //% "Warnings" - existing->setAppName(category == TRANSFER_ERROR_EVENT_CATEGORY ? qtTrId("transferengine-notification_errors_group") - //% "Transfers" - : qtTrId("transferengine-notification_group")); + existing->setAppName(category == TRANSFER_ERROR_EVENT_CATEGORY ? errorsGroup : transfersGroup); existing->setSummary(summary); existing->setBody(body); existing->setPreviewSummary(previewSummary);