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 import("//build/config/features.gni") |
| 6 |
5 webapp_locale_dir = "$root_gen_dir/remoting/webapp/_locales" | 7 webapp_locale_dir = "$root_gen_dir/remoting/webapp/_locales" |
6 | 8 |
7 # See also remoting_locales_with_underscores below. | 9 # See also remoting_locales_with_underscores below. |
8 remoting_locales = [ | 10 remoting_locales = [ |
9 "am", | 11 "am", |
10 "ar", | 12 "ar", |
11 "bg", | 13 "bg", |
12 | 14 |
13 "bn", | 15 "bn", |
14 "ca", | 16 "ca", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 "en_GB", | 87 "en_GB", |
86 "es_419", | 88 "es_419", |
87 | 89 |
88 "fake_bidi", | 90 "fake_bidi", |
89 "pt_BR", | 91 "pt_BR", |
90 "pt_PT", | 92 "pt_PT", |
91 "zh_CN", | 93 "zh_CN", |
92 "zh_TW", | 94 "zh_TW", |
93 ] | 95 ] |
94 | 96 |
95 if (is_chromeos) { | 97 if (use_cros_fe) { |
96 remoting_locales += [ "en-US" ] | 98 remoting_locales += [ "en-US" ] |
97 remoting_locales_with_underscores += [ "en_US" ] | 99 remoting_locales_with_underscores += [ "en_US" ] |
98 } | 100 } |
99 | 101 |
100 messages_locales = remoting_locales_with_underscores | 102 messages_locales = remoting_locales_with_underscores |
101 if (!is_chromeos) { | 103 if (!use_cros_fe) { |
102 # The messages output includes a separate one for en-US that the pak ones | 104 # 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 | 105 # don't have. We don't need to do this on ChromeOS since en_US is in the |
104 # locales list be default there. | 106 # locales list be default there. |
105 messages_locales += [ "en_US" ] | 107 messages_locales += [ "en_US" ] |
106 } | 108 } |
107 | 109 |
108 # The list of .json files generated by remoting_strings.grd. | 110 # The list of .json files generated by remoting_strings.grd. |
109 remoting_webapp_locale_files = | 111 remoting_webapp_locale_files = |
110 process_file_template( | 112 process_file_template( |
111 messages_locales, | 113 messages_locales, |
112 [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ]) | 114 [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ]) |
OLD | NEW |