update translations and only display username if hide setting set

This commit is contained in:
Gaelle Braud 2026-04-09 16:51:53 +02:00
parent 8b3ef14df0
commit 64bfe8bfd5
5 changed files with 54 additions and 51 deletions

View file

@ -350,8 +350,9 @@ void Notifier::notifyReceivedCall(const shared_ptr<linphone::Call> &call) {
auto displayName = callLog && callLog->getConferenceInfo()
? Utils::coreStringToAppString(callLog->getConferenceInfo()->getSubject())
: ToolModel::getDisplayName(remoteAddress);
auto remoteAddrString = Utils::coreStringToAppString(remoteAddress->asStringUriOnly());
auto remoteAddrString = SettingsModel::getInstance()->getHideSipAddresses()
? Utils::getUsername(Utils::coreStringToAppString(remoteAddress->asStringUriOnly()))
: Utils::coreStringToAppString(remoteAddress->asStringUriOnly());
// Accessibility alert
//: New call from %1
AccessibilityHelper::announceMessage(tr("new_call_alert_accessible_name").arg(displayName));

View file

@ -137,7 +137,9 @@ void NotificationBackend::sendCallNotification(QVariantMap data) {
QString declineIcon = Utils::getIconAsPng(Utils::getAppIcon("endCall").toString());
QString acceptIcon = Utils::getIconAsPng(Utils::getAppIcon("phone").toString());
auto appIcon = Utils::getIconAsPng(Utils::getAppIcon("logo").toString()).toStdWString();
//: Accept
actions.append(ToastButton(tr("accept_button"), "accept", acceptIcon));
//: Decline
actions.append(ToastButton(tr("decline_button"), "decline", declineIcon));
std::wstring wActions;
if (!actions.isEmpty()) {

View file

@ -5371,42 +5371,42 @@ Ablauf: %1</translation>
<context>
<name>Notifier</name>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="357"/>
<location filename="../../core/notifier/Notifier.cpp" line="358"/>
<source>new_call_alert_accessible_name</source>
<extracomment>New call from %1</extracomment>
<translation>Neuer Anruf von %1</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="413"/>
<location filename="../../core/notifier/Notifier.cpp" line="414"/>
<source>new_voice_message</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notification for voice messages.</extracomment>
<translation>Sprachnachricht empfangen!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="414"/>
<location filename="../../core/notifier/Notifier.cpp" line="415"/>
<source>new_file_message</source>
<translation>Datei empfangen!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="417"/>
<location filename="../../core/notifier/Notifier.cpp" line="418"/>
<source>new_conference_invitation</source>
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Konferenzeinladung erhalten!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="439"/>
<location filename="../../core/notifier/Notifier.cpp" line="440"/>
<source>new_chat_room_message</source>
<extracomment>&apos;New message received!&apos; Notification that warn the user of a new message.</extracomment>
<translation>Neue Nachricht empfangen!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="442"/>
<location filename="../../core/notifier/Notifier.cpp" line="443"/>
<source>new_chat_room_messages</source>
<extracomment>&apos;New messages received!&apos; Notification that warn the user of new messages.</extracomment>
<translation>Neue Nachrichten erhalten!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="470"/>
<location filename="../../core/notifier/Notifier.cpp" line="471"/>
<source>new_message_alert_accessible_name</source>
<extracomment>New message on chatroom %1</extracomment>
<translation>Neue Nachricht im Chat %1</translation>

View file

@ -5266,42 +5266,42 @@ Expiration : %1</translation>
<context>
<name>Notifier</name>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="357"/>
<location filename="../../core/notifier/Notifier.cpp" line="358"/>
<source>new_call_alert_accessible_name</source>
<extracomment>New call from %1</extracomment>
<translation>New call from %1</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="413"/>
<location filename="../../core/notifier/Notifier.cpp" line="414"/>
<source>new_voice_message</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notification for voice messages.</extracomment>
<translation>Voice message received!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="414"/>
<location filename="../../core/notifier/Notifier.cpp" line="415"/>
<source>new_file_message</source>
<translation>File received!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="417"/>
<location filename="../../core/notifier/Notifier.cpp" line="418"/>
<source>new_conference_invitation</source>
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Conference invitation received !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="439"/>
<location filename="../../core/notifier/Notifier.cpp" line="440"/>
<source>new_chat_room_message</source>
<extracomment>&apos;New message received!&apos; Notification that warn the user of a new message.</extracomment>
<translation>New message received!</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="442"/>
<location filename="../../core/notifier/Notifier.cpp" line="443"/>
<source>new_chat_room_messages</source>
<extracomment>&apos;New messages received!&apos; Notification that warn the user of new messages.</extracomment>
<translation>New messages received !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="470"/>
<location filename="../../core/notifier/Notifier.cpp" line="471"/>
<source>new_message_alert_accessible_name</source>
<extracomment>New message on chatroom %1</extracomment>
<translation>New message on chatroom %1</translation>
@ -5685,13 +5685,13 @@ Expiration : %1</translation>
<location filename="../../view/Control/Display/Record/RecordListView.qml" line="265"/>
<source>meeting_info_cancelled</source>
<extracomment>&quot;Réunion annulée&quot;</extracomment>
<translation type="unfinished">Meeting canceled</translation>
<translation>Meeting canceled</translation>
</message>
<message>
<location filename="../../view/Control/Display/Record/RecordListView.qml" line="289"/>
<source>meetings_list_no_meeting_for_today</source>
<extracomment>&quot;Aucune réunion aujourd&apos;hui&quot;</extracomment>
<translation type="unfinished">No meeting for today</translation>
<translation>No meeting for today</translation>
</message>
</context>
<context>
@ -5700,43 +5700,43 @@ Expiration : %1</translation>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="18"/>
<source>record_list_empty</source>
<extracomment>&quot;Aucun enregistrement&quot;</extracomment>
<translation type="unfinished"></translation>
<translation>No record</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="62"/>
<source>record_list_title</source>
<extracomment>&quot;Records&quot;</extracomment>
<translation type="unfinished"></translation>
<translation>Records</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="76"/>
<source>meetings_search_hint</source>
<extracomment>&quot;Rechercher une réunion&quot;</extracomment>
<translation type="unfinished">Find meeting</translation>
<translation>Find meeting</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="96"/>
<source>list_filter_no_result_found</source>
<extracomment>&quot;Aucun résultat&quot;</extracomment>
<translation type="unfinished"></translation>
<translation>No result</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="98"/>
<source>meetings_empty_list</source>
<extracomment>&quot;Aucun enregistrement&quot;</extracomment>
<translation type="unfinished">No meeting</translation>
<translation>No meeting</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="168"/>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="229"/>
<source>meeting_schedule_title</source>
<extracomment>&quot;Nouvelle réunion&quot;</extracomment>
<translation type="unfinished">New meeting</translation>
<translation>New meeting</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="179"/>
<source>create</source>
<translation type="unfinished">Create</translation>
<translation>Create</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="186"/>
@ -5746,87 +5746,87 @@ Expiration : %1</translation>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="345"/>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="394"/>
<source>information_popup_error_title</source>
<translation type="unfinished"></translation>
<translation>Error</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="188"/>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="343"/>
<source>meeting_schedule_mandatory_field_not_filled_toast</source>
<extracomment>Veuillez saisir un titre et sélectionner au moins un participant</extracomment>
<translation type="unfinished">Please fill the title and select at least one participant</translation>
<translation>Please fill the title and select at least one participant</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="192"/>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="346"/>
<source>meeting_schedule_duration_error_toast</source>
<extracomment>&quot;La fin de la conférence doit être plus récente que son début&quot;</extracomment>
<translation type="unfinished">The end of the conference must be more recent than its beginning</translation>
<translation>The end of the conference must be more recent than its beginning</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="196"/>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="236"/>
<source>meeting_schedule_creation_in_progress</source>
<extracomment>&quot;Création de la réunion en cours &quot;</extracomment>
<translation type="unfinished">Creation in progress</translation>
<translation>Creation in progress</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="231"/>
<source>meeting_info_created_toast</source>
<extracomment>&quot;Réunion planifiée avec succès&quot;</extracomment>
<translation type="unfinished">Meeting successfully created</translation>
<translation>Meeting successfully created</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="243"/>
<source>meeting_failed_to_schedule_toast</source>
<extracomment>&quot;Échec de création de la réunion !&quot;</extracomment>
<translation type="unfinished">Failed to create meeting!</translation>
<translation>Failed to create meeting!</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="335"/>
<source>save</source>
<translation type="unfinished">Save</translation>
<translation>Save</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="385"/>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="621"/>
<source>saved</source>
<extracomment>&quot;Enregistré&quot;</extracomment>
<translation type="unfinished">Saved</translation>
<translation>Saved</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="387"/>
<source>meeting_info_updated_toast</source>
<extracomment>&quot;Réunion mise à jour&quot;</extracomment>
<translation type="unfinished">Meeting updated</translation>
<translation>Meeting updated</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="392"/>
<source>meeting_schedule_edit_in_progress</source>
<extracomment>&quot;Modification de la réunion en cours&quot;</extracomment>
<translation type="unfinished">Meeting update in progress</translation>
<translation>Meeting update in progress</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="396"/>
<source>meeting_failed_to_edit_toast</source>
<extracomment>&quot;Échec de la modification de la réunion !&quot;</extracomment>
<translation type="unfinished">Failed to update meeting !</translation>
<translation>Failed to update meeting !</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="440"/>
<source>meeting_schedule_add_participants_title</source>
<extracomment>&quot;Ajouter des participants&quot;</extracomment>
<translation type="unfinished">Add participants</translation>
<translation>Add participants</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="454"/>
<source>meeting_schedule_add_participants_apply</source>
<translation type="unfinished">Apply</translation>
<translation>Apply</translation>
</message>
<message numerus="yes">
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="464"/>
<source>group_call_participant_selected</source>
<extracomment>&quot;%n participant(s) sélectionné(s)&quot;</extracomment>
<translation type="unfinished">
<translation>
<numerusform>%1 selected participant</numerusform>
<numerusform>%1 selected participants</numerusform>
</translation>
@ -5835,31 +5835,31 @@ Expiration : %1</translation>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="552"/>
<source>meeting_info_delete</source>
<extracomment>&quot;Supprimer la réunion&quot;</extracomment>
<translation type="unfinished">Delete meeting</translation>
<translation>Delete meeting</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="623"/>
<source>meeting_address_copied_to_clipboard_toast</source>
<extracomment>&quot;Adresse de la réunion copiée&quot;</extracomment>
<translation type="unfinished">Meeting URI copied</translation>
<translation>Meeting URI copied</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="659"/>
<source>meeting_schedule_timezone_title</source>
<extracomment>&quot;Fuseau horaire&quot;</extracomment>
<translation type="unfinished">Timezone</translation>
<translation>Timezone</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="761"/>
<source>meeting_info_organizer_label</source>
<extracomment>&quot;Organisateur&quot;</extracomment>
<translation type="unfinished">Organizer</translation>
<translation>Organizer</translation>
</message>
<message>
<location filename="../../view/Page/Main/Record/RecordPage.qml" line="780"/>
<source>meeting_info_join_title</source>
<extracomment>&quot;Rejoindre la réunion&quot;</extracomment>
<translation type="unfinished">Join meeting</translation>
<translation>Join meeting</translation>
</message>
</context>
<context>

View file

@ -5266,42 +5266,42 @@ Expiration : %1</translation>
<context>
<name>Notifier</name>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="357"/>
<location filename="../../core/notifier/Notifier.cpp" line="358"/>
<source>new_call_alert_accessible_name</source>
<extracomment>New call from %1</extracomment>
<translation>Nouvel appel de %1</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="413"/>
<location filename="../../core/notifier/Notifier.cpp" line="414"/>
<source>new_voice_message</source>
<extracomment>&apos;Voice message received!&apos; : message to warn the user in a notification for voice messages.</extracomment>
<translation>Message vocal reçu !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="414"/>
<location filename="../../core/notifier/Notifier.cpp" line="415"/>
<source>new_file_message</source>
<translation>Fichier reçu !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="417"/>
<location filename="../../core/notifier/Notifier.cpp" line="418"/>
<source>new_conference_invitation</source>
<extracomment>&apos;Conference invitation received!&apos; : Notification about receiving an invitation to a conference.</extracomment>
<translation>Nouvelle invitation à une conférence !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="439"/>
<location filename="../../core/notifier/Notifier.cpp" line="440"/>
<source>new_chat_room_message</source>
<extracomment>&apos;New message received!&apos; Notification that warn the user of a new message.</extracomment>
<translation>Nouveau message reçu !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="442"/>
<location filename="../../core/notifier/Notifier.cpp" line="443"/>
<source>new_chat_room_messages</source>
<extracomment>&apos;New messages received!&apos; Notification that warn the user of new messages.</extracomment>
<translation>Nouveaux messages reçus !</translation>
</message>
<message>
<location filename="../../core/notifier/Notifier.cpp" line="470"/>
<location filename="../../core/notifier/Notifier.cpp" line="471"/>
<source>new_message_alert_accessible_name</source>
<extracomment>New message on chatroom %1</extracomment>
<translation>Nouveau message sur la conversation %1</translation>