mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Remove translations from reply fallback
This commit is contained in:
parent
453d6f5f64
commit
8fcb670bde
10 changed files with 9 additions and 225 deletions
|
@ -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…
Reference in a new issue