Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 webapp_locale_dir = "$root_gen_dir/remoting/webapp/_locales" | 5 webapp_locale_dir = "$root_gen_dir/remoting/webapp/_locales" |
| 6 | 6 |
| 7 # See also remoting_locales_with_underscores below. | 7 # See also remoting_locales_with_underscores below. |
| 8 remoting_locales = [ | 8 remoting_locales = [ |
| 9 "am", | 9 "am", |
| 10 "ar", | 10 "ar", |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 "en_GB", | 85 "en_GB", |
| 86 "es_419", | 86 "es_419", |
| 87 | 87 |
| 88 "fake_bidi", | 88 "fake_bidi", |
| 89 "pt_BR", | 89 "pt_BR", |
| 90 "pt_PT", | 90 "pt_PT", |
| 91 "zh_CN", | 91 "zh_CN", |
| 92 "zh_TW", | 92 "zh_TW", |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 if (is_chromeos) { | 95 if (is_chromeos || is_ios) { |
|
Wez
2017/04/18 18:05:26
nit: Let's make sure to retain comments that expla
sdefresne
2017/04/19 08:59:03
Done.
BTW, do you know why remoting uses "en-GB",
Wez
2017/04/20 03:41:21
No, I'm afraid you will need to ask jamiewalch@ or
| |
| 96 remoting_locales += [ "en-US" ] | 96 remoting_locales += [ "en-US" ] |
| 97 remoting_locales_with_underscores += [ "en_US" ] | 97 remoting_locales_with_underscores += [ "en_US" ] |
| 98 } | 98 } |
| 99 | 99 |
| 100 if (is_ios) { | |
|
Wez
2017/04/18 18:05:26
nit: This might be more readable as an if...else w
sdefresne
2017/04/19 08:59:03
Done.
| |
| 101 remoting_locales -= [ | |
| 102 "pt-BR", | |
| 103 "es-419", | |
| 104 ] | |
| 105 remoting_locales += [ | |
| 106 "pt", | |
| 107 "es-MX", | |
| 108 ] | |
| 109 | |
| 110 remoting_locales_with_underscores -= [ | |
| 111 "pt_BR", | |
| 112 "es_419", | |
| 113 ] | |
| 114 remoting_locales_with_underscores += [ | |
| 115 "pt", | |
| 116 "es_MX", | |
| 117 ] | |
| 118 } | |
| 119 | |
| 100 messages_locales = remoting_locales_with_underscores | 120 messages_locales = remoting_locales_with_underscores |
| 101 if (!is_chromeos) { | |
| 102 # The messages output includes a separate one for en-US that the pak ones | |
| 103 # don't have. We don't need to do this on ChromeOS since en_US is in the | |
| 104 # locales list be default there. | |
| 105 messages_locales += [ "en_US" ] | |
| 106 } | |
| 107 | 121 |
| 108 remoting_android_locales = [ | 122 remoting_android_locales = [ |
| 109 "am", | 123 "am", |
| 110 "ar", | 124 "ar", |
| 111 "bg", | 125 "bg", |
| 112 "ca", | 126 "ca", |
| 113 "cs", | 127 "cs", |
| 114 "da", | 128 "da", |
| 115 "de", | 129 "de", |
| 116 "el", | 130 "el", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 "vi", | 163 "vi", |
| 150 "zh-rCN", | 164 "zh-rCN", |
| 151 "zh-rTW", | 165 "zh-rTW", |
| 152 ] | 166 ] |
| 153 | 167 |
| 154 # The list of .json files generated by remoting_strings.grd. | 168 # The list of .json files generated by remoting_strings.grd. |
| 155 remoting_webapp_locale_files = | 169 remoting_webapp_locale_files = |
| 156 process_file_template( | 170 process_file_template( |
| 157 messages_locales, | 171 messages_locales, |
| 158 [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ]) | 172 [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ]) |
| OLD | NEW |