| OLD | NEW |
| (Empty) |
| 1 #!/bin/sh | |
| 2 | |
| 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 | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 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 | |
| 9 # with what Cocoa would like. | |
| 10 | |
| 11 set -e | |
| 12 | |
| 13 # Working in the resources directory | |
| 14 cd "${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources" | |
| 15 | |
| 16 # Provide an link for en.lproj that points to en_US.lproj. | |
| 17 | |
| 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, | |
| 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 | |
| 22 # (en_GB) and no specific en_GB translation is available. | |
| 23 # | |
| 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 | |
| 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. | |
| 28 ln -fhs "en_US.lproj" "en.lproj" | |
| OLD | NEW |