Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/chrome_repack_locales.gni

Issue 2163543004: MD Settings: re-enable settings translations ONCE AND FOR ALL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yay golf! Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 # Arguments: 10 # Arguments:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 "${root_gen_dir}/components/strings/components_strings_${locale}.pak", 45 "${root_gen_dir}/components/strings/components_strings_${locale}.pak",
46 ] 46 ]
47 deps = [ 47 deps = [
48 "//chrome/app:generated_resources", 48 "//chrome/app:generated_resources",
49 "//chrome/app/resources:locale_settings", 49 "//chrome/app/resources:locale_settings",
50 "//chrome/app/resources:platform_locale_settings", 50 "//chrome/app/resources:platform_locale_settings",
51 "//components/strings:components_locale_settings", 51 "//components/strings:components_locale_settings",
52 "//components/strings:components_strings", 52 "//components/strings:components_strings",
53 ] 53 ]
54 54
55 # The settings strings are not being treated as strings because they are
56 # not translated (English only), this should change in late 2015.
57 sources += [ "${root_gen_dir}/chrome/settings_strings.pak" ]
58 deps += [ "//chrome/app:settings_strings" ]
59
60 if (defined(invoker.additional_source_patterns)) { 55 if (defined(invoker.additional_source_patterns)) {
61 sources += process_file_template(invoker.additional_source_patterns, 56 sources += process_file_template(invoker.additional_source_patterns,
62 [ "{{source}}_${locale}.pak" ]) 57 [ "{{source}}_${locale}.pak" ])
63 deps += invoker.additional_deps 58 deps += invoker.additional_deps
64 } 59 }
65 60
66 if (use_ash) { 61 if (use_ash) {
67 sources += [ "${root_gen_dir}/ash/strings/ash_strings_${locale}.pak" ] 62 sources += [ "${root_gen_dir}/ash/strings/ash_strings_${locale}.pak" ]
68 deps += [ "//ash/strings" ] 63 deps += [ "//ash/strings" ]
69 } 64 }
(...skipping 28 matching lines...) Expand all
98 # TODO(jamescook): When Android stops building extensions code move 93 # TODO(jamescook): When Android stops building extensions code move
99 # this to the OS != 'ios' and OS != 'android' section. 94 # this to the OS != 'ios' and OS != 'android' section.
100 "${root_gen_dir}/extensions/strings/extensions_strings_${locale}.pak", 95 "${root_gen_dir}/extensions/strings/extensions_strings_${locale}.pak",
101 ] 96 ]
102 deps += [ "//extensions/strings" ] 97 deps += [ "//extensions/strings" ]
103 } 98 }
104 99
105 if (is_chrome_branded) { 100 if (is_chrome_branded) {
106 sources += [ 101 sources += [
107 "${root_gen_dir}/chrome/google_chrome_strings_${locale}.pak", 102 "${root_gen_dir}/chrome/google_chrome_strings_${locale}.pak",
108 "${root_gen_dir}/chrome/settings_google_chrome_strings.pak",
109 "${root_gen_dir}/components/strings/components_google_chrome_strings_${l ocale}.pak", 103 "${root_gen_dir}/components/strings/components_google_chrome_strings_${l ocale}.pak",
110 ] 104 ]
111 deps += [ 105 deps += [
112 "//chrome/app:google_chrome_strings", 106 "//chrome/app:google_chrome_strings",
113 "//chrome/app:settings_google_chrome_strings",
114 "//components/strings:components_google_chrome_strings", 107 "//components/strings:components_google_chrome_strings",
115 ] 108 ]
116 } else { 109 } else {
117 sources += [ 110 sources += [
118 "${root_gen_dir}/chrome/chromium_strings_${locale}.pak", 111 "${root_gen_dir}/chrome/chromium_strings_${locale}.pak",
119 "${root_gen_dir}/chrome/settings_chromium_strings.pak",
120 "${root_gen_dir}/components/strings/components_chromium_strings_${locale }.pak", 112 "${root_gen_dir}/components/strings/components_chromium_strings_${locale }.pak",
121 ] 113 ]
122 deps += [ 114 deps += [
123 "//chrome/app:chromium_strings", 115 "//chrome/app:chromium_strings",
124 "//chrome/app:settings_chromium_strings",
125 "//components/strings:components_chromium_strings", 116 "//components/strings:components_chromium_strings",
126 ] 117 ]
127 } 118 }
128 119
129 output = invoker.output 120 output = invoker.output
130 } 121 }
131 } 122 }
132 123
133 # Creates an action to call the repack_locales script. 124 # Creates an action to call the repack_locales script.
134 # 125 #
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 196
206 current_index = current_index + 1 197 current_index = current_index + 1
207 } 198 }
208 199
209 # The group that external targets depend on which collects all deps. 200 # The group that external targets depend on which collects all deps.
210 group(group_target_name) { 201 group(group_target_name) {
211 forward_variables_from(invoker, [ "visibility" ]) 202 forward_variables_from(invoker, [ "visibility" ])
212 public_deps = locale_targets 203 public_deps = locale_targets
213 } 204 }
214 } 205 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc ('k') | chrome/chrome_repack_resources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698