If only usernames are shown from sip addresses:

- In contacts, change accounts field label for 'Username'.
- Display only usernames in account list into settings.
This commit is contained in:
Julien Wadel 2023-07-05 14:50:40 +02:00
parent 5c22ac8010
commit e63799c6e5
18 changed files with 103 additions and 2 deletions

View file

@ -923,6 +923,7 @@ Adresa URL serveru není nakonfigurována.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP ÚČTY</translation>
</message>
<message>
@ -998,6 +999,11 @@ Adresa URL serveru není nakonfigurována.</translation>
<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>Chcete-li vytvořit chatovací místnost založenou na konferenci, musíte v nastavení účtu nastavit URI konference.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ Server url ikke konfigureret.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP KONTI</translation>
</message>
<message>
@ -992,6 +993,11 @@ Server url ikke konfigureret.</translation>
<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>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ Server URL ist nicht konfiguriert.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP-KONTEN</translation>
</message>
<message>
@ -992,6 +993,11 @@ Server URL ist nicht konfiguriert.</translation>
<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>Sie müssen eine Konferenz-URI in den Kontoeinstellungen festlegen um einen konferenzbasierten Chatraum zu erstellen.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ Server URL not configured.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP ACCOUNT(S)</translation>
</message>
<message>
@ -992,6 +993,11 @@ Server URL not configured.</translation>
<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>You need to set the conference URI in your account settings to create a conference based chat room.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ URL del servidor no configurada.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>CUENTA(S) SIP</translation>
</message>
<message>
@ -992,6 +993,11 @@ URL del servidor no configurada.</translation>
<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>Debe configurar el URL de la conferencia en la configuración de su cuenta para crear una conferencia basada en una sala de chat.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ URL du serveur non configurée.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>COMPTE(S) SIP</translation>
</message>
<message>
@ -992,6 +993,11 @@ URL du serveur non configurée.</translation>
<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>Vous devez définir l&apos;URI de la réunion dans les paramètres de votre compte pour créer une conférence.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -911,6 +911,7 @@ A kiszolgáló URL-je nincs konfigurálva.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP fiók(ok)</translation>
</message>
<message>
@ -986,6 +987,11 @@ A kiszolgáló URL-je nincs konfigurálva.</translation>
<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>Konferenciaalapú csevegőszoba létrehozásához be kell állítania a konferencia URI-címét a fiókbeállításokban.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ URL del server non configurato.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP ACCOUNT</translation>
</message>
<message>
@ -992,6 +993,11 @@ URL del server non configurato.</translation>
<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>Per creare una chat di gruppo è necessario impostare la URI del gruppo nelle impostazioni del tuo account.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -911,6 +911,7 @@
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIPアカウント</translation>
</message>
<message>
@ -986,6 +987,11 @@
<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">URIを設定する必要があります</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -923,6 +923,7 @@ Nesukonfigūruotas serverio url.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP PASKYRA(-OS)</translation>
</message>
<message>
@ -998,6 +999,11 @@ Nesukonfigūruotas serverio url.</translation>
<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>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ URL do servidor não configurado.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>CONTA (S) SIP</translation>
</message>
<message>
@ -992,6 +993,11 @@ URL do servidor não configurado.</translation>
<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>Você precisa definir o URI da conferência nas configurações da sua conta para criar uma sala de bate-papo baseada em conferência.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -923,6 +923,7 @@
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP АККАУНТ(Ы)</translation>
</message>
<message>
@ -998,6 +999,11 @@
<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>Вам необходимо установить URI конференции в настройках вашего аккаунта, чтобы создать чат-комнату на основе конференции.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -917,6 +917,7 @@ Serverwebbadressen är inte konfigurerad.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP-KONTO(N)</translation>
</message>
<message>
@ -992,6 +993,11 @@ Serverwebbadressen är inte konfigurerad.</translation>
<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>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -911,6 +911,7 @@ Sunucu url&apos;si yapılandırılmadı.</translation>
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP HESAPLARI</translation>
</message>
<message>
@ -986,6 +987,11 @@ Sunucu url&apos;si yapılandırılmadı.</translation>
<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>Toplantı tabanlı konuşma odası oluşturmak için hesap ayarlarınızda toplantı URI&apos;si belirlemelisiniz.</translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -923,6 +923,7 @@
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP ОБЛІКІВКА(И)</translation>
</message>
<message>
@ -998,6 +999,11 @@
<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>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -911,6 +911,7 @@
</message>
<message>
<source>sipAccounts</source>
<extracomment>&apos;SIP ACCOUNT(S)&apos; : label for sip accounts in contact</extracomment>
<translation>SIP </translation>
</message>
<message>
@ -986,6 +987,11 @@
<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"> URI </translation>
</message>
<message>
<source>usernames</source>
<extracomment>&apos;USERNAME(S)&apos; : label for sip accounts when only username is displayed n contact</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Contacts</name>

View file

@ -312,7 +312,11 @@ ColumnLayout {
minValues: _contact ? 1 : 0
placeholder: qsTr('sipAccountsPlaceholder')
readOnly: !_edition
title: qsTr('sipAccounts')
title: SettingsModel.sipDisplayMode == UtilsCpp.SIP_DISPLAY_USERNAME
//: 'USERNAME(S)' : label for sip accounts when only username is displayed n contact
? qsTr('usernames')
//: 'SIP ACCOUNT(S)' : label for sip accounts in contact
: qsTr('sipAccounts')
onChanged: Logic.handleSipAddressChanged(addresses, index, oldValue, newValue)
onRemoved: _vcard.removeSipAddress(value)

View file

@ -3,6 +3,7 @@ import QtQuick.Layouts 1.3
import Common 1.0
import Linphone 1.0
import UtilsCpp 1.0
import App.Styles 1.0
@ -93,7 +94,7 @@ TabContainer {
model: SettingsModel.showLocalSipAccount ? AccountSettingsModel.accounts.slice(1) : AccountSettingsModel.accounts
delegate: FormTableLine {
title: modelData.sipAddress
title: UtilsCpp.toDisplayString(modelData.sipAddress, SettingsModel.sipDisplayMode)
FormTableEntry {
ActionButton {