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
6d2ea931
Commit
6d2ea931
authored
13 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
plugin_installer.make some string translatable
parent
b465ce65
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
plugins/plugin_installer/plugin_installer.py
+7
-7
7 additions, 7 deletions
plugins/plugin_installer/plugin_installer.py
with
7 additions
and
7 deletions
plugins/plugin_installer/plugin_installer.py
+
7
−
7
View file @
6d2ea931
...
...
@@ -175,7 +175,7 @@ class PluginInstaller(GajimPlugin):
for
i
in
xrange
(
len
(
self
.
available_plugins_model
)):
self
.
available_plugins_model
[
i
][
4
]
=
False
self
.
progressbar
.
hide
()
WarningDialog
(
'
Ftp error
'
,
error_text
,
self
.
window
)
WarningDialog
(
_
(
'
Ftp error
'
)
,
error_text
,
self
.
window
)
def
on_plugin_downloaded
(
self
,
widget
,
plugin_dirs
):
for
_dir
in
plugin_dirs
:
...
...
@@ -212,7 +212,7 @@ class PluginInstaller(GajimPlugin):
self
.
installed_plugins_model
.
append
([
plugin
,
plugin
.
name
,
is_active
])
dialog
=
HigDialog
(
None
,
gtk
.
MESSAGE_INFO
,
gtk
.
BUTTONS_OK
,
''
,
'
All selected plugins downloaded
'
)
''
,
_
(
'
All selected plugins downloaded
'
)
)
dialog
.
set_modal
(
False
)
dialog
.
set_transient_for
(
self
.
window
)
dialog
.
popup
()
...
...
@@ -334,7 +334,7 @@ class Ftp(threading.Thread):
def
run
(
self
):
try
:
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Connecting to server
'
)
_
(
'
Connecting to server
'
)
)
self
.
ftp
=
ftplib
.
FTP
(
self
.
server
)
self
.
ftp
.
login
()
self
.
ftp
.
cwd
(
'
plugins
'
)
...
...
@@ -342,12 +342,12 @@ class Ftp(threading.Thread):
self
.
plugins_dirs
=
self
.
ftp
.
nlst
()
progress_step
=
1.0
/
len
(
self
.
plugins_dirs
)
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Scan files on the server
'
)
_
(
'
Scan files on the server
'
)
)
for
dir_
in
self
.
plugins_dirs
:
fract
=
self
.
progressbar
.
get_fraction
()
+
progress_step
gobject
.
idle_add
(
self
.
progressbar
.
set_fraction
,
fract
)
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Read
"
%s
"'
%
dir_
)
_
(
'
Read
"
%s
"'
)
%
dir_
)
try
:
self
.
ftp
.
retrbinary
(
'
RETR %s/manifest.ini
'
%
dir_
,
self
.
handleDownload
)
...
...
@@ -378,7 +378,7 @@ class Ftp(threading.Thread):
def
download_plugin
(
self
):
gobject
.
idle_add
(
self
.
progressbar
.
show
)
self
.
pulse
=
gobject
.
timeout_add
(
150
,
self
.
progressbar_pulse
)
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Create a list of files
'
)
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
_
(
'
Create a list of files
'
)
)
for
remote_dir
in
self
.
remote_dirs
:
def
nlstr
(
dir_
,
subdir
=
None
):
...
...
@@ -422,7 +422,7 @@ class Ftp(threading.Thread):
# downloading files
for
filename
in
files
:
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Downloading
"
%s
"'
%
filename
)
_
(
'
Downloading
"
%s
"'
)
%
filename
)
full_filename
=
os
.
path
.
join
(
local_dir
,
filename
)
try
:
self
.
ftp
.
retrbinary
(
'
RETR /%s
'
%
filename
,
...
...
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