Add translation support to flash messages

Added simple call to trans so that flash messages are passed into the translator for enabling them to be translated.