mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 09:49:20 +00:00
"Vocal message received" notification
This commit is contained in:
parent
7f3dc8e928
commit
51ef0ae25b
17 changed files with 89 additions and 5 deletions
|
|
@ -2260,6 +2260,11 @@ Klikněte zde: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation>Pozvánka na konferenci přijata!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Klik her: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Klicken Sie hier: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Click here: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation>Conference invitation received!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation>Voice message received!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Haga clic aquí: <a href="%1">%1 </a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Cliquez ici : <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : 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>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation>Message vocal reçu!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2234,6 +2234,11 @@ Kattintson ide: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Clicca: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -976,7 +976,7 @@
|
|||
<message>
|
||||
<source>missingConferenceURI</source>
|
||||
<extracomment>'You need to set the conference URI in your account settings to create a conference based chat room.' : 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>'You need to set the conference URI in your account settings to create a conference based chat room.' : 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>'You need to set the meeting URI in your account settings to create a meeting based chat room.' : 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>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2260,6 +2260,11 @@ Spustelėkite čia: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Clique aqui: <a href="%1">%1 </a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation>Convite para conferência recebido!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2260,6 +2260,11 @@
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,11 @@ Klicka här: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2234,6 +2234,11 @@ Buraya tıklayın: <a href="%1">%1</a>
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2260,6 +2260,11 @@
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -2234,6 +2234,11 @@
|
|||
<extracomment>'Conference invitation received!' : Notification about receiving an invitation to a conference.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newVoiceMessage</source>
|
||||
<extracomment>'Voice message received!' : message to warn the user in a notofication for voice messages.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OnlineInstallerDialog</name>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue