Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
26334c70
Commit
26334c70
authored
16 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix some coding standards and remove + to merge strings in translated strings. fixes #4211
parent
fc8d21fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/chat_control.py
+11
-13
11 additions, 13 deletions
src/chat_control.py
with
11 additions
and
13 deletions
src/chat_control.py
+
11
−
13
View file @
26334c70
...
...
@@ -1827,23 +1827,20 @@ class ChatControl(ChatControlBase):
if
self
.
session
and
self
.
session
.
enable_encryption
:
# ESessions
if
not
encrypted
:
msg
=
_
(
'
The following message was
'
+
\
'
NOT encrypted
'
)
ChatControlBase
.
print_conversation_line
(
self
,
msg
,
'
status
'
,
''
,
tim
)
msg
=
_
(
'
The following message was NOT encrypted
'
)
ChatControlBase
.
print_conversation_line
(
self
,
msg
,
'
status
'
,
''
,
tim
)
else
:
# GPG encryption
if
encrypted
and
not
self
.
gpg_is_active
:
msg
=
_
(
'
The following message was
'
+
\
'
encrypted
'
)
ChatControlBase
.
print_conversation_line
(
self
,
msg
,
'
status
'
,
''
,
tim
)
msg
=
_
(
'
The following message was encrypted
'
)
ChatControlBase
.
print_conversation_line
(
self
,
msg
,
'
status
'
,
''
,
tim
)
self
.
_toggle_gpg
()
elif
not
encrypted
and
self
.
gpg_is_active
:
msg
=
_
(
'
The following message was
'
+
\
'
NOT encrypted
'
)
ChatControlBase
.
print_conversation_line
(
self
,
msg
,
'
status
'
,
''
,
tim
)
msg
=
_
(
'
The following message was NOT encrypted
'
)
ChatControlBase
.
print_conversation_line
(
self
,
msg
,
'
status
'
,
''
,
tim
)
if
not
frm
:
kind
=
'
incoming
'
name
=
contact
.
get_shown_name
()
...
...
@@ -1853,7 +1850,8 @@ class ChatControl(ChatControlBase):
else
:
kind
=
'
outgoing
'
name
=
gajim
.
nicks
[
self
.
account
]
if
not
xhtml
and
not
encrypted
and
gajim
.
config
.
get
(
'
rst_formatting_outgoing_messages
'
):
if
not
xhtml
and
not
encrypted
and
gajim
.
config
.
get
(
'
rst_formatting_outgoing_messages
'
):
xhtml
=
create_xhtml
(
text
)
if
xhtml
:
xhtml
=
'
<body xmlns=
"
%s
"
>%s</body>
'
%
(
NS_XHTML
,
xhtml
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment