- Fix interpretUrl to check internalization prefix option from account configuration.

- Fix Layout label width if fitting label is requested (gui).
- Fix a missing presence text in qml.
This commit is contained in:
Julien Wadel 2023-03-27 16:07:47 +02:00
parent 5e56b2032c
commit a47d97d790
31 changed files with 609 additions and 20 deletions

View file

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New Chat Layout.
- Display last seen for contacts.
- New language support: Czech
- An option to set dial prefix and its use on numbers.
## 5.0.15 - undefined

View file

@ -3337,6 +3337,36 @@ Klikněte zde: <a href="%1">%1</a>
<source>publishDurationLabel</source>
<translation>Délka publikování stavu (s)</translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Klik her: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Klicken Sie hier: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3324,6 +3324,36 @@ Click here: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation>Publish duration (sec)</translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation>Prefix for your country</translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation>The prefix to use when using numbers without the &apos;+&apos;</translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation>Replace &apos;+&apos; by &apos;00&apos;</translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation>Replace &apos;+&apos; in addresses by &apos;00&apos;</translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation>Apply prefix for outgoing calls and chats</translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation>If a number is entered, apply the prefix to number</translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Haga clic aquí: &lt;a href=&quot;%1&quot;&gt;%1 &lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Cliquez ici : &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation>Durée de présence (sec)</translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation>Préfixe de votre pays</translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation>Le préfixe à utiliser dans les numéros de téléphone sans le caractère &apos;+&apos;</translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation>Remplacer &apos;+&apos; par &apos;00&apos;</translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation>Remplacer le caractère &apos;+&apos; par &apos;00&apos; dans les numéros de téléphone</translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation>Applique le préfixe pour les appels sortants et les messages</translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation>Quand un nombre est saisi, applique le préfixe</translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3287,6 +3287,36 @@ Kattintson ide: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Clicca: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3287,6 +3287,36 @@
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3313,6 +3313,36 @@ Spustelėkite čia: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Clique aqui: &lt;a href=&quot;%1&quot;&gt;%1 &lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3313,6 +3313,36 @@
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3300,6 +3300,36 @@ Klicka här: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3287,6 +3287,36 @@ Buraya tıklayın: &lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3313,6 +3313,36 @@
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -3287,6 +3287,36 @@
<source>publishDurationLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefix</source>
<extracomment>&apos;Prefix for your country&apos; : Label for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixTooptip</source>
<extracomment>&quot;The prefix to use when using numbers without the &apos;+&apos;&quot; : tooltip for a text option to set the country code on the phone numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlus</source>
<extracomment>&quot;Replace &apos;+&apos; by &apos;00&apos;&quot; : Label to an option for escaping the &apos;+&apos; character when dialing.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialEscapePlusTooltip</source>
<extracomment>&apos;Replace + in addresses by 00&apos; : tooltip for an option that allow escaping the &apos;+&apos; character in phone number.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChat</source>
<extracomment>&apos;Apply prefix for outgoing calls and chats&apos; : Label to set an option for applying the specified prefix to outgoings calls and chats.</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<source>dialPrefixCallChatTooltip</source>
<extracomment>&apos;If a number is entered, apply the prefix to number&apos; : tooltip for an option to applying the country prefix to numbers.</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsTunnel</name>

View file

@ -168,7 +168,7 @@ std::shared_ptr<linphone::Address> CallModel::getConferenceAddress () const{
if (mCall->getDir() == linphone::Call::Dir::Incoming){
if( remoteContact != "" )
conferenceAddress = CoreManager::getInstance()->getCore()->interpretUrl(remoteContact);
conferenceAddress = Utils::interpretUrl(Utils::coreStringToAppString(remoteContact));
}else
conferenceAddress = mCall->getRemoteAddress()->clone();
}

View file

