*** 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 ee7ca7b0cb28e065ce080502edfac24c8e71132a..fd4aafe75902bccb2da1f9c4ca7f69b5a0c4e5c9 100644 (file)
@@ -366,12 +366,12 @@ class Entry
     def get_beautified_name
         if type == 'image'
             size = get_image_size(path)
     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
                                              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
                                              commify(file_size(path)/1024)]
         end
     end