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}/${WRAPPER_NAME}/Contents/Resources" | 14 cd "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Contents/Resources" |
15 | 15 |
16 # Remove the stale zh.lproj | 16 # Remove the stale zh.lproj |
17 # TODO: This can go away about 09/01/09, when they won't exist on the bots or | 17 # TODO: This can go away about 09/01/09, when they won't exist on the bots or |
18 # developers' local builds. | 18 # developers' local builds. |
19 rm -rf "zh.lproj" "en.lproj" | 19 rm -rf "zh.lproj" "en.lproj" |
20 | 20 |
21 # Provide an link for en.lproj that points to en-US.lproj. | 21 # Provide an link for en.lproj that points to en-US.lproj. |
| 22 |
| 23 # The standard OS language list includes English (en) and not a specific |
| 24 # "flavor" such as U.S. English (en-US). When checking for a language match, |
| 25 # the OS will remove subtags if no exact match is found, so that en will be |
| 26 # used if the user's preferred language list only contains British English |
| 27 # (en-GB) and no specific en-GB translation is available. |
| 28 # |
| 29 # To ensure that users with the default language list, which contains English |
| 30 # without any regional subtag, as well as users with a specific variant of |
| 31 # English with a regional subtag, will have access to an English-localized |
| 32 # application, a symbolic link from en.lproj to en-US.lproj is provided. |
22 ln -fhs "en-US.lproj" "en.lproj" | 33 ln -fhs "en-US.lproj" "en.lproj" |
OLD | NEW |