summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_locales.gni
blob: b37d177b8e052e075420da1af310d8b8fd830ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

webapp_locale_dir = "$root_gen_dir/remoting/webapp/_locales"

# 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" ]
}

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" ]
}

# The list of .json files generated by remoting_strings.grd.
remoting_webapp_locale_files =
    process_file_template(
        messages_locales,
        [ "remoting/webapp/_locales/{{source_name_part}}/messages.json" ])