"Vocal message received" notification

This commit is contained in:
Julien Wadel 2023-05-04 17:43:26 +02:00
parent 7f3dc8e928
commit 51ef0ae25b
17 changed files with 89 additions and 5 deletions

View file

@ -2260,6 +2260,11 @@ Klikněte zde: <a href="%1">%1</a>
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Pozvánka na konferenci přijata!</translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Klik her: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Klicken Sie hier: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Click here: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Conference invitation received!</translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation>Voice message received!</translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Haga clic aquí: &lt;a href=&quot;%1&quot;&gt;%1 &lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Cliquez ici : &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Vous avez reçu une invitation à participer à une conférence !</translation>
</message>
<message>
<source>newVoiceMessage</source>
<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>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2234,6 +2234,11 @@ Kattintson ide: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Clicca: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -976,7 +976,7 @@
<message>
<source>missingConferenceURI</source>
<extracomment>&apos;You need to set the conference URI in your account settings to create a conference based chat room.&apos; : Tooltip to warn the user that a setting is missing in its configuration.</extracomment>
<translation type="unfinished"></translation>
<translation type="unfinished">URIを設定する必要があります</translation>
</message>
</context>
<context>
@ -1004,7 +1004,7 @@
<message>
<source>missingConferenceURI</source>
<extracomment>&apos;You need to set the conference URI in your account settings to create a conference based chat room.&apos; : Tooltip to warn the user that a setting is missing in its configuration.</extracomment>
<translation type="unfinished"></translation>
<translation type="unfinished">URIを設定する必要があります</translation>
</message>
</context>
<context>
@ -2018,7 +2018,7 @@
<message>
<source>missingConferenceURI</source>
<extracomment>&apos;You need to set the meeting URI in your account settings to create a meeting based chat room.&apos; : Tooltip to warn the user that a setting is missing in its configuration.</extracomment>
<translation type="unfinished"></translation>
<translation type="unfinished">URIを設定する必要があります</translation>
</message>
<message>
<source>newConferenceTitle</source>
@ -2234,6 +2234,11 @@
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2260,6 +2260,11 @@ Spustelėkite čia: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Clique aqui: &lt;a href=&quot;%1&quot;&gt;%1 &lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Convite para conferência recebido!</translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2260,6 +2260,11 @@
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2247,6 +2247,11 @@ Klicka här: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2234,6 +2234,11 @@ Buraya tıklayın: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2260,6 +2260,11 @@
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -2234,6 +2234,11 @@
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>newVoiceMessage</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notofication for voice messages.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OnlineInstallerDialog</name>

View file

@ -281,12 +281,16 @@ void Notifier::notifyReceivedMessages (const list<shared_ptr<linphone::ChatMessa
shared_ptr<linphone::ChatMessage> message = messages.front();
if( messages.size() == 1){
if(! message->getFileTransferInformation() ){
auto fileContent = message->getFileTransferInformation();
if(!fileContent ){
foreach(auto content, message->getContents()){
if(content->isText())
txt += content->getUtf8Text().c_str();
}
}else
}else if( fileContent->isVoiceRecording())
//: 'Voice message received!' : message to warn the user in a notofication for voice messages.
txt = tr("newVoiceMessage");
else
txt = tr("newFileMessage");
if(txt.isEmpty() && message->hasConferenceInvitationContent())
//: 'Conference invitation received!' : Notification about receiving an invitation to a conference.