OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Usage: generate_localizer [xib_path] [output_dot_h_path] [output_dot_mm_path] | 7 # Usage: generate_localizer [xib_path] [output_dot_h_path] [output_dot_mm_path] |
8 # | 8 # |
9 # Extracts all the localizable strings that start with "^IDS" from the given | 9 # Extracts all the localizable strings that start with "^IDS" from the given |
10 # xib file, and then generates a localizer to process those strings. | 10 # xib file, and then generates a localizer to process those strings. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 # Write out the file | 125 # Write out the file |
126 file_fd = open(output_path, 'w') | 126 file_fd = open(output_path, 'w') |
127 file_fd.write(h_file_content) | 127 file_fd.write(h_file_content) |
128 file_fd.close() | 128 file_fd.close() |
129 | 129 |
130 return 0 | 130 return 0 |
131 | 131 |
132 if __name__ == '__main__': | 132 if __name__ == '__main__': |
133 sys.exit(Main(sys.argv)) | 133 sys.exit(Main(sys.argv)) |
OLD | NEW |