DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c4a371f2ce99)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

def test(mod, path, entity = None):
  import re

  # ignore anything but calendar stuff
  if mod not in ("netwerk", "dom", "toolkit", "security/manager",
                 "calendar"):
    return False

  # Timezone properties don't have to be translated
  if path == "chrome/calendar/timezones.properties":
    return "report"

  # Noun class entries do not have to be translated
  if path == "chrome/calendar/calendar-event-dialog.properties":
    return not re.match(r".*Nounclass[1-9]", entity)

  # most extraction related strings are not required
  if path == "chrome/calendar/calendar-extract.properties":
    if not re.match(r"from.today", entity):
      return "report"

  # Provider for Google Calendar AMO strings do not have to be translated
  if path == "chrome/calendar/providers/gdata/amo.properties":
    return "report"

  # Everything else should be taken into account
  return True