]> khamidou — GitHub mirrors - electron.git/commitdiff
Initialize locale on mac.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 29 May 2014 07:54:25 +0000 (15:54 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 29 May 2014 07:54:25 +0000 (15:54 +0800)
atom/browser/atom_browser_main_parts_mac.mm

index 6174cfb52dbe3264992ac382ea8dfccf9f1b965b..d5b23aef4f9d846b5ee81373e36922b701b7002d 100644 (file)
@@ -8,11 +8,15 @@
 #import "atom/browser/mac/atom_application_delegate.h"
 #include "base/files/file_path.h"
 #import "base/mac/foundation_util.h"
+#include "ui/base/l10n/l10n_util_mac.h"
 #import "vendor/brightray/common/mac/main_application_bundle.h"
 
 namespace atom {
 
 void AtomBrowserMainParts::PreMainMessageLoopStart() {
+  // Initialize locale setting.
+  l10n_util::OverrideLocaleWithCocoaLocale();
+
   // Force the NSApplication subclass to be used.
   NSApplication* application = [AtomApplication sharedApplication];