Commit e2941484 authored by Tijmen de Mes's avatar Tijmen de Mes

Updated text for translation and only print filename

parent d0dfc935
......@@ -2599,18 +2599,18 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
if is_audio_message:
text = translate('chat_window', 'You sent an audio message. Fetching and processing...')
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:
if is_audio_message:
text = translate('chat_window', 'Sent you an audio message. Processing...')
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}'
if not file.already_exists:
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
if from_history:
......
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