Merge pull request #189 from deepak1556/resource_bundle_patch

initialize resource bundle with application locale awareness
This commit is contained in:
Cheng Zhao 2016-01-04 10:58:42 +08:00
commit 33a9551410

View file

@ -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());
}