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

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

Issue 10790144: Revert 148046 - Revert 147650 - Implement installation of the Chrome App Host. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1215/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/installer/util/master_preferences_constants.cc ('k') | chrome/installer/util/product.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
37 # Quick hack to fix the path. 37 # Quick hack to fix the path.
38 sys.path.append(os.path.abspath('../../tools/grit/grit/extern')) 38 sys.path.append(os.path.abspath('../../tools/grit/grit/extern'))
39 sys.path.append(os.path.abspath('../tools/grit/grit/extern')) 39 sys.path.append(os.path.abspath('../tools/grit/grit/extern'))
40 import FP 40 import FP
41 41
42 # The IDs of strings we want to import from generated_resources.grd and include 42 # The IDs of strings we want to import from generated_resources.grd and include
43 # in setup.exe's resources. 43 # in setup.exe's resources.
44 kStringIds = [ 44 kStringIds = [
45 'IDS_PRODUCT_NAME', 45 'IDS_PRODUCT_NAME',
46 'IDS_SXS_SHORTCUT_NAME', 46 'IDS_SXS_SHORTCUT_NAME',
47 'IDS_PRODUCT_APP_HOST_NAME',
48 'IDS_PRODUCT_BINARIES_NAME',
47 'IDS_PRODUCT_DESCRIPTION', 49 'IDS_PRODUCT_DESCRIPTION',
48 'IDS_PRODUCT_FRAME_NAME', 50 'IDS_PRODUCT_FRAME_NAME',
49 'IDS_UNINSTALL_CHROME', 51 'IDS_UNINSTALL_CHROME',
50 'IDS_ABOUT_VERSION_COMPANY_NAME', 52 'IDS_ABOUT_VERSION_COMPANY_NAME',
51 'IDS_INSTALL_HIGHER_VERSION', 53 'IDS_INSTALL_HIGHER_VERSION',
54 'IDS_INSTALL_HIGHER_VERSION_APP_HOST',
52 'IDS_INSTALL_HIGHER_VERSION_CF', 55 'IDS_INSTALL_HIGHER_VERSION_CF',
53 'IDS_INSTALL_HIGHER_VERSION_CB_CF', 56 'IDS_INSTALL_HIGHER_VERSION_CB_CF',
54 'IDS_INSTALL_SYSTEM_LEVEL_EXISTS', 57 'IDS_INSTALL_SYSTEM_LEVEL_EXISTS',
55 'IDS_INSTALL_FAILED', 58 'IDS_INSTALL_FAILED',
56 'IDS_SAME_VERSION_REPAIR_FAILED', 59 'IDS_SAME_VERSION_REPAIR_FAILED',
57 'IDS_SAME_VERSION_REPAIR_FAILED_CF', 60 'IDS_SAME_VERSION_REPAIR_FAILED_CF',
58 'IDS_SETUP_PATCH_FAILED', 61 'IDS_SETUP_PATCH_FAILED',
59 'IDS_INSTALL_OS_NOT_SUPPORTED', 62 'IDS_INSTALL_OS_NOT_SUPPORTED',
60 'IDS_INSTALL_OS_ERROR', 63 'IDS_INSTALL_OS_ERROR',
61 'IDS_INSTALL_TEMP_DIR_FAILED', 64 'IDS_INSTALL_TEMP_DIR_FAILED',
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 branding = argv[2] 240 branding = argv[2]
238 translated_strings = CollectTranslatedStrings(branding) 241 translated_strings = CollectTranslatedStrings(branding)
239 kFilebase = os.path.join(argv[1], 'installer_util_strings') 242 kFilebase = os.path.join(argv[1], 'installer_util_strings')
240 WriteRCFile(translated_strings, kFilebase) 243 WriteRCFile(translated_strings, kFilebase)
241 WriteHeaderFile(translated_strings, kFilebase + '.h') 244 WriteHeaderFile(translated_strings, kFilebase + '.h')
242 return 0 245 return 0
243 246
244 247
245 if '__main__' == __name__: 248 if '__main__' == __name__:
246 sys.exit(main(sys.argv)) 249 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « chrome/installer/util/master_preferences_constants.cc ('k') | chrome/installer/util/product.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698