@ -136,7 +136,7 @@ void CallsListModel::launchSecureAudioCall (const QString &sipAddress, LinphoneE
CoreManager::getInstance()->getTimelineListModel()->mAutoSelectAfterCreation = true;
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
shared_ptr<linphone::Address> address = core->interpretUrl(Utils::appStringToCoreString(sipAddress));
shared_ptr<linphone::Address> address = Utils::interpretUrl(sipAddress);
if (!address)
return;
@ -180,7 +180,7 @@ void CallsListModel::launchVideoCall (const QString &sipAddress, const QString&
return;
}
shared_ptr<linphone::Address> address = core->interpretUrl(Utils::appStringToCoreString(sipAddress));
shared_ptr<linphone::Address> address = Utils::interpretUrl(sipAddress);
if (!address)
return;
@ -215,7 +215,7 @@ QVariantMap CallsListModel::launchChat(const QString &sipAddress, const int& sec
ChatRoomModel* CallsListModel::createChat (const QString &participantAddress) const{
CoreManager::getInstance()->getTimelineListModel()->mAutoSelectAfterCreation = true;
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
shared_ptr<linphone::Address> address = core->interpretUrl(Utils::appStringToCoreString(participantAddress));
shared_ptr<linphone::Address> address = Utils::interpretUrl(participantAddress);
if (!address)
return nullptr;
@ -248,7 +248,7 @@ ChatRoomModel* CallsListModel::createChat (CallModel * model){
bool CallsListModel::createSecureChat (const QString& subject, const QString &participantAddress) const{
CoreManager::getInstance()->getTimelineListModel()->mAutoSelectAfterCreation = true;
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
shared_ptr<linphone::Address> address = core->interpretUrl(Utils::appStringToCoreString(participantAddress));
shared_ptr<linphone::Address> address = Utils::interpretUrl(participantAddress);
if (!address)
return false;
@ -472,7 +472,7 @@ void CallsListModel::terminateAllCalls () const {
}
void CallsListModel::terminateCall (const QString& sipAddress) const{
auto coreManager = CoreManager::getInstance();
shared_ptr<linphone::Address> address = coreManager->getCore()->interpretUrl(Utils::appStringToCoreString(sipAddress));
shared_ptr<linphone::Address> address = Utils::interpretUrl(sipAddress);
if (!address)
qWarning() << "Cannot terminate Call. The address cannot be parsed : " << sipAddress;
else{

View file

@ -1256,9 +1256,7 @@ void ChatRoomModel::handlePresenceStatusReceived(std::shared_ptr<linphone::Frien
if(contact){
auto friendsAddresses = contact->getVcardModel()->getSipAddresses();
for(auto friendAddress = friendsAddresses.begin() ; !canUpdatePresence && friendAddress != friendsAddresses.end() ; ++friendAddress){
shared_ptr<linphone::Address> lAddress = CoreManager::getInstance()->getCore()->interpretUrl(
Utils::appStringToCoreString(friendAddress->toString())
);
shared_ptr<linphone::Address> lAddress = Utils::interpretUrl(friendAddress->toString());
canUpdatePresence = lAddress->weakEqual(*itContactAddress);
}
}

View file

@ -94,9 +94,7 @@ bool ConferenceHelperModel::ConferenceAddModel::addToConference (const QString &
if (mSipAddresses.contains(sipAddress))
return false;
shared_ptr<linphone::Address> address = CoreManager::getInstance()->getCore()->interpretUrl(
Utils::appStringToCoreString(sipAddress)
);
shared_ptr<linphone::Address> address = Utils::interpretUrl(sipAddress);
if (!address)
return false;

View file

@ -172,6 +172,9 @@ QVariantMap AccountSettingsModel::getAccountDescription (const shared_ptr<linpho
map["publishPresence"] = accountParams->publishEnabled();
map["avpfEnabled"] = accountParams->getAvpfMode() == linphone::AVPFMode::Enabled;
map["registrationState"] = mapLinphoneRegistrationStateToUi(account->getState());
map["dialPrefix"] = Utils::coreStringToAppString(accountParams->getInternationalPrefix());
map["dialPrefixCallChat"] = accountParams->getUseInternationalPrefixForCallsAndChats();
map["dialEscapePlus"] = accountParams->dialEscapePlusEnabled();
shared_ptr<linphone::NatPolicy> natPolicy = accountParams->getNatPolicy();
bool createdNat = !natPolicy;
@ -222,6 +225,16 @@ QString AccountSettingsModel::getLimeServerUrl() const{
return account ? Utils::coreStringToAppString(account->getParams()->getLimeServerUrl()) : "";
}
bool AccountSettingsModel::getUseInternationalPrefixForCallsAndChats() const{
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
if(core){
shared_ptr<linphone::Account> account = core->getDefaultAccount();
if(account)
return account->getParams()->getUseInternationalPrefixForCallsAndChats();
}
return false;
}
void AccountSettingsModel::setDefaultAccount (const shared_ptr<linphone::Account> &account) {
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
if (mSelectedAccount != account) {
@ -351,6 +364,13 @@ bool AccountSettingsModel::addOrUpdateAccount(
? linphone::AVPFMode::Enabled
: linphone::AVPFMode::Default
);
if(data.contains("dialPrefix"))
accountParams->setInternationalPrefix(Utils::appStringToCoreString(data["dialPrefix"].toString()));
if(data.contains("dialPrefixCallChat"))
accountParams->setUseInternationalPrefixForCallsAndChats(data["dialPrefixCallChat"].toBool());
if(data.contains("dialEscapePlus"))
accountParams->enableDialEscapePlus(data["dialEscapePlus"].toBool());
shared_ptr<linphone::NatPolicy> natPolicy = accountParams->getNatPolicy();
bool createdNat = !natPolicy;
@ -401,7 +421,7 @@ bool AccountSettingsModel::addOrUpdateAccount (
) {
shared_ptr<linphone::Account> account;
QString sipAddress = data["sipAddress"].toString();
shared_ptr<linphone::Address> address = CoreManager::getInstance()->getCore()->interpretUrl(sipAddress.toStdString());
shared_ptr<linphone::Address> address = Utils::interpretUrl(sipAddress);
for (const auto &databaseAccount : CoreManager::getInstance()->getAccountList())
if (databaseAccount->getParams()->getIdentityAddress()->weakEqual(address)) {

View file

@ -76,6 +76,7 @@ public:
QString getConferenceUri() const;
QString getVideoConferenceUri() const;
QString getLimeServerUrl() const;
bool getUseInternationalPrefixForCallsAndChats() const;
Q_INVOKABLE void setDefaultAccount (const std::shared_ptr<linphone::Account> &account = nullptr);
Q_INVOKABLE void setDefaultAccountFromSipAddress (const QString &sipAddress);

View file

@ -192,9 +192,7 @@ QString SipAddressesModel::addTransportToSipAddress (const QString &sipAddress,
// -----------------------------------------------------------------------------
QString SipAddressesModel::interpretSipAddress (const QString &sipAddress, bool checkUsername) {
shared_ptr<linphone::Address> lAddress = CoreManager::getInstance()->getCore()->interpretUrl(
Utils::appStringToCoreString(sipAddress)
);
shared_ptr<linphone::Address> lAddress = Utils::interpretUrl(sipAddress);
if (lAddress && (!checkUsername || !lAddress->getUsername().empty()))
return Utils::coreStringToAppString(lAddress->asStringUriOnly());

View file

@ -38,6 +38,21 @@ void LinphoneEnums::registerMetaTypes(){
qRegisterMetaType<LinphoneEnums::RecorderState>();
qRegisterMetaType<LinphoneEnums::TunnelMode>();
qRegisterMetaType<LinphoneEnums::TransportType>();
qRegisterMetaType<std::shared_ptr<linphone::Call>>();
qRegisterMetaType<linphone::Call::State>();
qRegisterMetaType<std::shared_ptr<linphone::Core>>();
qRegisterMetaType<linphone::ConfiguringState>();
qRegisterMetaType<std::string>();
qRegisterMetaType<linphone::GlobalState>();
qRegisterMetaType<std::shared_ptr<linphone::ChatRoom>>();
qRegisterMetaType<linphone::ChatRoom::State>();
qRegisterMetaType<linphone::RegistrationState>();
qRegisterMetaType<linphone::VersionUpdateCheckResult>();
qRegisterMetaType<std::shared_ptr<linphone::CallLog>>();
qRegisterMetaType<std::shared_ptr<const linphone::CallStats>>();
qRegisterMetaType<std::shared_ptr<linphone::EventLog>>();
qRegisterMetaType<std::shared_ptr<linphone::ChatMessage>>();
}
linphone::MediaEncryption LinphoneEnums::toLinphone(const LinphoneEnums::MediaEncryption& data){

View file

@ -231,4 +231,20 @@ Q_DECLARE_METATYPE(LinphoneEnums::RecorderState)
Q_DECLARE_METATYPE(LinphoneEnums::TunnelMode)
Q_DECLARE_METATYPE(LinphoneEnums::TransportType)
Q_DECLARE_METATYPE(std::shared_ptr<linphone::Call>)
Q_DECLARE_METATYPE(linphone::Call::State)
Q_DECLARE_METATYPE(std::shared_ptr<linphone::Core>)
Q_DECLARE_METATYPE(linphone::ConfiguringState)
Q_DECLARE_METATYPE(std::string)
Q_DECLARE_METATYPE(linphone::GlobalState)
Q_DECLARE_METATYPE(std::shared_ptr<linphone::ChatRoom>)
Q_DECLARE_METATYPE(linphone::ChatRoom::State)
Q_DECLARE_METATYPE(linphone::RegistrationState)
Q_DECLARE_METATYPE(linphone::VersionUpdateCheckResult)
Q_DECLARE_METATYPE(std::shared_ptr<linphone::CallLog>)
Q_DECLARE_METATYPE(std::shared_ptr<const linphone::CallStats>)
Q_DECLARE_METATYPE(std::shared_ptr<linphone::EventLog>)
Q_DECLARE_METATYPE(std::shared_ptr<linphone::ChatMessage>)
#endif

View file

@ -64,12 +64,13 @@ constexpr int SafeFilePathLimit = 100;
}
std::shared_ptr<linphone::Address> Utils::interpretUrl(const QString& address){
auto interpretedAddress = CoreManager::getInstance()->getCore()->interpretUrl(Utils::appStringToCoreString(address), true);
bool usePrefix = CoreManager::getInstance()->getAccountSettingsModel()->getUseInternationalPrefixForCallsAndChats();
auto interpretedAddress = CoreManager::getInstance()->getCore()->interpretUrl(Utils::appStringToCoreString(address), usePrefix);
if(!interpretedAddress){// Try by removing scheme.
QStringList splitted = address.split(":");
if(splitted.size() > 0 && splitted[0] == "sip"){
splitted.removeFirst();
interpretedAddress = CoreManager::getInstance()->getCore()->interpretUrl(Utils::appStringToCoreString(splitted.join(":")), true);
interpretedAddress = CoreManager::getInstance()->getCore()->interpretUrl(Utils::appStringToCoreString(splitted.join(":")), usePrefix);
}
}
return interpretedAddress;

View file

@ -23,7 +23,7 @@ RowLayout {
id: label
computeFitWidth: parent.fitLabel
Layout.preferredHeight: FormHGroupStyle.legend.height
Layout.preferredWidth: fitLabel ? Math.min(label.fitWidth, FormHGroupStyle.legend.width) : FormHGroupStyle.legend.width
Layout.preferredWidth: fitLabel ? label.fitWidth : FormHGroupStyle.legend.width
color: FormHGroupStyle.legend.colorModel.color
elide: Text.ElideRight

View file

@ -120,7 +120,7 @@ ColumnLayout {
color: ContactsStyle.contact.presence.colorModel.color
elide: Text.ElideRight
font.pointSize: ContactsStyle.contact.presence.pointSize
text: presenceLevel.presenceText
text: presenceLevel.text
visible: presenceLevel.visible
}
}

View file

@ -59,6 +59,11 @@ function initForm (account) {
registerEnabled.checked = config.registerEnabled
publishPresence.checked = config.publishPresence
avpfEnabled.checked = config.avpfEnabled
dialPrefixCallChat.checked = config.dialPrefixCallChat
dialPrefix.text = config.dialPrefix
dialEscapePlus.checked = config.dialEscapePlus
iceEnabled.checked = config.iceEnabled
turnEnabled.checked = config.turnEnabled
stunServer.text = config.stunServer
@ -95,6 +100,9 @@ function validAccount (account) {
registerEnabled: registerEnabled.checked,
publishPresence: publishPresence.checked,
avpfEnabled: avpfEnabled.checked,
dialPrefix: dialPrefix.text,
dialPrefixCallChat: dialPrefixCallChat.checked,
dialEscapePlus: dialEscapePlus.checked,
iceEnabled: iceEnabled.checked,
turnEnabled: turnEnabled.checked,
stunServer: stunServer.text,

View file

@ -1,4 +1,5 @@
import QtQuick 2.7
import QtQuick.Layouts 1.3
import Common 1.0
@ -254,6 +255,58 @@ DialogPlus {
}
}
}
FormLine {
FormGroup {
//: 'Prefix for your country' : Label for a text option to set the country code on the phone numbers.
label: qsTr('dialPrefix')
NumericField {
id: dialPrefix
Keys.onEnterPressed: route.forceActiveFocus()
Keys.onReturnPressed: route.forceActiveFocus()
TooltipArea{
tooltipParent: dialPrefix
//: "The prefix to use when using numbers without the '+'" : tooltip for a text option to set the country code on the phone numbers.
text: qsTr('dialPrefixTooptip')
}
}
}
FormGroup {
//: "Replace '+' by '00'" : Label to an option for escaping the '+' character when dialing.
label: qsTr('dialEscapePlus')
Switch {
id: dialEscapePlus
onClicked: checked = !checked
TooltipArea{
tooltipParent: dialEscapePlus
//: 'Replace + in addresses by 00' : tooltip for an option that allow escaping the '+' character in phone number.
text: qsTr('dialEscapePlusTooltip')
}
}
}
}
FormLine{
maxItemWidth: width / 2
FormGroup {
//: 'Apply prefix for outgoing calls and chats' : Label to set an option for applying the specified prefix to outgoings calls and chats.
label: qsTr('dialPrefixCallChat')
fitLabel: true
maxWidth: parent.width
Switch {
id: dialPrefixCallChat
onClicked: checked = !checked
TooltipArea{
tooltipParent: dialPrefixCallChat
//: 'If a number is entered, apply the prefix to number' : tooltip for an option to applying the country prefix to numbers.
text: qsTr('dialPrefixCallChatTooltip')
}
}
}
}
}
// -----------------------------------------------------------------------