OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
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 # This script is intended to run from a "postbuild" action from within Xcode. | 7 # This script is intended to run from a "postbuild" action from within Xcode. |
8 # It will create any symlinks needed to sync up what comes from the GRIT files | 8 # It will create any symlinks needed to sync up what comes from the GRIT files |
9 # with what Cocoa would like. | 9 # with what Cocoa would like. |
10 | 10 |
11 set -e | 11 set -e |
12 | 12 |
13 # Working in the resources directory | 13 # Working in the resources directory |
14 cd "${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources" | 14 cd "${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources" |
15 | 15 |
16 # Provide an link for en.lproj that points to en_US.lproj. | 16 # Provide an link for en.lproj that points to en_US.lproj. |
17 | 17 |
18 # The standard OS language list includes English (en) and not a specific | 18 # The standard OS language list includes English (en) and not a specific |
19 # "flavor" such as U.S. English (en_US). When checking for a language match, | 19 # "flavor" such as U.S. English (en_US). When checking for a language match, |
20 # the OS will remove subtags if no exact match is found, so that en will be | 20 # the OS will remove subtags if no exact match is found, so that en will be |
21 # used if the user's preferred language list only contains British English | 21 # used if the user's preferred language list only contains British English |
22 # (en_GB) and no specific en_GB translation is available. | 22 # (en_GB) and no specific en_GB translation is available. |
23 # | 23 # |
24 # To ensure that users with the default language list, which contains English | 24 # To ensure that users with the default language list, which contains English |
25 # without any regional subtag, as well as users with a specific variant of | 25 # without any regional subtag, as well as users with a specific variant of |
26 # English with a regional subtag, will have access to an English-localized | 26 # English with a regional subtag, will have access to an English-localized |
27 # application, a symbolic link from en.lproj to en_US.lproj is provided. | 27 # application, a symbolic link from en.lproj to en_US.lproj is provided. |
28 ln -fhs "en_US.lproj" "en.lproj" | 28 ln -fhs "en_US.lproj" "en.lproj" |
OLD | NEW |