| 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", |
| 11 "bg", | 11 "bg", |
| 12 | 12 |
| 13 #"bn", | 13 "bn", |
| 14 "ca", | 14 "ca", |
| 15 "cs", | 15 "cs", |
| 16 "da", | 16 "da", |
| 17 "de", | 17 "de", |
| 18 "el", | 18 "el", |
| 19 "en", | 19 "en", |
| 20 "en-GB", | 20 "en-GB", |
| 21 "es", | 21 "es", |
| 22 "es-419", | 22 "es-419", |
| 23 "et", | 23 "et", |
| 24 | 24 |
| 25 #"fa", | 25 "fa", |
| 26 #"fake-bidi", | 26 "fake-bidi", |
| 27 "fi", | 27 "fi", |
| 28 "fil", | 28 "fil", |
| 29 "fr", | 29 "fr", |
| 30 | 30 |
| 31 #"gu", | 31 "gu", |
| 32 "he", | 32 "he", |
| 33 "hi", | 33 "hi", |
| 34 "hr", | 34 "hr", |
| 35 "hu", | 35 "hu", |
| 36 "id", | 36 "id", |
| 37 "it", | 37 "it", |
| 38 "ja", | 38 "ja", |
| 39 | 39 |
| 40 #"kn", | 40 "kn", |
| 41 "ko", | 41 "ko", |
| 42 "lt", | 42 "lt", |
| 43 "lv", | 43 "lv", |
| 44 | 44 |
| 45 #"ml", | 45 "ml", |
| 46 #"mr", | 46 "mr", |
| 47 #"ms", | 47 "ms", |
| 48 "nb", | 48 "nb", |
| 49 "nl", | 49 "nl", |
| 50 "pl", | 50 "pl", |
| 51 "pt-BR", | 51 "pt-BR", |
| 52 "pt-PT", | 52 "pt-PT", |
| 53 "ro", | 53 "ro", |
| 54 "ru", | 54 "ru", |
| 55 "sk", | 55 "sk", |
| 56 "sl", | 56 "sl", |
| 57 "sr", | 57 "sr", |
| 58 "sv", | 58 "sv", |
| 59 | 59 |
| 60 #"sw", | 60 "sw", |
| 61 #"ta", | 61 "ta", |
| 62 #"te", | 62 "te", |
| 63 "th", | 63 "th", |
| 64 "tr", | 64 "tr", |
| 65 "uk", | 65 "uk", |
| 66 "vi", | 66 "vi", |
| 67 "zh-CN", | 67 "zh-CN", |
| 68 "zh-TW", | 68 "zh-TW", |
| 69 ] | 69 ] |
| 70 | 70 |
| 71 # Some locales have hyphens in the names but for some uses underscores are | 71 # Some locales have hyphens in the names but for some uses underscores are |
| 72 # needed. | 72 # needed. |
| 73 remoting_locales_with_underscores = remoting_locales | 73 remoting_locales_with_underscores = remoting_locales |
| 74 remoting_locales_with_underscores -= [ | 74 remoting_locales_with_underscores -= [ |
| 75 "en-GB", | 75 "en-GB", |
| 76 "es-419", | 76 "es-419", |
| 77 | 77 |
| 78 #"fake-bidi", | 78 "fake-bidi", |
| 79 "pt-BR", | 79 "pt-BR", |
| 80 "pt-PT", | 80 "pt-PT", |
| 81 "zh-CN", | 81 "zh-CN", |
| 82 "zh-TW", | 82 "zh-TW", |
| 83 ] | 83 ] |
| 84 remoting_locales_with_underscores += [ | 84 remoting_locales_with_underscores += [ |
| 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) { |
| 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 messages_locales = remoting_locales_with_underscores | 100 messages_locales = remoting_locales_with_underscores |
| 101 if (!is_chromeos) { | 101 if (!is_chromeos) { |
| 102 # The messages output includes a separate one for en-US that the pak ones | 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 | 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. | 104 # locales list be default there. |
| 105 messages_locales += [ "en_US" ] | 105 messages_locales += [ "en_US" ] |
| 106 } | 106 } |
| 107 | 107 |
| 108 # The list of .json files generated by remoting_strings.grd. | 108 # The list of .json files generated by remoting_strings.grd. |
| 109 remoting_webapp_locale_files = | 109 remoting_webapp_locale_files = |
| 110 process_file_template( | 110 process_file_template( |
| 111 messages_locales, | 111 messages_locales, |
| 112 [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ]) | 112 [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ]) |
| OLD | NEW |