code: def report_problems(filename, problems):
      
      problem_file = filename.replace(".po", ".prob")
      id_filler = textwrap.TextWrapper(width=79, initial_indent="  msgid: ", subsequent_indent=" " * 9)
      tx_filler = textwrap.TextWrapper(width=79, initial_indent="  -----> ", subsequent_indent=" " * 9)
      with codecs.open(problem_file, "w", encoding="utf8") as prob_file:
          for problem in problems:
              desc, msgid = problem[:2]
              prob_file.write(u"{}\n{}\n".format(desc, id_filler.fill(msgid)))
              info = u"{}\n{}\n".format(desc, id_filler.fill(msgid))
              for translation in problem[2:]:
                  prob_file.write(u"{}\n".format(tx_filler.fill(translation)))
                  info += u"{}\n".format(tx_filler.fill(translation))
              log.info(info)
              prob_file.write(u"\n")
  
      log.error(" %s problems in %s, details in .prob file", len(problems), filename)
docs: Report on the problems found in `filename`.
  
      `problems` is a list of tuples as returned by `check_messages`.