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
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
98f07508
Commit
98f07508
authored
4 years ago
by
Daniel Brötzmann
Browse files
Options
Downloads
Patches
Plain Diff
GroupChatInfo: Use f-strings, make label translatable
parent
c8333171
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
gajim/gtk/groupchat_info.py
+4
-4
4 additions, 4 deletions
gajim/gtk/groupchat_info.py
with
4 additions
and
4 deletions
gajim/gtk/groupchat_info.py
+
4
−
4
View file @
98f07508
...
...
@@ -136,7 +136,7 @@ def set_author(self, author, epoch_timestamp=None):
has_author
=
bool
(
author
)
if
has_author
and
epoch_timestamp
is
not
None
:
time_
=
time
.
strftime
(
'
%c
'
,
time
.
localtime
(
epoch_timestamp
))
author
=
'
{
} - {}
'
.
format
(
author
,
time_
)
author
=
f
'
{
author
}
-
{
time_
}
'
self
.
_ui
.
author
.
set_text
(
author
or
''
)
self
.
_ui
.
author
.
set_visible
(
has_author
)
...
...
@@ -202,7 +202,7 @@ def set_from_disco_info(self, info):
# Set discussion logs
has_log_uri
=
bool
(
info
.
muc_log_uri
)
self
.
_ui
.
logs
.
set_uri
(
info
.
muc_log_uri
or
''
)
self
.
_ui
.
logs
.
set_label
(
'
Website
'
)
self
.
_ui
.
logs
.
set_label
(
_
(
'
Website
'
)
)
self
.
_ui
.
logs
.
set_visible
(
has_log_uri
)
self
.
_ui
.
logs_label
.
set_visible
(
has_log_uri
)
...
...
@@ -244,7 +244,7 @@ def _add_features(self, features):
def
_on_copy_address
(
self
,
_button
):
clipboard
=
Gtk
.
Clipboard
.
get
(
Gdk
.
SELECTION_CLIPBOARD
)
clipboard
.
set_text
(
f
'
xmpp:
{
str
(
self
.
_info
.
jid
)
}
?join
'
,
-
1
)
clipboard
.
set_text
(
f
'
xmpp:
{
self
.
_info
.
jid
}
?join
'
,
-
1
)
@staticmethod
def
_on_activate_log_link
(
button
):
...
...
@@ -252,7 +252,7 @@ def _on_activate_log_link(button):
return
Gdk
.
EVENT_STOP
def
_on_activate_contact_link
(
self
,
button
):
open_uri
(
'
xmpp:
%s?message
'
%
button
.
get_uri
(),
account
=
self
.
_account
)
open_uri
(
f
'
xmpp:
{
button
.
get_uri
()
}
?message
'
,
account
=
self
.
_account
)
return
Gdk
.
EVENT_STOP
@staticmethod
...
...
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