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

Unified Diff: chrome/app/policy/policy_templates.gypi

Issue 6969064: Start generating translated policy templates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: activate translations for mac Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/app/policy/policy_templates.gypi
diff --git a/chrome/app/policy/policy_templates.gypi b/chrome/app/policy/policy_templates.gypi
index b86c873b180b4423c1a7ba57b7d0267c99fcc506..a4f809f0d1c9d85cf2cca4ebda5a34ea4d5a4546 100644
--- a/chrome/app/policy/policy_templates.gypi
+++ b/chrome/app/policy/policy_templates.gypi
@@ -44,7 +44,7 @@
'action_name': 'pack_templates',
'variables': {
'zip_script':
- 'tools/build/win/make_zip_with_relative_entries.py'
+ 'tools/build/win/make_policy_zip.py'
},
'inputs': [
'<(version_path)',
@@ -59,8 +59,10 @@
'<(zip_script)',
'<@(_outputs)',
'<(grit_out_dir)/app/policy',
- '<@(template_files)',
- '<(version_path)'
+ # The list of files in the resulting archive will be a
+ # generated by combining the following list with an
+ # internal defined list in make_policy_zip.py.
+ '<@(locales)',
],
'message': 'Packing generated templates into <(_outputs)',
}
@@ -121,17 +123,14 @@
# Directory to collect the Localizable.strings files before
# they are copied to the bundle.
'output_path': '<(INTERMEDIATE_DIR)/app_manifest',
- # TODO(gfeher): replace this with <(locales) when we have real
- # translations
- 'available_locales': 'en',
},
'inputs': [
# TODO: remove this helper when we have loops in GYP
- '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Localizable.strings\' <(available_locales))',
+ '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Localizable.strings\' <(locales))',
],
'outputs': [
# TODO: remove this helper when we have loops in GYP
- '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Localizable.strings\' <(available_locales))',
+ '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Localizable.strings\' <(locales))',
],
'action': [
'cp', '-R',

Powered by Google App Engine
This is Rietveld 408576698