| 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 """Helper script to repack paks for a list of locales. | 6 """Helper script to repack paks for a list of locales. |
| 7 | 7 |
| 8 Gyp doesn't have any built-in looping capability, so this just provides a way to | 8 Gyp doesn't have any built-in looping capability, so this just provides a way to |
| 9 loop over a list of locales when repacking pak files, thus avoiding a | 9 loop over a list of locales when repacking pak files, thus avoiding a |
| 10 proliferation of mostly duplicate, cut-n-paste gyp actions. | 10 proliferation of mostly duplicate, cut-n-paste gyp actions. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 'content_strings_%s.pak' % locale)) | 101 'content_strings_%s.pak' % locale)) |
| 102 | 102 |
| 103 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_da.pak', | 103 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_da.pak', |
| 104 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', | 104 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', |
| 105 'ui_strings_%s.pak' % locale)) | 105 'ui_strings_%s.pak' % locale)) |
| 106 | 106 |
| 107 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_da.pak', | 107 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_da.pak', |
| 108 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', | 108 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', |
| 109 'app_locale_settings_%s.pak' % locale)) | 109 'app_locale_settings_%s.pak' % locale)) |
| 110 | 110 |
| 111 else: |
| 112 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ios/chrome/ios_strings_resources_da.pak' |
| 113 inputs.append(os.path.join(SHARE_INT_DIR, 'ios', 'chrome', |
| 114 'ios_strings_resources_%s.pak' % locale)) |
| 115 |
| 111 if ENABLE_AUTOFILL_DIALOG: | 116 if ENABLE_AUTOFILL_DIALOG: |
| 112 #e.g. '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/ | 117 #e.g. '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/ |
| 113 # address_input_strings_da.pak', | 118 # address_input_strings_da.pak', |
| 114 inputs.append(os.path.join(SHARE_INT_DIR, 'third_party', 'libaddressinput', | 119 inputs.append(os.path.join(SHARE_INT_DIR, 'third_party', 'libaddressinput', |
| 115 'address_input_strings_%s.pak' % locale)) | 120 'address_input_strings_%s.pak' % locale)) |
| 116 | 121 |
| 117 if ENABLE_EXTENSIONS: | 122 if ENABLE_EXTENSIONS: |
| 118 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/ | 123 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/ |
| 119 # device_bluetooth_strings_da.pak', | 124 # device_bluetooth_strings_da.pak', |
| 120 inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings', | 125 inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings', |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 267 |
| 263 if print_outputs: | 268 if print_outputs: |
| 264 return list_outputs(locales) | 269 return list_outputs(locales) |
| 265 | 270 |
| 266 return repack_locales(locales) | 271 return repack_locales(locales) |
| 267 | 272 |
| 268 if __name__ == '__main__': | 273 if __name__ == '__main__': |
| 269 results = DoMain(sys.argv[1:]) | 274 results = DoMain(sys.argv[1:]) |
| 270 if results: | 275 if results: |
| 271 print results | 276 print results |
| OLD | NEW |