# File app/models/document.rb, line 40
  def human_size
    s = self.size.to_f # So in the divisions we don't lose the decimals
    return _('%.2f GB') % (s/(1024*1024*1024)) if size > 1024*1024*1024
    return _('%.2f MB') % (s/(1024*1024)) if size > 1024*1024
    return _('%.2f KB') % (s/1024) if size > 1024
    return _('%d bytes') % s
  end