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

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

Issue 2003433003: [GN] Use build/config/locales.gni to simplify grit invocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@locale
Patch Set: Fix "analyse" by adding a new variable locales_with_fake_bidi Created 4 years, 7 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 | « no previous file | components/strings/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 # Chrome on iOS only ships with a subset of the locales supported by other 5 # 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 6 # version of Chrome as the corresponding locales are not supported by the
7 # operating system (but for simplicity, the corresponding .pak files are 7 # operating system (but for simplicity, the corresponding .pak files are
8 # still generated). 8 # still generated).
9 if (is_ios) { 9 if (is_ios) {
10 ios_unsupported_locales = [ 10 ios_unsupported_locales = [
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ] 92 ]
93 } else { 93 } else {
94 locales += [ 94 locales += [
95 "es-MX", 95 "es-MX",
96 "pt", 96 "pt",
97 ] 97 ]
98 98
99 ios_packed_locales = locales - ios_unsupported_locales 99 ios_packed_locales = locales - ios_unsupported_locales
100 } 100 }
101 101
102 locales_with_fake_bidi = locales + [ "fake-bidi" ]
103
102 # Same as the locales list but in the format Mac expects for output files: 104 # Same as the locales list but in the format Mac expects for output files:
103 # it uses underscores instead of hyphens, and "en" instead of "en-US". 105 # it uses underscores instead of hyphens, and "en" instead of "en-US".
104 locales_as_mac_outputs = [ 106 locales_as_mac_outputs = [
105 "am", 107 "am",
106 "ar", 108 "ar",
107 "bg", 109 "bg",
108 "bn", 110 "bn",
109 "ca", 111 "ca",
110 "cs", 112 "cs",
111 "da", 113 "da",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 ] 166 ]
165 } else { 167 } else {
166 locales_as_mac_outputs += [ 168 locales_as_mac_outputs += [
167 "es_MX", 169 "es_MX",
168 "pt", 170 "pt",
169 ] 171 ]
170 172
171 ios_packed_locales_as_mac_outputs = 173 ios_packed_locales_as_mac_outputs =
172 locales_as_mac_outputs - ios_unsupported_locales 174 locales_as_mac_outputs - ios_unsupported_locales
173 } 175 }
OLDNEW
« no previous file with comments | « no previous file | components/strings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698