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

Side by Side Diff: chrome/installer/util/prebuild/create_string_rc.py

Issue 131763004: Merge 242400 "Remove installation of Chrome Frame." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This script generates an rc file and header (setup_strings.{rc,h}) to be 6 """This script generates an rc file and header (setup_strings.{rc,h}) to be
7 included in setup.exe. The rc file includes translations for strings pulled 7 included in setup.exe. The rc file includes translations for strings pulled
8 from generated_resource.grd and the localized .xtb files. 8 from generated_resource.grd and the localized .xtb files.
9 9
10 The header file includes IDs for each string, but also has values to allow 10 The header file includes IDs for each string, but also has values to allow
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 'IDS_PRODUCT_NAME', 45 'IDS_PRODUCT_NAME',
46 'IDS_SXS_SHORTCUT_NAME', 46 'IDS_SXS_SHORTCUT_NAME',
47 'IDS_PRODUCT_APP_LAUNCHER_NAME', 47 'IDS_PRODUCT_APP_LAUNCHER_NAME',
48 'IDS_PRODUCT_BINARIES_NAME', 48 'IDS_PRODUCT_BINARIES_NAME',
49 'IDS_PRODUCT_DESCRIPTION', 49 'IDS_PRODUCT_DESCRIPTION',
50 'IDS_PRODUCT_FRAME_NAME', 50 'IDS_PRODUCT_FRAME_NAME',
51 'IDS_UNINSTALL_CHROME', 51 'IDS_UNINSTALL_CHROME',
52 'IDS_ABOUT_VERSION_COMPANY_NAME', 52 'IDS_ABOUT_VERSION_COMPANY_NAME',
53 'IDS_INSTALL_HIGHER_VERSION', 53 'IDS_INSTALL_HIGHER_VERSION',
54 'IDS_INSTALL_HIGHER_VERSION_APP_LAUNCHER', 54 'IDS_INSTALL_HIGHER_VERSION_APP_LAUNCHER',
55 'IDS_INSTALL_HIGHER_VERSION_CF',
56 'IDS_INSTALL_HIGHER_VERSION_CB_CF',
57 'IDS_INSTALL_SYSTEM_LEVEL_EXISTS', 55 'IDS_INSTALL_SYSTEM_LEVEL_EXISTS',
58 'IDS_INSTALL_FAILED', 56 'IDS_INSTALL_FAILED',
59 'IDS_SAME_VERSION_REPAIR_FAILED', 57 'IDS_SAME_VERSION_REPAIR_FAILED',
60 'IDS_SAME_VERSION_REPAIR_FAILED_CF',
61 'IDS_SETUP_PATCH_FAILED', 58 'IDS_SETUP_PATCH_FAILED',
62 'IDS_INSTALL_OS_NOT_SUPPORTED', 59 'IDS_INSTALL_OS_NOT_SUPPORTED',
63 'IDS_INSTALL_OS_ERROR', 60 'IDS_INSTALL_OS_ERROR',
64 'IDS_INSTALL_TEMP_DIR_FAILED', 61 'IDS_INSTALL_TEMP_DIR_FAILED',
65 'IDS_INSTALL_UNCOMPRESSION_FAILED', 62 'IDS_INSTALL_UNCOMPRESSION_FAILED',
66 'IDS_INSTALL_INVALID_ARCHIVE', 63 'IDS_INSTALL_INVALID_ARCHIVE',
67 'IDS_INSTALL_INSUFFICIENT_RIGHTS', 64 'IDS_INSTALL_INSUFFICIENT_RIGHTS',
68 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', 65 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE',
69 'IDS_UNINSTALL_COMPLETE', 66 'IDS_UNINSTALL_COMPLETE',
70 'IDS_INSTALL_DIR_IN_USE', 67 'IDS_INSTALL_DIR_IN_USE',
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 branding = argv[2] 245 branding = argv[2]
249 translated_strings = CollectTranslatedStrings(branding) 246 translated_strings = CollectTranslatedStrings(branding)
250 kFilebase = os.path.join(argv[1], 'installer_util_strings') 247 kFilebase = os.path.join(argv[1], 'installer_util_strings')
251 WriteRCFile(translated_strings, kFilebase) 248 WriteRCFile(translated_strings, kFilebase)
252 WriteHeaderFile(translated_strings, kFilebase + '.h') 249 WriteHeaderFile(translated_strings, kFilebase + '.h')
253 return 0 250 return 0
254 251
255 252
256 if '__main__' == __name__: 253 if '__main__' == __name__:
257 sys.exit(main(sys.argv)) 254 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « chrome/installer/util/master_preferences_unittest.cc ('k') | chrome/installer/util/util_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698