Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-03-30 12:06:19 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-03-30 12:06:19 (GMT)
commit0a0bddd5ef26b7819ab0b4f4b8f80bcd9724904d (patch)
treef9d1d4403191e35890f893a316078af5fb962129 /utils.py
parente763b4dccec41c21e5c37e167fc082e38eaf6d3b (diff)
add download system
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index bfa60a0..60a5647 100644
--- a/utils.py
+++ b/utils.py
@@ -139,12 +139,12 @@ def download_activity(_id, progress_function):
xo = name + '-' + version + '.xo'
file_path = os.path.join(activity.get_activity_root(), "data", xo)
- _logger.info("Downloading activity (%s)")
+ _logger.info(_("Downloading activity (%s)") % name)
urllib.urlretrieve(web,
file_path,
reporthook=progress_changed)
- _logger.info("Installing activity (%s)")
+ _logger.info(_("Installing activity (%s)") % name)
install_activity(file_path, progress_function)
@@ -163,4 +163,5 @@ def install_activity(xofile, progress_function):
# Show "Installed..." message
progress_function(200)
- _logger.info("Activity installed! (%s)")
+ _logger.info(_("Activity installed!"))
+