Merge pull request #189 from deepak1556/resource_bundle_patch
initialize resource bundle with application locale awareness
This commit is contained in:
commit
33a9551410
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue