def translate(self, message, locale):
translations = self.get_translations(locale)<EOL>if message in translations:<EOL><INDENT>return translations[message]<EOL><DEDENT>return message<EOL>
Translate
Translates a message to the given locale language. Will return original
message if no translation exists for the message.

:param message:         str, a message to translate
:param locale:          str, locale or language code
:return:                str, translated (if possible)