diff --git a/resources/langs/nheko_de.ts b/resources/langs/nheko_de.ts index 35240772..15497d60 100644 --- a/resources/langs/nheko_de.ts +++ b/resources/langs/nheko_de.ts @@ -1049,47 +1049,9 @@ Medien-Größe: %2 - utils + message-description sent: - - - You - Du - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1123,8 +1085,55 @@ Medien-Größe: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + Du + + + + 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 c8805905..84b76ba4 100644 --- a/resources/langs/nheko_el.ts +++ b/resources/langs/nheko_el.ts @@ -1047,47 +1047,9 @@ Media size: %2 - utils + message-description sent: - - - You - - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1121,8 +1083,55 @@ Media size: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + + + + + 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 794647c1..f44f8a73 100644 --- a/resources/langs/nheko_en.ts +++ b/resources/langs/nheko_en.ts @@ -1050,11 +1050,67 @@ Media size: %2 Flags + + message-description sent: + + + %1 an audio clip + %1 an audio clip + + + + %1 an image + %1 an image + + + + %1 a file + %1 a file + + + + %1 a video clip + %1 a video clip + + + + %1 a sticker + %1 a sticker + + + + %1 a notification + %1 a notification + + + + %1 an encrypted message + %1 an encrypted message + + + + message-description: + + + sent + For when someone else is the sender + sent + + + + message-description: + + + sent + For when you are the sender + sent + + utils - + You You @@ -1079,54 +1135,7 @@ Media size: %2 sent a video. - - sent - For when you are the sender - sent - - - - sent - For when someone else is the sender - sent - - - - %1 an audio clip - %1 an audio clip - - - - %1 an image - %1 an image - - - - %1 a file - %1 a file - - - - %1 a video clip - %1 a video clip - - - - %1 a sticker - %1 a sticker - - - - %1 a notification - %1 a notification - - - - %1 an encrypted message - %1 an encrypted message - - - + Unknown Message Type Unknown Message Type diff --git a/resources/langs/nheko_fi.ts b/resources/langs/nheko_fi.ts index e3116dfe..6494664a 100644 --- a/resources/langs/nheko_fi.ts +++ b/resources/langs/nheko_fi.ts @@ -1051,47 +1051,9 @@ Median koko: %2 - utils + message-description sent: - - - You - Sinä - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1125,8 +1087,55 @@ Median koko: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + Sinä + + + + 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 100b78aa..600d191c 100644 --- a/resources/langs/nheko_fr.ts +++ b/resources/langs/nheko_fr.ts @@ -1050,47 +1050,9 @@ Taille du média : %2 - utils + message-description sent: - - - You - - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1124,8 +1086,55 @@ Taille du média : %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + + + + + 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 59642683..aa1c6928 100644 --- a/resources/langs/nheko_nl.ts +++ b/resources/langs/nheko_nl.ts @@ -1049,47 +1049,9 @@ Mediagrootte: %2 - utils + message-description sent: - - - You - - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1123,8 +1085,55 @@ Mediagrootte: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + + + + + 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 74d08608..4c90292f 100644 --- a/resources/langs/nheko_pl.ts +++ b/resources/langs/nheko_pl.ts @@ -1053,47 +1053,9 @@ Rozmiar multimediów: %2 - utils + message-description sent: - - - You - - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1127,8 +1089,55 @@ Rozmiar multimediów: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + + + + + 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 b2b18ee3..958e93fa 100644 --- a/resources/langs/nheko_ru.ts +++ b/resources/langs/nheko_ru.ts @@ -1052,47 +1052,9 @@ Media size: %2 - utils + message-description sent: - - - You - - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1126,8 +1088,55 @@ Media size: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + + + + + 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 772b32d2..8c7b2d34 100644 --- a/resources/langs/nheko_zh_CN.ts +++ b/resources/langs/nheko_zh_CN.ts @@ -1057,47 +1057,9 @@ Media size: %2 - utils + message-description sent: - - - You - - - - - sent a file. - - - - - sent an image. - - - - - sent an audio file. - - - - - sent a video - - - - - sent - For when you are the sender - - - - - sent - For when someone else is the sender - - - - + %1 an audio clip @@ -1131,8 +1093,55 @@ Media size: %2 %1 an encrypted message + + + message-description: + + + sent + For when someone else is the sender + + + + + message-description: + + + sent + For when you are the sender + + + + + utils + + + + You + + + + + sent a file. + + + sent an image. + + + + + sent an audio file. + + + + + sent a video + + + + Unknown Message Type diff --git a/src/Utils.h b/src/Utils.h index d2aa6d93..40906b6a 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -96,28 +96,28 @@ messageDescription(const QString &username = "", // Sometimes the verb form of sent changes in some languages depending on the actor. auto remoteSent = - QCoreApplication::translate("utils", "sent", "For when you are the sender"); + QCoreApplication::translate("message-description: ", "sent", "For when you are the sender"); auto localSent = - QCoreApplication::translate("utils", "sent", "For when someone else is the sender"); + QCoreApplication::translate("message-description:", "sent", "For when someone else is the sender"); QString sentVerb = isLocal ? localSent : remoteSent; if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("utils", "%1 an audio clip").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 an audio clip").arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("utils", "%1 an image").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 an image").arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("utils", "%1 a file").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a file").arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("utils", "%1 a video clip").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a video clip").arg(sentVerb); } else if (std::is_same::value || std::is_same::value) { - return QCoreApplication::translate("utils", "%1 a sticker").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a sticker").arg(sentVerb); } else if (std::is_same::value) { - return QCoreApplication::translate("utils", "%1 a notification").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a notification").arg(sentVerb); } else if (std::is_same::value) { return QString(": %1").arg(body); } else if (std::is_same::value) { return QString("* %1 %2").arg(username).arg(body); } else if (std::is_same::value) { - return QCoreApplication::translate("utils", "%1 an encrypted message") + return QCoreApplication::translate("message-description sent:", "%1 an encrypted message") .arg(sentVerb); } else { return QCoreApplication::translate("utils", "Unknown Message Type");