def validate_commit_message(val):
 try:
  (val % {'language': 'cs', 'language_name': 'Czech', 'project': 'Weblate', 'subproject': 'master', 'total': 200, 'fuzzy': 20, 'fuzzy_percent': 10.0, 'translated': 40, 'translated_percent': 20.0})
 except Exception as error:
  raise ValidationError((_('Bad format string (%s)') % str(error)))

def validate_commit_message ( val ) : try : ( val % { 'language' : 'cs' , 'language_name' : 'Czech' , 'project' : 'Weblate' , 'subproject' : 'master' , 'total' : 200 , 'fuzzy' : 20 , 'fuzzy_percent' : 10.0 , 'translated' : 40 , 'translated_percent' : 20.0 } ) except Exception as error : raise ValidationError ( ( _ ( 'Bad format string (%s)' ) % str ( error ) ) )
validates that commit message is a valid format string .