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
e2941484
Commit
e2941484
authored
Jul 10, 2023
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated text for translation and only print filename
parent
d0dfc935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
chatwindow.py
blink/chatwindow.py
+3
-3
No files found.
blink/chatwindow.py
View file @
e2941484
...
@@ -2599,18 +2599,18 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
...
@@ -2599,18 +2599,18 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
if
is_audio_message
:
if
is_audio_message
:
text
=
translate
(
'chat_window'
,
'You sent an audio message. Fetching and processing...'
)
text
=
translate
(
'chat_window'
,
'You sent an audio message. Fetching and processing...'
)
else
:
else
:
text
=
translate
(
'chat_window'
,
'You sent an image:
%
s. Fetching and processing...'
)
%
file
.
decrypted_filename
text
=
translate
(
'chat_window'
,
'You sent an image:
%
s. Fetching and processing...'
)
%
os
.
path
.
basename
(
file
.
decrypted_filename
)
else
:
else
:
if
is_audio_message
:
if
is_audio_message
:
text
=
translate
(
'chat_window'
,
'Sent you an audio message. Processing...'
)
text
=
translate
(
'chat_window'
,
'Sent you an audio message. Processing...'
)
else
:
else
:
text
=
translate
(
'chat_window'
,
'Sent you an image:
%
s. Processing...'
)
%
file
.
decrypted_filename
text
=
translate
(
'chat_window'
,
'Sent you an image:
%
s. Processing...'
)
%
os
.
path
.
basename
(
file
.
decrypted_filename
)
content
=
f
'<img src={session.chat_widget.encrypted_icon.filename} class="inline-message-icon">{text}'
content
=
f
'<img src={session.chat_widget.encrypted_icon.filename} class="inline-message-icon">{text}'
if
not
file
.
already_exists
:
if
not
file
.
already_exists
:
if
file
.
encrypted
and
not
blink_session
.
fake_streams
.
get
(
'messages'
)
.
can_decrypt
:
if
file
.
encrypted
and
not
blink_session
.
fake_streams
.
get
(
'messages'
)
.
can_decrypt
:
content
=
translate
(
'chat_window'
,
"
%
s can't be decrypted. PGP is disabled"
%
(
os
.
path
.
basename
(
file
.
decrypted_filename
))
)
content
=
translate
(
'chat_window'
,
"
%
s can't be decrypted. PGP is disabled"
)
%
os
.
path
.
basename
(
file
.
decrypted_filename
)
return
content
return
content
if
from_history
:
if
from_history
:
...
...
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