OLD | NEW |
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 |
| 6 # version of Chrome as the corresponding locales are not supported by the |
| 7 # operating system (but for simplicity, the corresponding .pak files are |
| 8 # still generated). |
| 9 if (is_ios) { |
| 10 ios_unsupported_locales = [ |
| 11 "am", |
| 12 "bg", |
| 13 "bn", |
| 14 "et", |
| 15 "fa", |
| 16 "fil", |
| 17 "gu", |
| 18 "kn", |
| 19 "lt", |
| 20 "lv", |
| 21 "ml", |
| 22 "mr", |
| 23 "sl", |
| 24 "sr", |
| 25 "sw", |
| 26 "ta", |
| 27 "te", |
| 28 ] |
| 29 } |
| 30 |
5 # Note: keep in sync with below. | 31 # Note: keep in sync with below. |
6 locales = [ | 32 locales = [ |
7 "am", | 33 "am", |
8 "ar", | 34 "ar", |
9 "bg", | 35 "bg", |
10 "bn", | 36 "bn", |
11 "ca", | 37 "ca", |
12 "cs", | 38 "cs", |
13 "da", | 39 "da", |
14 "de", | 40 "de", |
15 "el", | 41 "el", |
16 "en-GB", | 42 "en-GB", |
17 "en-US", | 43 "en-US", |
18 "es-419", | |
19 "es", | 44 "es", |
20 "et", | 45 "et", |
21 "fa", | 46 "fa", |
22 "fi", | 47 "fi", |
23 "fil", | 48 "fil", |
24 "fr", | 49 "fr", |
25 "gu", | 50 "gu", |
26 "he", | 51 "he", |
27 "hi", | 52 "hi", |
28 "hr", | 53 "hr", |
29 "hu", | 54 "hu", |
30 "id", | 55 "id", |
31 "it", | 56 "it", |
32 "ja", | 57 "ja", |
33 "kn", | 58 "kn", |
34 "ko", | 59 "ko", |
35 "lt", | 60 "lt", |
36 "lv", | 61 "lv", |
37 "ml", | 62 "ml", |
38 "mr", | 63 "mr", |
39 "ms", | 64 "ms", |
40 "nb", | 65 "nb", |
41 "nl", | 66 "nl", |
42 "pl", | 67 "pl", |
43 "pt-BR", | |
44 "pt-PT", | 68 "pt-PT", |
45 "ro", | 69 "ro", |
46 "ru", | 70 "ru", |
47 "sk", | 71 "sk", |
48 "sl", | 72 "sl", |
49 "sr", | 73 "sr", |
50 "sv", | 74 "sv", |
51 "sw", | 75 "sw", |
52 "ta", | 76 "ta", |
53 "te", | 77 "te", |
54 "th", | 78 "th", |
55 "tr", | 79 "tr", |
56 "uk", | 80 "uk", |
57 "vi", | 81 "vi", |
58 "zh-CN", | 82 "zh-CN", |
59 "zh-TW", | 83 "zh-TW", |
60 ] | 84 ] |
61 | 85 |
| 86 # Chrome on iOS uses different names for "es-419" and "pt-BR" (called |
| 87 # respectively "es-MX" and "pt" on iOS). |
| 88 if (!is_ios) { |
| 89 locales += [ |
| 90 "es-419", |
| 91 "pt-BR", |
| 92 ] |
| 93 } else { |
| 94 locales += [ |
| 95 "es-MX", |
| 96 "pt", |
| 97 ] |
| 98 |
| 99 ios_packed_locales = locales - ios_unsupported_locales |
| 100 } |
| 101 |
62 # Same as the locales list but in the format Mac expects for output files: | 102 # Same as the locales list but in the format Mac expects for output files: |
63 # it uses underscores instead of hyphens, and "en" instead of "en-US". | 103 # it uses underscores instead of hyphens, and "en" instead of "en-US". |
64 locales_as_mac_outputs = [ | 104 locales_as_mac_outputs = [ |
65 "am", | 105 "am", |
66 "ar", | 106 "ar", |
67 "bg", | 107 "bg", |
68 "bn", | 108 "bn", |
69 "ca", | 109 "ca", |
70 "cs", | 110 "cs", |
71 "da", | 111 "da", |
72 "de", | 112 "de", |
73 "el", | 113 "el", |
74 "en_GB", | 114 "en_GB", |
75 "en", | 115 "en", |
76 "es_419", | |
77 "es", | 116 "es", |
78 "et", | 117 "et", |
79 "fa", | 118 "fa", |
80 "fi", | 119 "fi", |
81 "fil", | 120 "fil", |
82 "fr", | 121 "fr", |
83 "gu", | 122 "gu", |
84 "he", | 123 "he", |
85 "hi", | 124 "hi", |
86 "hr", | 125 "hr", |
87 "hu", | 126 "hu", |
88 "id", | 127 "id", |
89 "it", | 128 "it", |
90 "ja", | 129 "ja", |
91 "kn", | 130 "kn", |
92 "ko", | 131 "ko", |
93 "lt", | 132 "lt", |
94 "lv", | 133 "lv", |
95 "ml", | 134 "ml", |
96 "mr", | 135 "mr", |
97 "ms", | 136 "ms", |
98 "nb", | 137 "nb", |
99 "nl", | 138 "nl", |
100 "pl", | 139 "pl", |
101 "pt_BR", | |
102 "pt_PT", | 140 "pt_PT", |
103 "ro", | 141 "ro", |
104 "ru", | 142 "ru", |
105 "sk", | 143 "sk", |
106 "sl", | 144 "sl", |
107 "sr", | 145 "sr", |
108 "sv", | 146 "sv", |
109 "sw", | 147 "sw", |
110 "ta", | 148 "ta", |
111 "te", | 149 "te", |
112 "th", | 150 "th", |
113 "tr", | 151 "tr", |
114 "uk", | 152 "uk", |
115 "vi", | 153 "vi", |
116 "zh_CN", | 154 "zh_CN", |
117 "zh_TW", | 155 "zh_TW", |
118 ] | 156 ] |
| 157 |
| 158 # Chrome on iOS uses different names for "es-419" and "pt-BR" (called |
| 159 # respectively "es-MX" and "pt" on iOS). |
| 160 if (!is_ios) { |
| 161 locales_as_mac_outputs += [ |
| 162 "es_419", |
| 163 "pt_BR", |
| 164 ] |
| 165 } else { |
| 166 locales_as_mac_outputs += [ |
| 167 "es_MX", |
| 168 "pt", |
| 169 ] |
| 170 |
| 171 ios_packed_locales_as_mac_outputs = |
| 172 locales_as_mac_outputs - ios_unsupported_locales |
| 173 } |
OLD | NEW |