mail/locales/filter.py
author Axel Hecht <l10n@mozilla.com>
Tue, 23 Mar 2010 04:28:09 +0100
changeset 5234 58494ac482bfa9311d688873c53eea32a64d11bb
parent 0 e4f4569d451a5e0d12a6aa33ebd916f979dd8faa
child 9657 77d2995562e0e8593278fd3384a69f365549cf62
permissions -rwxr-xr-x
bug 554046, update filter.py to ignore the lorentz toolkit strings on 1.9.2, bustage fix for tb31x

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"