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

Side by Side Diff: chrome/tools/build/repack_locales.py

Issue 134903003: libaddressinput string translations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rouslan review Created 6 years, 11 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 | Annotate | Revision Log
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 """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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 #e.g. '<(grit_out_dir)/platform_locale_settings_da.pak' 68 #e.g. '<(grit_out_dir)/platform_locale_settings_da.pak'
69 inputs.append(os.path.join(GRIT_DIR, 69 inputs.append(os.path.join(GRIT_DIR,
70 'platform_locale_settings_%s.pak' % locale)) 70 'platform_locale_settings_%s.pak' % locale))
71 71
72 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/ 72 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/
73 # component_strings_da.pak', 73 # component_strings_da.pak',
74 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings', 74 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings',
75 'component_strings_%s.pak' % locale)) 75 'component_strings_%s.pak' % locale))
76 76
77 #e.g. '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/
78 # libaddressinput_strings_da.pak',
79 inputs.append(os.path.join(SHARE_INT_DIR, 'third_party', 'libaddressinput',
80 'libaddressinput_strings_%s.pak' % locale))
81
77 if OS != 'ios': 82 if OS != 'ios':
78 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak' 83 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak'
79 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit', 84 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit',
80 'webkit_strings_%s.pak' % locale)) 85 'webkit_strings_%s.pak' % locale))
81 86
82 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak', 87 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak',
83 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings', 88 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings',
84 'ui_strings_%s.pak' % locale)) 89 'ui_strings_%s.pak' % locale))
85 90
86 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_da.pak', 91 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_da.pak',
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 214
210 if print_outputs: 215 if print_outputs:
211 return list_outputs(locales) 216 return list_outputs(locales)
212 217
213 return repack_locales(locales) 218 return repack_locales(locales)
214 219
215 if __name__ == '__main__': 220 if __name__ == '__main__':
216 results = DoMain(sys.argv[1:]) 221 results = DoMain(sys.argv[1:])
217 if results: 222 if results:
218 print results 223 print results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698