Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / intl / locales / moz.build
blob8d8e4037c7fd7fa9a44c6a447a7028e77afbc0bb
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # For Android, we ship hyphenation files in uncompiled format to minimize
8 # the package size; for other products, ship precompiled files to eliminate
9 # the cost of compilation on first use.
10 if CONFIG["MOZ_BUILD_APP"] == "mobile/android":
11     hyphenation_ext = ".dic"
12 else:
13     hyphenation_ext = ".hyf"
15 locales = [
16     "af",
17     "bg",
18     "bn",
19     "ca",
20     "cy",
21     "da",
22     "de-1901",
23     "de-1996",
24     "de-CH",
25     # 'en-US',  # en-US is renamed -- see below.
26     "eo",
27     "es",
28     "et",
29     "fi",
30     "fr",
31     "gl",
32     "gu",
33     "hi",
34     "hr",
35     "hsb",
36     "hu",
37     "ia",
38     "is",
39     "it",
40     "kmr",
41     "kn",
42     "la",
43     "lt",
44     "ml",
45     "mn",
46     "nb",
47     "nl",
48     "nn",
49     "or",
50     "pa",
51     "pl",
52     "pt",
53     "ru",
54     "sh",
55     "sl",
56     "sv",
57     "ta",
58     "te",
59     "tr",
60     "uk",
62 filename = "{locale}/hyphenation/hyph_{locale}" + hyphenation_ext
63 FINAL_TARGET_FILES.hyphenation += [filename.format(locale=locale) for locale in locales]
64 # en-US is a special case: the dic file is named like en_US.
65 FINAL_TARGET_FILES.hyphenation += ["en-US/hyphenation/hyph_en_US" + hyphenation_ext]