Add chat reaction translations

This commit is contained in:
Julien Wadel 2023-09-01 09:14:26 +02:00
parent f496600004
commit 60ffa4816c
17 changed files with 333 additions and 6 deletions

View file

@ -2332,6 +2332,26 @@ Klikněte zde: <a href="%1">%1</a>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation>Přijata hlasová zpráva!</translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Klik her: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Klicken Sie hier: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation>Sprachnachricht erhalten!</translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Click here: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation>Voice message received!</translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation>Voice message</translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation>Conference invitation</translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation>Has reacted by %1 to: %2</translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation>New reactions received!</translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Haga clic aquí: &lt;a href=&quot;%1&quot;&gt;%1 &lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Cliquez ici : &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation>Message vocal reçu!</translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation>Message vocal</translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation>Invitation</translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation>a réagi par %1 à: %2</translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation>Nouvelles réactions reçues!</translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2304,6 +2304,26 @@ Kattintson ide: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Clicca: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2304,6 +2304,26 @@
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2332,6 +2332,26 @@ Spustelėkite čia: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Clique aqui: &lt;a href=&quot;%1&quot;&gt;%1 &lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2332,6 +2332,26 @@
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation>Голосовое сообщение получено!</translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2318,6 +2318,26 @@ Klicka här: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2304,6 +2304,26 @@ Buraya tıklayın: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2332,6 +2332,26 @@
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2304,6 +2304,26 @@
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>voiceMessageReact</source>
<extracomment>&apos;Voice message&apos; : Voice message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferenceInvitationReact</source>
<extracomment>&apos;Conference invitation&apos; : Conference invitation message type that has been reacted.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>reactionMessage</source>
<extracomment>&apos;&apos;Has reacted by %1 to: %2&apos; : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newReactionsMessages</source>
<extracomment>&apos;New reactions received!&apos; : Notification that warn the user of new reactions.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -23,6 +23,7 @@
#include <QQuickWindow>
#include <QQuickItem>
#include <QQuickView>
#include <QFileInfo>
#include <QScreen>
#include <QTimer>
@ -333,15 +334,21 @@ void Notifier::notifyReceivedReactions(const QList<QPair<std::shared_ptr<linphon
messageTxt += content->getUtf8Text().c_str();
}
}else if( fileContent->isVoiceRecording())
messageTxt += "Voice message";
else
messageTxt += "File";
//: 'Voice message' : Voice message type that has been reacted.
messageTxt += tr("voiceMessageReact");
else {
QFileInfo file(Utils::coreStringToAppString(fileContent->getFilePath()));
messageTxt += file.fileName();
}
if(messageTxt.isEmpty() && message->hasConferenceInvitationContent())
messageTxt += "Conference invitation";
txt = QString("Has reacted by %2 to: %3").arg(Utils::coreStringToAppString(reaction.second->getBody())).arg(messageTxt);
//: 'Conference invitation' : Conference invitation message type that has been reacted.
messageTxt += tr("conferenceInvitationReact");
//: ''Has reacted by %1 to: %2' : Reaction message. %1=Reaction(emoji), %2=type of message(Voice Message/Conference invitation/ Message text)
txt = tr("reactionMessage").arg(Utils::coreStringToAppString(reaction.second->getBody())).arg(messageTxt);
}else
txt = "New message reactions received";
//: 'New reactions received!' : Notification that warn the user of new reactions.
txt = tr("newReactionsMessages");
map["message"] = txt;
map["timelineModel"].setValue(timelineModel.get());