| Index: remoting/resources/BUILD.gn
|
| diff --git a/remoting/resources/BUILD.gn b/remoting/resources/BUILD.gn
|
| index 848f9c21d09c902d0682f26a10e5a8252e1fee5c..05aab92ce65e2eea7ae4513cfa67fca3c4e63416 100644
|
| --- a/remoting/resources/BUILD.gn
|
| +++ b/remoting/resources/BUILD.gn
|
| @@ -2,93 +2,9 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//remoting/remoting_locales.gni")
|
| import("//tools/grit/grit_rule.gni")
|
|
|
| -# See also remoting_locales_with_underscores below.
|
| -remoting_locales = [
|
| - "am",
|
| - "ar",
|
| - "bg",
|
| - "bn",
|
| - "ca",
|
| - "cs",
|
| - "da",
|
| - "de",
|
| - "el",
|
| - "en",
|
| - "en-GB",
|
| - "es",
|
| - "es-419",
|
| - "et",
|
| - "fa",
|
| - "fake-bidi",
|
| - "fi",
|
| - "fil",
|
| - "fr",
|
| - "gu",
|
| - "he",
|
| - "hi",
|
| - "hr",
|
| - "hu",
|
| - "id",
|
| - "it",
|
| - "ja",
|
| - "kn",
|
| - "ko",
|
| - "lt",
|
| - "lv",
|
| - "ml",
|
| - "mr",
|
| - "ms",
|
| - "nb",
|
| - "nl",
|
| - "pl",
|
| - "pt-BR",
|
| - "pt-PT",
|
| - "ro",
|
| - "ru",
|
| - "sk",
|
| - "sl",
|
| - "sr",
|
| - "sv",
|
| - "sw",
|
| - "ta",
|
| - "te",
|
| - "th",
|
| - "tr",
|
| - "uk",
|
| - "vi",
|
| - "zh-CN",
|
| - "zh-TW",
|
| -]
|
| -
|
| -# Some locales have hyphens in the names but for some uses underscores are
|
| -# needed.
|
| -remoting_locales_with_underscores = remoting_locales
|
| -remoting_locales_with_underscores -= [
|
| - "en-GB",
|
| - "es-419",
|
| - "fake-bidi",
|
| - "pt-BR",
|
| - "pt-PT",
|
| - "zh-CN",
|
| - "zh-TW",
|
| -]
|
| -remoting_locales_with_underscores += [
|
| - "en_GB",
|
| - "es_419",
|
| - "fake_bidi",
|
| - "pt_BR",
|
| - "pt_PT",
|
| - "zh_CN",
|
| - "zh_TW",
|
| -]
|
| -
|
| -if (is_chromeos) {
|
| - remoting_locales += [ "en-US" ]
|
| - remoting_locales_with_underscores += [ "en_US" ]
|
| -}
|
| -
|
| group("resources") {
|
| deps = [
|
| ":copy_locales",
|
| @@ -166,16 +82,7 @@ grit("strings") {
|
| process_file_template(remoting_locales,
|
| [ "remoting/resources/{{source_name_part}}.pak" ])
|
|
|
| - messages_locales = remoting_locales_with_underscores
|
| - if (!is_chromeos) {
|
| - # The messages output includes a separate one for en-US that the pak ones
|
| - # don't have. We don't need to do this on ChromeOS since en_US is in the
|
| - # locales list be default there.
|
| - messages_locales += [ "en_US" ]
|
| - }
|
| - outputs += process_file_template(
|
| - messages_locales,
|
| - [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ])
|
| + outputs += remoting_webapp_locale_files
|
| }
|
|
|
| action("copy_locales") {
|
|
|