From b875a8debc771b6192b37db04570009fca1d0a6c Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Sun, 28 Jul 2019 18:45:37 -0400 Subject: Update translation context --- resources/langs/nheko_de.ts | 79 +++++++++++++++++-------------- resources/langs/nheko_el.ts | 75 +++++++++++++++++------------- resources/langs/nheko_en.ts | 103 ++++++++++++++++++++++------------------- resources/langs/nheko_fi.ts | 79 +++++++++++++++++-------------- resources/langs/nheko_fr.ts | 75 +++++++++++++++++------------- resources/langs/nheko_nl.ts | 75 +++++++++++++++++------------- resources/langs/nheko_pl.ts | 75 +++++++++++++++++------------- resources/langs/nheko_ru.ts | 75 +++++++++++++++++------------- resources/langs/nheko_zh_CN.ts | 75 +++++++++++++++++------------- src/Utils.h | 18 +++---- 10 files changed, 405 insertions(+), 324 deletions(-) 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,82 +1049,91 @@ Medien-Größe: %2 - utils + message-description sent: - - - You - Du + + %1 an audio clip + - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file - + + + You + Du - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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,82 +1047,91 @@ Media size: %2 - utils + message-description sent: - - - You + + %1 an audio clip - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file + + + You - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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 @@ -1051,82 +1051,91 @@ Media size: %2 - utils - - - - You - You - - - - 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. - + message-description sent: - - 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 audio clip %1 an image - %1 an image + %1 an image %1 a file - %1 a file + %1 a file %1 a video clip - %1 a video clip + %1 a video clip %1 a sticker - %1 a sticker + %1 a sticker %1 a notification - %1 a notification + %1 a notification %1 an encrypted message - %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 + + + + 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 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,82 +1051,91 @@ Median koko: %2 - utils + message-description sent: - - - You - Sinä + + %1 an audio clip + - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file - + + + You + Sinä - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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,82 +1050,91 @@ Taille du média : %2 - utils + message-description sent: - - - You + + %1 an audio clip - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file + + + You - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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,82 +1049,91 @@ Mediagrootte: %2 - utils + message-description sent: - - - You + + %1 an audio clip - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file + + + You - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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,82 +1053,91 @@ Rozmiar multimediów: %2 - utils + message-description sent: - - - You + + %1 an audio clip - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file + + + You - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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,82 +1052,91 @@ Media size: %2 - utils + message-description sent: - - - You + + %1 an audio clip - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file + + + You - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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,82 +1057,91 @@ Media size: %2 - utils + message-description sent: - - - You + + %1 an audio clip - - sent a file. + + %1 an image - - sent an image. + + %1 a file - - sent an audio file. + + %1 a video clip - - sent a video + + %1 a sticker - - sent - For when you are the sender + + %1 a notification - - sent - For when someone else is the sender + + %1 an encrypted message + + + message-description: - - %1 an audio clip + + sent + For when someone else is the sender + + + message-description: - - %1 an image + + sent + For when you are the sender + + + utils - - %1 a file + + + You - - %1 a video clip + + sent a file. - - %1 a sticker + + sent an image. - - %1 a notification + + sent an audio file. - - %1 an encrypted message + + 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"); -- cgit 1.4.1