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

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

Issue 132583002: Installer string cleaning following Chrome Frame removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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 29 matching lines...) Expand all
40 from grit.extern import tclib 40 from grit.extern import tclib
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_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',
51 'IDS_UNINSTALL_CHROME', 50 'IDS_UNINSTALL_CHROME',
52 'IDS_ABOUT_VERSION_COMPANY_NAME', 51 'IDS_ABOUT_VERSION_COMPANY_NAME',
53 'IDS_INSTALL_HIGHER_VERSION', 52 'IDS_INSTALL_HIGHER_VERSION',
54 'IDS_INSTALL_HIGHER_VERSION_APP_LAUNCHER', 53 'IDS_INSTALL_HIGHER_VERSION_APP_LAUNCHER',
55 'IDS_INSTALL_SYSTEM_LEVEL_EXISTS',
56 'IDS_INSTALL_FAILED', 54 'IDS_INSTALL_FAILED',
57 'IDS_SAME_VERSION_REPAIR_FAILED', 55 'IDS_SAME_VERSION_REPAIR_FAILED',
58 'IDS_SETUP_PATCH_FAILED', 56 'IDS_SETUP_PATCH_FAILED',
59 'IDS_INSTALL_OS_NOT_SUPPORTED', 57 'IDS_INSTALL_OS_NOT_SUPPORTED',
60 'IDS_INSTALL_OS_ERROR', 58 'IDS_INSTALL_OS_ERROR',
61 'IDS_INSTALL_TEMP_DIR_FAILED', 59 'IDS_INSTALL_TEMP_DIR_FAILED',
62 'IDS_INSTALL_UNCOMPRESSION_FAILED', 60 'IDS_INSTALL_UNCOMPRESSION_FAILED',
63 'IDS_INSTALL_INVALID_ARCHIVE', 61 'IDS_INSTALL_INVALID_ARCHIVE',
64 'IDS_INSTALL_INSUFFICIENT_RIGHTS', 62 'IDS_INSTALL_INSUFFICIENT_RIGHTS',
65 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', 63 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE',
66 'IDS_UNINSTALL_COMPLETE', 64 'IDS_UNINSTALL_COMPLETE',
67 'IDS_INSTALL_DIR_IN_USE', 65 'IDS_INSTALL_DIR_IN_USE',
68 'IDS_INSTALL_NON_MULTI_INSTALLATION_EXISTS',
69 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', 66 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS',
70 'IDS_INSTALL_READY_MODE_REQUIRES_CHROME',
71 'IDS_INSTALL_INCONSISTENT_UPDATE_POLICY', 67 'IDS_INSTALL_INCONSISTENT_UPDATE_POLICY',
72 'IDS_OEM_MAIN_SHORTCUT_NAME', 68 'IDS_OEM_MAIN_SHORTCUT_NAME',
73 'IDS_SHORTCUT_TOOLTIP', 69 'IDS_SHORTCUT_TOOLTIP',
74 'IDS_SHORTCUT_NEW_WINDOW', 70 'IDS_SHORTCUT_NEW_WINDOW',
75 'IDS_APP_LAUNCHER_PRODUCT_DESCRIPTION', 71 'IDS_APP_LAUNCHER_PRODUCT_DESCRIPTION',
76 'IDS_APP_LAUNCHER_SHORTCUT_TOOLTIP', 72 'IDS_APP_LAUNCHER_SHORTCUT_TOOLTIP',
77 'IDS_UNINSTALL_APP_LAUNCHER', 73 'IDS_UNINSTALL_APP_LAUNCHER',
78 'IDS_APP_LIST_SHORTCUT_NAME', 74 'IDS_APP_LIST_SHORTCUT_NAME',
79 'IDS_APP_LIST_SHORTCUT_NAME_CANARY', 75 'IDS_APP_LIST_SHORTCUT_NAME_CANARY',
80 'IDS_APP_SHORTCUTS_SUBDIR_NAME', 76 'IDS_APP_SHORTCUTS_SUBDIR_NAME',
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 branding = argv[2] 241 branding = argv[2]
246 translated_strings = CollectTranslatedStrings(branding) 242 translated_strings = CollectTranslatedStrings(branding)
247 kFilebase = os.path.join(argv[1], 'installer_util_strings') 243 kFilebase = os.path.join(argv[1], 'installer_util_strings')
248 WriteRCFile(translated_strings, kFilebase) 244 WriteRCFile(translated_strings, kFilebase)
249 WriteHeaderFile(translated_strings, kFilebase + '.h') 245 WriteHeaderFile(translated_strings, kFilebase + '.h')
250 return 0 246 return 0
251 247
252 248
253 if '__main__' == __name__: 249 if '__main__' == __name__:
254 sys.exit(main(sys.argv)) 250 sys.exit(main(sys.argv))
OLDNEW
« chrome/installer/setup/setup_main.cc ('K') | « chrome/installer/util/chrome_frame_distribution.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698