Remove redundant null checks before instanceof checks.
[chromium-blink-merge.git] / remoting / remoting_locales.gni
blobb37d177b8e052e075420da1af310d8b8fd830ed1
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
3 # found in the LICENSE file.
5 webapp_locale_dir = "$root_gen_dir/remoting/webapp/_locales"
7 # See also remoting_locales_with_underscores below.
8 remoting_locales = [
9   "am",
10   "ar",
11   "bg",
13   "bn",
14   "ca",
15   "cs",
16   "da",
17   "de",
18   "el",
19   "en",
20   "en-GB",
21   "es",
22   "es-419",
23   "et",
25   "fa",
26   "fake-bidi",
27   "fi",
28   "fil",
29   "fr",
31   "gu",
32   "he",
33   "hi",
34   "hr",
35   "hu",
36   "id",
37   "it",
38   "ja",
40   "kn",
41   "ko",
42   "lt",
43   "lv",
45   "ml",
46   "mr",
47   "ms",
48   "nb",
49   "nl",
50   "pl",
51   "pt-BR",
52   "pt-PT",
53   "ro",
54   "ru",
55   "sk",
56   "sl",
57   "sr",
58   "sv",
60   "sw",
61   "ta",
62   "te",
63   "th",
64   "tr",
65   "uk",
66   "vi",
67   "zh-CN",
68   "zh-TW",
71 # Some locales have hyphens in the names but for some uses underscores are
72 # needed.
73 remoting_locales_with_underscores = remoting_locales
74 remoting_locales_with_underscores -= [
75   "en-GB",
76   "es-419",
78   "fake-bidi",
79   "pt-BR",
80   "pt-PT",
81   "zh-CN",
82   "zh-TW",
84 remoting_locales_with_underscores += [
85   "en_GB",
86   "es_419",
88   "fake_bidi",
89   "pt_BR",
90   "pt_PT",
91   "zh_CN",
92   "zh_TW",
95 if (is_chromeos) {
96   remoting_locales += [ "en-US" ]
97   remoting_locales_with_underscores += [ "en_US" ]
100 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" ]
108 # The list of .json files generated by remoting_strings.grd.
109 remoting_webapp_locale_files =
110     process_file_template(
111         messages_locales,
112         [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ])