Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
gajim
gajim
Commits
8416724b
Commit
8416724b
authored
Aug 21, 2019
by
Daniel Brötzmann
Committed by
Philipp Hörist
Aug 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HistorySync: Fix some strings
parent
e00ae564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
gajim/gtk/history_sync.py
gajim/gtk/history_sync.py
+7
-17
No files found.
gajim/gtk/history_sync.py
View file @
8416724b
...
...
@@ -206,7 +206,7 @@ def __init__(self, assistant):
self
.
set_spacing
(
18
)
self
.
assistant
=
assistant
label
=
Gtk
.
Label
(
label
=
_
(
'How far back
do you want to synchronize chat history
?'
))
label
=
_
(
'How far back
should the chat history be synchronised
?'
))
listbox
=
Gtk
.
ListBox
()
listbox
.
set_hexpand
(
False
)
...
...
@@ -258,7 +258,7 @@ def set_fraction(self):
'received'
:
self
.
received
,
'max'
:
self
.
count
}))
else
:
self
.
progress
.
pulse
()
self
.
progress
.
set_text
(
_
(
'Downloaded %s
M
essages'
%
self
.
received
))
self
.
progress
.
set_text
(
_
(
'Downloaded %s
m
essages'
%
self
.
received
))
def
finished
(
self
):
self
.
progress
.
set_fraction
(
1
)
...
...
@@ -278,25 +278,15 @@ def __init__(self, assistant):
def
finished
(
self
):
received
=
self
.
assistant
.
download_history
.
received
finished
=
_
(
'''
Finished synchronising your History.
{received} Messages downloaded.
'''
.
format
(
received
=
received
))
self
.
label
.
set_text
(
finished
)
self
.
label
.
set_text
(
_
(
'Finished synchronising chat history:
\n
'
'%s messages downloaded'
%
received
))
def
nothing_to_do
(
self
):
nothing_to_do
=
_
(
'''
Gajim is fully synchronised
with the Archive.
'''
)
self
.
label
.
set_text
(
nothing_to_do
)
self
.
label
.
set_text
(
_
(
'Gajim is fully synchronised with the archive.'
))
def
query_already_running
(
self
):
already_running
=
_
(
'''
There is already a synchronisation in
progress. Please try later.
'''
)
self
.
label
.
set_text
(
already_running
)
self
.
label
.
set_text
(
_
(
'There is already a synchronisation in '
'progress. Please try again later.'
))
class
TimeOption
(
Gtk
.
Label
):
...
...
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