*** empty log message ***
authorgc <gc>
Sun, 16 Mar 2008 22:50:18 +0000 (22:50 +0000)
committergc <gc>
Sun, 16 Mar 2008 22:50:18 +0000 (22:50 +0000)
bin/booh-classifier

index ee7ca7b..fd4aafe 100644 (file)
@@ -366,12 +366,12 @@ class Entry
     def get_beautified_name
         if type == 'image'
             size = get_image_size(path)
-            return _("%s (%sx%s, %s KB)") % [File.basename(@path).gsub(/\.[^.]+$/, ''),
+            return _("%s (%sx%s, %s KB)") % [@path[$workingdir.length + 1 .. -1].gsub(/\.[^.]+$/, ''),
                                              size[:x],
                                              size[:y],
                                              commify(file_size(path)/1024)]
         else
-            return _("%s (video - %s KB)") % [File.basename(@path).gsub(/\.[^.]+$/, ''),
+            return _("%s (video - %s KB)") % [@path[$workingdir.length + 1 .. -1].gsub(/\.[^.]+$/, ''),
                                              commify(file_size(path)/1024)]
         end
     end