author Axel Hecht <>
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 for the specification. Also fixes a few nits in, 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

basepath = "../.."

    l = "{l10n_base}/{locale}/"

    reference = "toolkit/locales/en-US/**"
    l10n = "{l}toolkit/**"

    reference = "dom/locales/en-US/**"
    l10n = "{l}dom/**"

    reference = "netwerk/locales/en-US/**"
    l10n = "{l}netwerk/**"

    reference = "security/manager/locales/en-US/**"
    l10n = "{l}security/manager/**"

    path = "devtools/shared/locales/l10n.toml"