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