no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / browser / locales / filter.py
blob9155947e436a9102e91a467501b16ef2f0e2932a
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 def test(mod, path, entity=None):
7 # ignore anything but Firefox
8 if mod not in (
9 "netwerk",
10 "dom",
11 "toolkit",
12 "security/manager",
13 "devtools/client",
14 "devtools/shared",
15 "devtools/startup",
16 "browser",
17 "browser/extensions/formautofill",
18 "browser/extensions/report-site-issue",
19 "extensions/spellcheck",
20 "other-licenses/branding/firefox",
21 "browser/branding/official",
22 "services/sync",
24 return "ignore"
25 if mod not in ("browser", "extensions/spellcheck"):
26 # we only have exceptions for browser and extensions/spellcheck
27 return "error"
28 if entity is None:
29 # the only files to ignore are spell checkers
30 if mod == "extensions/spellcheck":
31 return "ignore"
32 return "error"
33 if mod == "extensions/spellcheck":
34 # l10n ships en-US dictionary or something, do compare
35 return "error"
36 return "error"