Remove translations from reply fallback

pull/112/head
Nicolas Werner 5 years ago
parent 453d6f5f64
commit 8fcb670bde
  1. 24
      resources/langs/nheko_de.ts
  2. 24
      resources/langs/nheko_el.ts
  3. 24
      resources/langs/nheko_en.ts
  4. 24
      resources/langs/nheko_fi.ts
  5. 24
      resources/langs/nheko_fr.ts
  6. 24
      resources/langs/nheko_nl.ts
  7. 24
      resources/langs/nheko_pl.ts
  8. 24
      resources/langs/nheko_ru.ts
  9. 24
      resources/langs/nheko_zh_CN.ts
  10. 18
      src/Utils.cpp

@ -1282,30 +1282,6 @@ Medien-Größe: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1280,30 +1280,6 @@ Media size: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1284,30 +1284,6 @@ Media size: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation>sent a file.</translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation>sent an image.</translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation>sent an audio file.</translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation>sent a video.</translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1284,30 +1284,6 @@ Median koko: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1283,30 +1283,6 @@ Taille du média : %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1282,30 +1282,6 @@ Mediagrootte: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1286,30 +1286,6 @@ Rozmiar multimediów: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1285,30 +1285,6 @@ Media size: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -1290,30 +1290,6 @@ Media size: %2
</context>
<context>
<name>utils</name>
<message>
<location filename="../../src/Utils.cpp" line="+292"/>
<location line="+35"/>
<source>sent a file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an image.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent an audio file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-32"/>
<location line="+35"/>
<source>sent a video</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Utils.h" line="+4"/>
<source>Unknown Message Type</source>

@ -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;

Loading…
Cancel
Save