| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'IDS_PRODUCT_APP_LAUNCHER_NAME', # Used in App Launcher registry. | 50 'IDS_PRODUCT_APP_LAUNCHER_NAME', # Used in App Launcher registry. |
| 51 'IDS_PRODUCT_BINARIES_NAME', | 51 'IDS_PRODUCT_BINARIES_NAME', |
| 52 'IDS_PRODUCT_DESCRIPTION', | 52 'IDS_PRODUCT_DESCRIPTION', |
| 53 'IDS_ABOUT_VERSION_COMPANY_NAME', | 53 'IDS_ABOUT_VERSION_COMPANY_NAME', |
| 54 'IDS_INSTALL_HIGHER_VERSION', | 54 'IDS_INSTALL_HIGHER_VERSION', |
| 55 'IDS_INSTALL_FAILED', | 55 'IDS_INSTALL_FAILED', |
| 56 'IDS_SAME_VERSION_REPAIR_FAILED', | 56 'IDS_SAME_VERSION_REPAIR_FAILED', |
| 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_SINGLETON_ACQUISITION_FAILED', |
| 60 'IDS_INSTALL_TEMP_DIR_FAILED', | 61 'IDS_INSTALL_TEMP_DIR_FAILED', |
| 61 'IDS_INSTALL_UNCOMPRESSION_FAILED', | 62 'IDS_INSTALL_UNCOMPRESSION_FAILED', |
| 62 'IDS_INSTALL_INVALID_ARCHIVE', | 63 'IDS_INSTALL_INVALID_ARCHIVE', |
| 63 'IDS_INSTALL_INSUFFICIENT_RIGHTS', | 64 'IDS_INSTALL_INSUFFICIENT_RIGHTS', |
| 64 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', | 65 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', |
| 65 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', | 66 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', |
| 66 'IDS_SHORTCUT_TOOLTIP', | 67 'IDS_SHORTCUT_TOOLTIP', |
| 67 'IDS_SHORTCUT_NEW_WINDOW', | 68 'IDS_SHORTCUT_NEW_WINDOW', |
| 68 'IDS_APP_SHORTCUTS_SUBDIR_NAME', | 69 'IDS_APP_SHORTCUTS_SUBDIR_NAME', |
| 69 'IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY', | 70 'IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY', |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 420 |
| 420 | 421 |
| 421 def main(): | 422 def main(): |
| 422 args = ParseCommandLine() | 423 args = ParseCommandLine() |
| 423 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles() | 424 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles() |
| 424 return 0 | 425 return 0 |
| 425 | 426 |
| 426 | 427 |
| 427 if '__main__' == __name__: | 428 if '__main__' == __name__: |
| 428 sys.exit(main()) | 429 sys.exit(main()) |
| OLD | NEW |