initialize resource bundle with application locale awareness

This commit is contained in:
Robo 2015-12-30 10:49:45 +05:30
parent 47237cfbd2
commit 5990acf51b

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