fixed missing translation function for attachments