Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
12496b05
Commit
12496b05
authored
Oct 18, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added/changes some translatable strings
parent
af5d30ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
preferences.py
blink/preferences.py
+2
-2
zrtp.py
blink/widgets/zrtp.py
+2
-2
No files found.
blink/preferences.py
View file @
12496b05
...
...
@@ -39,7 +39,7 @@ class LanguageError(Exception): pass
class
Language
(
object
):
filename_regex
=
re
.
compile
(
r'(\w+)_(\w+).*\.(\w+$)'
)
mapping
=
{
"default"
:
"
System default
"
,
mapping
=
{
"default"
:
"
Automatic (Default)
"
,
"en"
:
"English"
,
"nl"
:
"Nederlands"
,
"ro"
:
"Română"
}
...
...
@@ -473,7 +473,7 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton):
# Languages
self
.
language_button
.
clear
()
languages_path
=
Resources
.
get
(
'i18n'
)
self
.
language_button
.
addItem
(
translate
(
'preferences_window'
,
'
System Default
'
),
Language
(
'default'
))
self
.
language_button
.
addItem
(
translate
(
'preferences_window'
,
'
Automatic (Default)
'
),
Language
(
'default'
))
self
.
language_button
.
addItem
(
'English'
,
Language
(
'en'
))
for
language_file
in
os
.
listdir
(
languages_path
):
try
:
...
...
blink/widgets/zrtp.py
View file @
12496b05
...
...
@@ -44,10 +44,10 @@ class ZRTPWidget(base_class, ui_class):
def
_set_peer_verified
(
self
,
verified
):
self
.
__dict__
[
'peer_verified'
]
=
verified
if
verified
:
self
.
validate_button
.
setText
(
'Invalidate'
)
self
.
validate_button
.
setText
(
translate
(
'zrtp_widget'
,
'Invalidate'
)
)
self
.
status_value
.
setText
(
translate
(
'zrtp_widget'
,
'<span style="color: hsv(100, 85
%
, 100
%
);">Verified</span>'
))
else
:
self
.
validate_button
.
setText
(
'Validate'
)
self
.
validate_button
.
setText
(
translate
(
'zrtp_widget'
,
'Validate'
)
)
self
.
status_value
.
setText
(
translate
(
'zrtp_widget'
,
'<span style="color: hsv(20, 85
%
, 100
%
);">Not verified</span>'
))
self
.
validate_button
.
setChecked
(
verified
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment