summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-24 01:07:25 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-24 01:10:40 +0100
commit8fcb670bde6e6540474947112e253b534e1b5b6b (patch)
tree9ea49d0f1bc867d5b8874ef87b23746c3e2a56a8 /src
parentSurpress qt binding warning message until we can depend on qt5.14 (diff)
downloadnheko-8fcb670bde6e6540474947112e253b534e1b5b6b.tar.xz
Remove translations from reply fallback
Diffstat (limited to 'src')
-rw-r--r--src/Utils.cpp18
1 files changed, 9 insertions, 9 deletions
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;