1 # Copyright 2015 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/chromeos/ui_mode.gni")
6 import("//build/config/locales.gni")
8 resources_locale_dir = "$root_gen_dir/remoting/resources/_locales"
10 # See also remoting_locales_with_underscores below.
11 remoting_locales_without_pseudolocales = [
71 # An additional locale "en-US" is generated for ChromeOS and Chrome on iOS.
72 # TODO(yuweih): Our build script doesn't seem to work with en-US and Chrome
73 # on iOS doesn't seem to have en-US.lproj. Add is_ios back if we do need to
76 # Support Icelandic in ChromeOS
77 remoting_locales_without_pseudolocales += [
88 # Locales "pt-BR" and "es-419" are named "pt" and "es-MX" respectively on iOS.
90 remoting_locales_without_pseudolocales += [
95 remoting_locales_without_pseudolocales += [
101 remoting_locales_with_underscores_without_pseudolocales = []
102 foreach(locale, remoting_locales_without_pseudolocales) {
103 remoting_locales_with_underscores_without_pseudolocales +=
104 [ string_replace(locale, "-", "_") ]
107 pseudolocales_with_underscores = []
108 foreach(locale, pseudolocales) {
109 pseudolocales_with_underscores += [ string_replace(locale, "-", "_") ]
112 remoting_locales_with_pseudolocales =
113 remoting_locales_without_pseudolocales + pseudolocales
114 remoting_locales_with_underscores_with_pseudolocales =
115 remoting_locales_with_underscores_without_pseudolocales +
116 pseudolocales_with_underscores
118 if (enable_pseudolocales) {
119 remoting_locales = remoting_locales_with_pseudolocales
120 remoting_locales_with_underscores =
121 remoting_locales_with_underscores_with_pseudolocales
123 remoting_locales = remoting_locales_without_pseudolocales
124 remoting_locales_with_underscores =
125 remoting_locales_with_underscores_without_pseudolocales
128 remoting_android_locales = [
174 # The list of .json files generated by remoting_strings.grd.
175 remoting_resources_locale_files =
176 process_file_template(
177 remoting_locales_with_underscores_with_pseudolocales,
178 [ "remoting/resources/_locales/{{source_name_part}}/messages.json" ])