Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-06-06 09:23:08 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-07-01 12:51:13 (GMT)
commit747a76d146c63f258f55d94e67814ab76cb70fca (patch)
treed7697df36732eeb10a21f5726112960f85f8aba1
parent98a817cbad2d69be7b3c1827ad32ece47a33dc34 (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.
-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)))