code: def hacking_localization_strings(logical_line, tokens, noqa):
      r
      if noqa:
          return
      gen = check_i18n()
      next(gen)
      try:
          list(map(gen.send, tokens))
          gen.close()
      except LocalizationError as e:
          yield e.args
docs: r"""Check localization in line.
  
      Okay: _("This is fine")
      Okay: _LI("This is fine")
      Okay: _LW("This is fine")
      Okay: _LE("This is fine")
      Okay: _LC("This is fine")
      Okay: _("This is also fine %s")
      Okay: _("So is this %s, %(foo)s") % {foo: 'foo'}
      H701: _('')
      Okay: def _(msg):\n    pass
      Okay: def _LE(msg):\n    pass
      H701: _LI('')
      H701: _LW('')
      H701: _LE('')
      H701: _LC('')
      Okay: _('')  # noqa
      H702: _("Bob" + " foo")
      H702: _LI("Bob" + " foo")
      H702: _LW("Bob" + " foo")
      H702: _LE("Bob" + " foo")
      H702: _LC("Bob" + " foo")
      Okay: _("Bob" + " foo")  # noqa
      H702: _("Bob %s" % foo)
      H702: _LI("Bob %s" % foo)
      H702: _LW("Bob %s" % foo)
      H702: _LE("Bob %s" % foo)
      H702: _LC("Bob %s" % foo)
      H702: _("%s %s" % (foo, bar))
      H703: _("%s %s") % (foo, bar)