From 8fcb670bde6e6540474947112e253b534e1b5b6b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 24 Jan 2020 01:07:25 +0100 Subject: [PATCH] Remove translations from reply fallback --- resources/langs/nheko_de.ts | 24 ------------------------ resources/langs/nheko_el.ts | 24 ------------------------ resources/langs/nheko_en.ts | 24 ------------------------ resources/langs/nheko_fi.ts | 24 ------------------------ resources/langs/nheko_fr.ts | 24 ------------------------ resources/langs/nheko_nl.ts | 24 ------------------------ resources/langs/nheko_pl.ts | 24 ------------------------ resources/langs/nheko_ru.ts | 24 ------------------------ resources/langs/nheko_zh_CN.ts | 24 ------------------------ src/Utils.cpp | 18 +++++++++--------- 10 files changed, 9 insertions(+), 225 deletions(-) diff --git a/resources/langs/nheko_de.ts b/resources/langs/nheko_de.ts index 5c7ac52..e4271a6 100644 --- a/resources/langs/nheko_de.ts +++ b/resources/langs/nheko_de.ts @@ -1282,30 +1282,6 @@ Medien-Größe: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_el.ts b/resources/langs/nheko_el.ts index ee7bf89..982a14a 100644 --- a/resources/langs/nheko_el.ts +++ b/resources/langs/nheko_el.ts @@ -1280,30 +1280,6 @@ Media size: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_en.ts b/resources/langs/nheko_en.ts index 4ebe7e5..60b1fe3 100644 --- a/resources/langs/nheko_en.ts +++ b/resources/langs/nheko_en.ts @@ -1284,30 +1284,6 @@ Media size: %2 utils - - - - sent a file. - sent a file. - - - - - sent an image. - sent an image. - - - - - sent an audio file. - sent an audio file. - - - - - sent a video - sent a video. - Unknown Message Type diff --git a/resources/langs/nheko_fi.ts b/resources/langs/nheko_fi.ts index 30264f5..b4b184c 100644 --- a/resources/langs/nheko_fi.ts +++ b/resources/langs/nheko_fi.ts @@ -1284,30 +1284,6 @@ Median koko: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_fr.ts b/resources/langs/nheko_fr.ts index 7721e1c..c713dcb 100644 --- a/resources/langs/nheko_fr.ts +++ b/resources/langs/nheko_fr.ts @@ -1283,30 +1283,6 @@ Taille du média : %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_nl.ts b/resources/langs/nheko_nl.ts index 7cd06e4..82b0f88 100644 --- a/resources/langs/nheko_nl.ts +++ b/resources/langs/nheko_nl.ts @@ -1282,30 +1282,6 @@ Mediagrootte: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_pl.ts b/resources/langs/nheko_pl.ts index cfcbb82..6fb2133 100644 --- a/resources/langs/nheko_pl.ts +++ b/resources/langs/nheko_pl.ts @@ -1286,30 +1286,6 @@ Rozmiar multimediów: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_ru.ts b/resources/langs/nheko_ru.ts index d1f5c63..1b84074 100644 --- a/resources/langs/nheko_ru.ts +++ b/resources/langs/nheko_ru.ts @@ -1285,30 +1285,6 @@ Media size: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/resources/langs/nheko_zh_CN.ts b/resources/langs/nheko_zh_CN.ts index 43f4e15..f8b1943 100644 --- a/resources/langs/nheko_zh_CN.ts +++ b/resources/langs/nheko_zh_CN.ts @@ -1290,30 +1290,6 @@ Media size: %2 utils - - - - sent a file. - - - - - - sent an image. - - - - - - sent an audio file. - - - - - - sent a video - - Unknown Message Type diff --git a/src/Utils.cpp b/src/Utils.cpp index e6b9216..5a67ef6 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;