mail/locales/filter.py
author seabld
Thu, 07 Oct 2010 13:33:51 -0700
branchCOMM20b7_20101007_RELBRANCH
changeset 6512 dc0fffdc3e422c5fd790fe9b88bbde41771aefb5
parent 5234 58494ac482bfa9311d688873c53eea32a64d11bb
child 9657 77d2995562e0e8593278fd3384a69f365549cf62
permissions -rwxr-xr-x
Automated checkin: version bump remove "pre" from version number for seamonkey 2.1b1 release on COMM20b7_20101007_RELBRANCH CLOSED TREE

def test(mod, path, entity = None):
  import re
  # ignore anyhting but Thunderbird
  if mod not in ("netwerk", "dom", "toolkit", "security/manager",
                 "mail", "editor/ui", "extensions/spellcheck",
                 "other-licenses/branding/thunderbird"):
    return False

  # Ignore Lorentz strings, at least temporarily
  if mod == "toolkit" and path == "chrome/mozapps/plugins/plugins.dtd":
    if entity.startswith('reloadPlugin.'): return False
    if entity.startswith('report.'): return False

  # ignore MOZ_LANGPACK_CONTRIBUTORS
  if mod == "mail" and path == "defines.inc" and \
     entity == "MOZ_LANGPACK_CONTRIBUTORS":
    return False
  # ignore dictionaries
  return not mod == "extensions/spellcheck"