OLD | NEW |
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 Loading... |
57 'IDS_INSTALL_FAILED', | 57 'IDS_INSTALL_FAILED', |
58 'IDS_SAME_VERSION_REPAIR_FAILED', | 58 'IDS_SAME_VERSION_REPAIR_FAILED', |
59 'IDS_SETUP_PATCH_FAILED', | 59 'IDS_SETUP_PATCH_FAILED', |
60 'IDS_INSTALL_OS_NOT_SUPPORTED', | 60 'IDS_INSTALL_OS_NOT_SUPPORTED', |
61 'IDS_INSTALL_OS_ERROR', | 61 'IDS_INSTALL_OS_ERROR', |
62 'IDS_INSTALL_TEMP_DIR_FAILED', | 62 'IDS_INSTALL_TEMP_DIR_FAILED', |
63 'IDS_INSTALL_UNCOMPRESSION_FAILED', | 63 'IDS_INSTALL_UNCOMPRESSION_FAILED', |
64 'IDS_INSTALL_INVALID_ARCHIVE', | 64 'IDS_INSTALL_INVALID_ARCHIVE', |
65 'IDS_INSTALL_INSUFFICIENT_RIGHTS', | 65 'IDS_INSTALL_INSUFFICIENT_RIGHTS', |
66 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', | 66 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', |
67 'IDS_UNINSTALL_COMPLETE', | |
68 'IDS_INSTALL_DIR_IN_USE', | |
69 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', | 67 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', |
70 'IDS_INSTALL_INCONSISTENT_UPDATE_POLICY', | 68 'IDS_INSTALL_INCONSISTENT_UPDATE_POLICY', |
71 'IDS_OEM_MAIN_SHORTCUT_NAME', | 69 'IDS_OEM_MAIN_SHORTCUT_NAME', |
72 'IDS_SHORTCUT_TOOLTIP', | 70 'IDS_SHORTCUT_TOOLTIP', |
73 'IDS_SHORTCUT_NEW_WINDOW', | 71 'IDS_SHORTCUT_NEW_WINDOW', |
74 'IDS_APP_LAUNCHER_PRODUCT_DESCRIPTION', | 72 'IDS_APP_LAUNCHER_PRODUCT_DESCRIPTION', |
75 'IDS_APP_LAUNCHER_SHORTCUT_TOOLTIP', | 73 'IDS_APP_LAUNCHER_SHORTCUT_TOOLTIP', |
76 'IDS_UNINSTALL_APP_LAUNCHER', | 74 'IDS_UNINSTALL_APP_LAUNCHER', |
77 'IDS_APP_LIST_SHORTCUT_NAME', | 75 'IDS_APP_LIST_SHORTCUT_NAME', |
78 'IDS_APP_LIST_SHORTCUT_NAME_CANARY', | 76 'IDS_APP_LIST_SHORTCUT_NAME_CANARY', |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 419 |
422 | 420 |
423 def main(): | 421 def main(): |
424 args = ParseCommandLine() | 422 args = ParseCommandLine() |
425 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles() | 423 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles() |
426 return 0 | 424 return 0 |
427 | 425 |
428 | 426 |
429 if '__main__' == __name__: | 427 if '__main__' == __name__: |
430 sys.exit(main()) | 428 sys.exit(main()) |
OLD | NEW |