Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: build/config/locales.gni

Issue 2371053002: GN(android): Use foreach() loops when dealing with locales (Closed)
Patch Set: rename to android_chrome_omitted_locales Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Android doesn't ship all locales in order to save space (but webview does).
6 # http://crbug.com/369218
7 if (is_android) {
8 android_chrome_omitted_locales = [
9 "bn",
10 "et",
11 "gu",
12 "kn",
13 "ml",
14 "mr",
15 "ms",
16 "ta",
17 "te",
18 ]
19 }
20
5 # Chrome on iOS only ships with a subset of the locales supported by other 21 # Chrome on iOS only ships with a subset of the locales supported by other
6 # version of Chrome as the corresponding locales are not supported by the 22 # version of Chrome as the corresponding locales are not supported by the
7 # operating system (but for simplicity, the corresponding .pak files are 23 # operating system (but for simplicity, the corresponding .pak files are
8 # still generated). 24 # still generated).
9 if (is_ios) { 25 if (is_ios) {
10 ios_unsupported_locales = [ 26 ios_unsupported_locales = [
11 "am", 27 "am",
12 "bn", 28 "bn",
13 "et", 29 "et",
14 "fil", 30 "fil",
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ] 178 ]
163 } else { 179 } else {
164 locales_as_mac_outputs += [ 180 locales_as_mac_outputs += [
165 "es_MX", 181 "es_MX",
166 "pt", 182 "pt",
167 ] 183 ]
168 184
169 ios_packed_locales_as_mac_outputs = 185 ios_packed_locales_as_mac_outputs =
170 locales_as_mac_outputs - ios_unsupported_locales 186 locales_as_mac_outputs - ios_unsupported_locales
171 } 187 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698