Initialize locale on mac.
This commit is contained in:
parent
649730244b
commit
162e47ca15
1 changed files with 4 additions and 0 deletions
|
@ -8,11 +8,15 @@
|
||||||
#import "atom/browser/mac/atom_application_delegate.h"
|
#import "atom/browser/mac/atom_application_delegate.h"
|
||||||
#include "base/files/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#import "base/mac/foundation_util.h"
|
#import "base/mac/foundation_util.h"
|
||||||
|
#include "ui/base/l10n/l10n_util_mac.h"
|
||||||
#import "vendor/brightray/common/mac/main_application_bundle.h"
|
#import "vendor/brightray/common/mac/main_application_bundle.h"
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
|
||||||
void AtomBrowserMainParts::PreMainMessageLoopStart() {
|
void AtomBrowserMainParts::PreMainMessageLoopStart() {
|
||||||
|
// Initialize locale setting.
|
||||||
|
l10n_util::OverrideLocaleWithCocoaLocale();
|
||||||
|
|
||||||
// Force the NSApplication subclass to be used.
|
// Force the NSApplication subclass to be used.
|
||||||
NSApplication* application = [AtomApplication sharedApplication];
|
NSApplication* application = [AtomApplication sharedApplication];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue