gecko-dev/toolkit/locales/l10n.toml
Axel Hecht c92e5dfc1e bug 1370176, generic configuration for l10n, r=flod,gps
The current way to configure compare-locales has a lot of
assumptions that make our l10n system really stubborn.

The generic configuration is independent of python, and uses
toml files for configuration. They're still modular, but
there's only one file format.

See http://moz-l10n-config.readthedocs.io/en/latest/fileformat.html
for the specification.

Also fixes a few nits in filter.py, where we compared the
entity key as bool, which is false if we pass in ''.
Explicitly compare as "entity is None" to be precise about
when we're checking files.

MozReview-Commit-ID: 5TmfobaImF4

--HG--
extra : rebase_source : 84e56eb2076e74f79677df9e0368811579c1f173
2017-06-05 10:28:33 +02:00

30 lines
655 B
TOML

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
basepath = "../.."
[env]
l = "{l10n_base}/{locale}/"
[[paths]]
reference = "toolkit/locales/en-US/**"
l10n = "{l}toolkit/**"
[[paths]]
reference = "dom/locales/en-US/**"
l10n = "{l}dom/**"
[[paths]]
reference = "netwerk/locales/en-US/**"
l10n = "{l}netwerk/**"
[[paths]]
reference = "security/manager/locales/en-US/**"
l10n = "{l}security/manager/**"
[[includes]]
path = "devtools/shared/locales/l10n.toml"