Fix for Geolocation webTCT failures
[platform/framework/web/chromium-efl.git] / remoting / remoting_locales.gni
1 # Copyright 2015 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/chromeos/ui_mode.gni")
6 import("//build/config/locales.gni")
7
8 resources_locale_dir = "$root_gen_dir/remoting/resources/_locales"
9
10 # See also remoting_locales_with_underscores below.
11 remoting_locales_without_pseudolocales = [
12   "am",
13   "ar",
14   "bg",
15
16   "bn",
17   "ca",
18   "cs",
19   "da",
20   "de",
21   "el",
22   "en",
23   "en-GB",
24   "es",
25   "et",
26
27   "fa",
28   "fi",
29   "fil",
30   "fr",
31
32   "gu",
33   "he",
34   "hi",
35   "hr",
36   "hu",
37   "id",
38   "it",
39   "ja",
40
41   "kn",
42   "ko",
43   "lt",
44   "lv",
45
46   "ml",
47   "mr",
48   "ms",
49   "nb",
50   "nl",
51   "pl",
52   "pt-PT",
53   "ro",
54   "ru",
55   "sk",
56   "sl",
57   "sr",
58   "sv",
59
60   "sw",
61   "ta",
62   "te",
63   "th",
64   "tr",
65   "uk",
66   "vi",
67   "zh-CN",
68   "zh-TW",
69 ]
70
71 # An additional locale "en-US" is generated for ChromeOS and Chrome on iOS.
72 # TODO(yuweih): Our build script doesn't seem to work with en-US and Chrome
73 # on iOS doesn't seem to have en-US.lproj. Add is_ios back if we do need to
74 # work with en-US.
75 if (is_chromeos) {
76   # Support Icelandic in ChromeOS
77   remoting_locales_without_pseudolocales += [
78     "af",
79     "cy",
80     "en-US",
81     "eu",
82     "gl",
83     "is",
84     "zu",
85   ]
86 }
87
88 # Locales "pt-BR" and "es-419" are named "pt" and "es-MX" respectively on iOS.
89 if (!is_ios) {
90   remoting_locales_without_pseudolocales += [
91     "pt-BR",
92     "es-419",
93   ]
94 } else {
95   remoting_locales_without_pseudolocales += [
96     "pt",
97     "es-MX",
98   ]
99 }
100
101 remoting_locales_with_underscores_without_pseudolocales = []
102 foreach(locale, remoting_locales_without_pseudolocales) {
103   remoting_locales_with_underscores_without_pseudolocales +=
104       [ string_replace(locale, "-", "_") ]
105 }
106
107 pseudolocales_with_underscores = []
108 foreach(locale, pseudolocales) {
109   pseudolocales_with_underscores += [ string_replace(locale, "-", "_") ]
110 }
111
112 remoting_locales_with_pseudolocales =
113     remoting_locales_without_pseudolocales + pseudolocales
114 remoting_locales_with_underscores_with_pseudolocales =
115     remoting_locales_with_underscores_without_pseudolocales +
116     pseudolocales_with_underscores
117
118 if (enable_pseudolocales) {
119   remoting_locales = remoting_locales_with_pseudolocales
120   remoting_locales_with_underscores =
121       remoting_locales_with_underscores_with_pseudolocales
122 } else {
123   remoting_locales = remoting_locales_without_pseudolocales
124   remoting_locales_with_underscores =
125       remoting_locales_with_underscores_without_pseudolocales
126 }
127
128 remoting_android_locales = [
129   "am",
130   "ar",
131   "bg",
132   "ca",
133   "cs",
134   "da",
135   "de",
136   "el",
137   "en-rGB",
138   "es",
139   "es-rUS",
140   "fa",
141   "fi",
142   "fr",
143   "hi",
144   "hr",
145   "hu",
146   "in",
147   "it",
148   "iw",
149   "ja",
150   "ko",
151   "lt",
152   "lv",
153   "nb",
154   "nl",
155   "pl",
156   "pt-rBR",
157   "pt-rPT",
158   "ro",
159   "ru",
160   "sk",
161   "sl",
162   "sr",
163   "sv",
164   "sw",
165   "th",
166   "tl",
167   "tr",
168   "uk",
169   "vi",
170   "zh-rCN",
171   "zh-rTW",
172 ]
173
174 # The list of .json files generated by remoting_strings.grd.
175 remoting_resources_locale_files =
176     process_file_template(
177         remoting_locales_with_underscores_with_pseudolocales,
178         [ "remoting/resources/_locales/{{source_name_part}}/messages.json" ])