summaryrefslogtreecommitdiffstats
path: root/chrome/tools/mac_helpers/infoplist_strings_util.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/tools/mac_helpers/infoplist_strings_util.mm')
-rw-r--r--chrome/tools/mac_helpers/infoplist_strings_util.mm8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/tools/mac_helpers/infoplist_strings_util.mm b/chrome/tools/mac_helpers/infoplist_strings_util.mm
index 70fbca6..f2bbf7a 100644
--- a/chrome/tools/mac_helpers/infoplist_strings_util.mm
+++ b/chrome/tools/mac_helpers/infoplist_strings_util.mm
@@ -267,10 +267,14 @@ int main(int argc, char* const argv[]) {
}
// Make sure the lproj we write to exists
+ NSString *lproj_name = [NSString stringWithFormat:@"%s.lproj", cur_lang];
+ // For Cocoa to find the locale at runtime, it needs to use '_' instead of
+ // '-'. (http://crbug.com/20441)
+ lproj_name = [lproj_name stringByReplacingOccurrencesOfString:@"-"
+ withString:@"_"];
NSString *output_path =
[[NSString stringWithUTF8String:output_dir]
- stringByAppendingPathComponent:
- [NSString stringWithFormat:@"%s.lproj", cur_lang]];
+ stringByAppendingPathComponent:lproj_name];
NSError* error = nil;
if (![fm fileExistsAtPath:output_path] &&
![fm createDirectoryAtPath:output_path