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

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

Issue 1926403002: Remove BrowserDistribution::SHORTCUT_APP_LAUNCHER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160406-Mac-EnableAppLauncher0
Patch Set: Update comments Created 4 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 unified diff | Download patch
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 """Generates .h and .rc files for installer strings. Run "python 6 """Generates .h and .rc files for installer strings. Run "python
7 create_string_rc.py" for usage details. 7 create_string_rc.py" for usage details.
8 8
9 This script generates an rc file and header (NAME.{rc,h}) to be included in 9 This script generates an rc file and header (NAME.{rc,h}) to be included in
10 setup.exe. The rc file includes translations for strings pulled from the given 10 setup.exe. The rc file includes translations for strings pulled from the given
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 'IDS_SETUP_PATCH_FAILED', 57 'IDS_SETUP_PATCH_FAILED',
58 'IDS_INSTALL_OS_NOT_SUPPORTED', 58 'IDS_INSTALL_OS_NOT_SUPPORTED',
59 'IDS_INSTALL_OS_ERROR', 59 'IDS_INSTALL_OS_ERROR',
60 'IDS_INSTALL_TEMP_DIR_FAILED', 60 'IDS_INSTALL_TEMP_DIR_FAILED',
61 'IDS_INSTALL_UNCOMPRESSION_FAILED', 61 'IDS_INSTALL_UNCOMPRESSION_FAILED',
62 'IDS_INSTALL_INVALID_ARCHIVE', 62 'IDS_INSTALL_INVALID_ARCHIVE',
63 'IDS_INSTALL_INSUFFICIENT_RIGHTS', 63 'IDS_INSTALL_INSUFFICIENT_RIGHTS',
64 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', 64 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE',
65 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', 65 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS',
66 'IDS_SHORTCUT_TOOLTIP', 66 'IDS_SHORTCUT_TOOLTIP',
67 'IDS_SHORTCUT_NEW_WINDOW', 67 'IDS_SHORTCUT_NEW_WINDOW',
huangs 2016/05/04 15:54:08 Code search shows that these strings appear in mor
tapted 2016/05/05 07:14:18 This will come in a follow-up, but these need to g
68 'IDS_APP_LIST_SHORTCUT_NAME',
69 'IDS_APP_LIST_SHORTCUT_NAME_CANARY',
70 'IDS_APP_SHORTCUTS_SUBDIR_NAME', 68 'IDS_APP_SHORTCUTS_SUBDIR_NAME',
71 'IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY', 69 'IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY',
72 'IDS_INBOUND_MDNS_RULE_NAME', 70 'IDS_INBOUND_MDNS_RULE_NAME',
73 'IDS_INBOUND_MDNS_RULE_NAME_CANARY', 71 'IDS_INBOUND_MDNS_RULE_NAME_CANARY',
74 'IDS_INBOUND_MDNS_RULE_DESCRIPTION', 72 'IDS_INBOUND_MDNS_RULE_DESCRIPTION',
75 'IDS_INBOUND_MDNS_RULE_DESCRIPTION_CANARY', 73 'IDS_INBOUND_MDNS_RULE_DESCRIPTION_CANARY',
76 ] 74 ]
77 75
78 # The ID of the first resource string. 76 # The ID of the first resource string.
79 FIRST_RESOURCE_ID = 1600 77 FIRST_RESOURCE_ID = 1600
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 418
421 419
422 def main(): 420 def main():
423 args = ParseCommandLine() 421 args = ParseCommandLine()
424 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles() 422 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles()
425 return 0 423 return 0
426 424
427 425
428 if '__main__' == __name__: 426 if '__main__' == __name__:
429 sys.exit(main()) 427 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698