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/.
4
5basepath = "../.."
6
7locales = [
8    "ca",
9    "cs",
10    "da",
11    "de",
12    "el",
13    "en-GB",
14    "es-AR",
15    "es-ES",
16    "fi",
17    "fr",
18    "hu",
19    "it",
20    "ja",
21    "ja-JP-mac",
22    "ka",
23    "lt",
24    "nb-NO",
25    "nl",
26    "pl",
27    "pt-BR",
28    "pt-PT",
29    "ro",
30    "ru",
31    "si",
32    "sk",
33    "sv-SE",
34    "tr",
35    "zh-CN",
36    "zh-TW",
37]
38
39[env]
40    l = "{l10n_base}/{locale}/"
41    mozilla = ".."
42
43[[paths]]
44    reference = "suite/locales/en-US/**"
45    l10n = "{l}suite/**"
46
47[[paths]]
48    reference = "editor/ui/locales/en-US/**"
49    l10n = "{l}editor/ui/**"
50
51[[paths]]
52    reference = "suite/branding/seamonkey/locales/en-US/**"
53    l10n = "{l}suite/branding/seamonkey/**"
54
55[[paths]]
56    reference = "{mozilla}/services/sync/locales/en-US/**"
57    l10n = "{l}services/sync/**"
58
59[[includes]]
60    path = "{mozilla}/toolkit/locales/l10n.toml"
61
62[[includes]]
63    path = "calendar/locales/l10n.toml"
64
65[[includes]]
66    path = "{mozilla}/devtools/client/locales/l10n.toml"
67
68[[includes]]
69    path = "suite/chatzilla/locales/l10n.toml"
70
71[[paths]]
72    reference = "{mozilla}/devtools/startup/locales/en-US/**"
73    l10n = "{l}devtools/startup/**"
74
75# for Gecko 60 and older and cross-channel
76[[paths]]
77    reference = "{mozilla}/devtools/shim/locales/en-US/**"
78    l10n = "{l}devtools/shim/**"
79
80# ignore MOZ_LANGPACK_CONTRIBUTORS
81[[filters]]
82    path = "{l}suite/defines.inc"
83    key = "MOZ_LANGPACK_CONTRIBUTORS"
84    action = "ignore"
85
86# defines.inc and suite-l10n.js can be missing completely
87[[filters]]
88    path = [
89        "{l}suite/defines.inc",
90        "{l}suite/suite-l10n.js",
91    ]
92    action = "ignore"
93
94# ignore MOZ_LANGPACK_CONTRIBUTORS
95[[filters]]
96    path = "{l}suite/chatzilla/defines.inc"
97    key = "MOZ_LANGPACK_CONTRIBUTORS"
98    action = "ignore"
99
100# search prefs don't have the same number for all locales
101[[filters]]
102    path = "{l}suite/chrome/common/region.properties"
103    key = "re:browser\\.search\\.order\\.[1-9].*"
104    action = "ignore"
105
106# content handler prefs don't have the same number for all locales
107[[filters]]
108    path = "{l}suite/chrome/browser/region.properties"
109    key = "re:browser\\.contentHandlers\\.types\\.[0-5].*"
110    action = "ignore"
111
112# map service prefs don't have the same number for all locales
113[[filters]]
114    path = "{l}suite/chrome/mailnews/region.properties"
115    key = "re:mail\\.addr_book\\.mapit_url\\.[1-5].*"
116    action = "ignore"
117
118# search plugins are different per locale, ignore file difference
119[[filters]]
120    path = "{l}suite/searchplugins/*.xml"
121    action = "ignore"
122
123# extra data and help images are optional
124[[filters]]
125    path = [
126        "{l}suite/profile/bookmarks.extra",
127        "{l}suite/profile/panels.extra",
128        "{l}suite/chrome/common/help/images/*.*",
129    ]
130    action = "ignore"
131