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 if ENABLE_AUTOFILL_DIALOG and OS != 'ios' and OS != 'android': | 111 if ENABLE_AUTOFILL_DIALOG: |
112 #e.g. '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/ | 112 #e.g. '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/ |
113 # address_input_strings_da.pak', | 113 # address_input_strings_da.pak', |
114 inputs.append(os.path.join(SHARE_INT_DIR, 'third_party', 'libaddressinput', | 114 inputs.append(os.path.join(SHARE_INT_DIR, 'third_party', 'libaddressinput', |
115 'address_input_strings_%s.pak' % locale)) | 115 'address_input_strings_%s.pak' % locale)) |
116 | 116 |
117 if ENABLE_EXTENSIONS: | 117 if ENABLE_EXTENSIONS: |
118 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/ | 118 #e.g. '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/ |
119 # device_bluetooth_strings_da.pak', | 119 # device_bluetooth_strings_da.pak', |
120 inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings', | 120 inputs.append(os.path.join(SHARE_INT_DIR, 'device', 'bluetooth', 'strings', |
121 'device_bluetooth_strings_%s.pak' % locale)) | 121 'device_bluetooth_strings_%s.pak' % locale)) |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 if print_outputs: | 263 if print_outputs: |
264 return list_outputs(locales) | 264 return list_outputs(locales) |
265 | 265 |
266 return repack_locales(locales) | 266 return repack_locales(locales) |
267 | 267 |
268 if __name__ == '__main__': | 268 if __name__ == '__main__': |
269 results = DoMain(sys.argv[1:]) | 269 results = DoMain(sys.argv[1:]) |
270 if results: | 270 if results: |
271 print results | 271 print results |
OLD | NEW |