author Mark Banner <>
Thu, 26 Jan 2012 09:00:50 +0000
changeset 10570 785cee15cf2be95f5fc03191e3139363b95e6869
parent 10453 120cf812400a344b3f5bedfd78f432d1d00bb4d8
child 15798 8e475124e59f2d281ac2dad916315fcb2e4c9436
permissions -rw-r--r--
Backout Bug 697964 and its follow-up bug 698405 as the core bug was backed out from mozilla-aurora. a=Standard8

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

  # ignore anyhting but calendar stuff
  if mod not in ("netwerk", "dom", "toolkit", "security/manager",
                 "calendar", "other-licenses/branding/sunbird"):
    return False

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

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

  # Sunbird specific strings don't need translation
  if path.startswith("chrome/sunbird/"):
    return False

  # Everything else should be taken into account
  return True