@register.function
def summarize_validation(validation):
 errors = ngettext('{0} error', '{0} errors', validation.errors).format(validation.errors)
 warnings = ngettext('{0} warning', '{0} warnings', validation.warnings).format(validation.warnings)
 return ('%s, %s' % (errors, warnings))

@ register . function def summarize_validation ( validation ) : errors = ngettext ( '{0} error' , '{0} errors' , validation . errors ) . format ( validation . errors ) warnings = ngettext ( '{0} warning' , '{0} warnings' , validation . warnings ) . format ( validation . warnings ) return ( '%s, %s' % ( errors , warnings ) )
readable summary of add-on validation results .