From 5990acf51bac0d0a90193a4340fe4bd9485b999a Mon Sep 17 00:00:00 2001 From: Robo Date: Wed, 30 Dec 2015 10:49:45 +0530 Subject: [PATCH] initialize resource bundle with application locale awareness --- brightray/common/main_delegate.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brightray/common/main_delegate.cc b/brightray/common/main_delegate.cc index cf0a16fb27..218422f411 100644 --- a/brightray/common/main_delegate.cc +++ b/brightray/common/main_delegate.cc @@ -48,7 +48,9 @@ void MainDelegate::InitializeResourceBundle() { path = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak")); #endif - ui::ResourceBundle::InitSharedInstanceWithPakPath(path); + ui::ResourceBundle::InitSharedInstanceWithLocale("", NULL, + ui::ResourceBundle::DO_NOT_LOAD_COMMON_RESOURCES); + ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(path, ui::SCALE_FACTOR_100P); AddDataPackFromPath(&ui::ResourceBundle::GetSharedInstance(), path.DirName()); }