'Returns translatable message in the current language with all attributes applied'

def get_format_message(self):

    strings = self.get_format_strings()
    result = ''
    if self.format_message:
        result = self.format_message
    if (result and strings):
        try:
            translated = []
            for item in strings:
                if item:
                    translated.append(_(item))
                else:
                    translated.append(_('None'))
            result = (_(self.format_message) % tuple(translated))
        except TypeError:
            try:
                result = (self.format_message % tuple(strings))
            except TypeError:
                pass
    return result
