From 8fcb670bde6e6540474947112e253b534e1b5b6b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 24 Jan 2020 01:07:25 +0100 Subject: Remove translations from reply fallback --- src/Utils.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/Utils.cpp') diff --git a/src/Utils.cpp b/src/Utils.cpp index e6b92160..5a67ef62 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -403,21 +403,21 @@ utils::markdownToHtml(const QString &text) QString utils::getFormattedQuoteBody(const RelatedInfo &related, const QString &html) { - auto getFormattedBody = [related]() { + auto getFormattedBody = [related]() -> QString { using MsgType = mtx::events::MessageType; switch (related.type) { case MsgType::File: { - return QString(QCoreApplication::translate("utils", "sent a file.")); + return "sent a file."; } case MsgType::Image: { - return QString(QCoreApplication::translate("utils", "sent an image.")); + return "sent an image."; } case MsgType::Audio: { - return QString(QCoreApplication::translate("utils", "sent an audio file.")); + return "sent an audio file."; } case MsgType::Video: { - return QString(QCoreApplication::translate("utils", "sent a video")); + return "sent a video"; } default: { return related.quoted_formatted_body; @@ -443,16 +443,16 @@ utils::getQuoteBody(const RelatedInfo &related) switch (related.type) { case MsgType::File: { - return QString(QCoreApplication::translate("utils", "sent a file.")); + return "sent a file."; } case MsgType::Image: { - return QString(QCoreApplication::translate("utils", "sent an image.")); + return "sent an image."; } case MsgType::Audio: { - return QString(QCoreApplication::translate("utils", "sent an audio file.")); + return "sent an audio file."; } case MsgType::Video: { - return QString(QCoreApplication::translate("utils", "sent a video")); + return "sent a video"; } default: { return related.quoted_body; -- cgit 1.5.1