Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-06-06 09:23:08 (GMT)
committer Simon Schampijer <simon@laptop.org>2011-07-01 12:16:55 (GMT)
commitdacaff710a699383988d4dd6ad2fa483c040a0b7 (patch)
tree54fc2817bf8666fa24d180ad6fa7ed7eac99dcf2 /src
parentbad94cfcccf66b77ab1246ea5bdb9799351525d0 (diff)
Use the same wording for the filesize of an entry without a file SL #2880
The change has no impact on existing translations, since we use as well util.format_size when no filesize is specified.
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/journal/listmodel.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jarabe/journal/listmodel.py b/src/jarabe/journal/listmodel.py
index 3902eba..417ff61 100644
--- a/src/jarabe/journal/listmodel.py
+++ b/src/jarabe/journal/listmodel.py
@@ -163,9 +163,8 @@ class ListModel(gtk.GenericTreeModel, gtk.TreeDragSource):
try:
size = int(metadata.get('filesize'))
except (TypeError, ValueError):
- self._cached_row.append(_('Unknown'))
- else:
- self._cached_row.append(util.format_size(size))
+ size = None
+ self._cached_row.append(util.format_size(size))
try:
progress = int(float(metadata.get('progress', 100)))