Commit 85c6f081 authored by Tijmen de Mes's avatar Tijmen de Mes

Spellcheck and added translations

parent a7ae7556
......@@ -1969,10 +1969,10 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
if 'session' in elements:
self.account_value_label.setText(blink_session.account.id)
self.remote_agent_value_label.setText(session_info.remote_user_agent or 'N/A')
self.remote_agent_value_label.setText(session_info.remote_user_agent or translate('chat_window', 'N/A'))
if 'media' in elements:
self.audio_value_label.setText(audio_info.codec or 'N/A')
self.audio_value_label.setText(audio_info.codec or translate('chat_window', 'N/A'))
if audio_info.ice_status == 'succeeded':
if 'relay' in {candidate.type.lower() for candidate in (audio_info.local_rtp_candidate, audio_info.remote_rtp_candidate)}:
self.audio_connection_label.setPixmap(self.pixmaps.relay_connection)
......@@ -2006,7 +2006,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
self.audio_connection_label.setVisible(audio_info.remote_address is not None)
self.audio_encryption_label.setVisible(audio_info.encryption is not None)
self.video_value_label.setText(video_info.codec or 'N/A')
self.video_value_label.setText(video_info.codec or translate('chat_window', 'N/A'))
if video_info.ice_status == 'succeeded':
if 'relay' in {candidate.type.lower() for candidate in (video_info.local_rtp_candidate, video_info.remote_rtp_candidate)}:
self.video_connection_label.setPixmap(self.pixmaps.relay_connection)
......@@ -2861,7 +2861,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
else:
incoming_traffic = TrafficNormalizer.normalize(self.incoming_traffic_graph.last_value * 8, bits_per_second=True)
outgoing_traffic = TrafficNormalizer.normalize(self.outgoing_traffic_graph.last_value * 8, bits_per_second=True)
self.traffic_label.setText(translate('chat_window', """<p>Traffic: <span style="font-family: sans-serif; color: #d70000;">\u2193</span> %s <span style="font-family: sans-serif; color: #0064d7;">\u2191</span> %s</p>""") % (incoming_traffic, outgoing_traffic))
self.traffic_label.setText(translate('chat_window', """<p>Traffic: <span style="font-family: sans-serif; color: #d70000;">%s</span> %s <span style="font-family: sans-serif; color: #0064d7;">%s</span> %s</p>""") % ("\u2193", incoming_traffic, "\u2191", outgoing_traffic))
def _SH_MuteButtonClicked(self, checked):
settings = SIPSimpleSettings()
......
......@@ -526,6 +526,11 @@ All rights reserved.</source>
<source>Using SIP Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../blink/chatwindow.py" line="2141"/>
<source>N/A</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../blink/chatwindow.py" line="2148"/>
<source>Peer to peer</source>
......@@ -561,11 +566,6 @@ All rights reserved.</source>
<source>Media is not encrypted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../blink/chatwindow.py" line="2141"/>
<source>N/A</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../blink/chatwindow.py" line="2107"/>
<source>Media is encrypted using TLS and {0.encryption} ({0.encryption_cipher})</source>
......@@ -633,7 +633,7 @@ All rights reserved.</source>
</message>
<message>
<location filename="../../blink/chatwindow.py" line="2965"/>
<source>&lt;p&gt;Traffic: &lt;span style=&quot;font-family: sans-serif; color: #d70000;&quot;&gt;u2193&lt;/span&gt; %s &lt;span style=&quot;font-family: sans-serif; color: #0064d7;&quot;&gt;u2191&lt;/span&gt; %s&lt;/p&gt;</source>
<source>&lt;p&gt;Traffic: &lt;span style=&quot;font-family: sans-serif; color: #d70000;&quot;&gt;%s&lt;/span&gt; %s &lt;span style=&quot;font-family: sans-serif; color: #0064d7;&quot;&gt;%s&lt;/span&gt; %s&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
</context>
......@@ -3100,7 +3100,7 @@ Audio with verified ZRTP is needed for the SMP verification to be available.</so
</message>
<message>
<location filename="../preferences.ui" line="3625"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Clicke to enable verification of peer certificate. Yoiu can set the name to be verified in Advanced SIP account settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Click to enable verification of peer certificate. You can set the name to be verified in Advanced SIP account settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
......
......@@ -633,7 +633,7 @@ All rights reserved.</source>
</message>
<message>
<location filename="../../blink/chatwindow.py" line="2965"/>
<source>&lt;p&gt;Traffic: &lt;span style=&quot;font-family: sans-serif; color: #d70000;&quot;&gt;u2193&lt;/span&gt; %s &lt;span style=&quot;font-family: sans-serif; color: #0064d7;&quot;&gt;u2191&lt;/span&gt; %s&lt;/p&gt;</source>
<source>&lt;p&gt;Traffic: &lt;span style=&quot;font-family: sans-serif; color: #d70000;&quot;&gt;%s&lt;/span&gt; %s &lt;span style=&quot;font-family: sans-serif; color: #0064d7;&quot;&gt;%s&lt;/span&gt; %s&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
</context>
......@@ -3098,11 +3098,6 @@ Audio with verified ZRTP is needed for the SMP verification to be available.</so
<source>TLS settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../preferences.ui" line="3625"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Clicke to enable verification of peer certificate. Yoiu can set the name to be verified in Advanced SIP account settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../preferences.ui" line="3628"/>
<source>Verify server</source>
......@@ -3293,6 +3288,11 @@ Audio with verified ZRTP is needed for the SMP verification to be available.</so
<source>Automatic (Default)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../preferences.ui" line="3625"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Click to enable verification of peer certificate. You can set the name to be verified in Advanced SIP account settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>presence_state</name>
......
......@@ -3622,7 +3622,7 @@
<item row="2" column="2">
<widget class="QCheckBox" name="tls_verify_server_button">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Clicke to enable verification of peer certificate. Yoiu can set the name to be verified in Advanced SIP account settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Click to enable verification of peer certificate. You can set the name to be verified in Advanced SIP account settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Verify server</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment