toolkit/locales/l10n.toml
author Axel Hecht <axel@pike.org>
Mon, 05 Jun 2017 10:28:33 +0200
changeset 363228 91ddd067412484aec8d482eabe27eb048bea7ef8
permissions -rw-r--r--
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

# 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"