File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,12 @@ void ShellMainDelegate::InitializeResourceBundle(const std::string& pref_locale)
190
190
if (!GetResourcesPakFilePath (pak_file))
191
191
LOG (FATAL) << " nw.pak file not found." ;
192
192
std::string locale = l10n_util::GetApplicationLocale (pref_locale);
193
- if (!GetLocalePakFilePath (locale, locale_file))
194
- LOG (FATAL) << locale << " .pak file not found." ;
193
+ if (!GetLocalePakFilePath (locale, locale_file)) {
194
+ LOG (WARNING) << locale << " .pak file not found." ;
195
+ locale = " en-US" ;
196
+ if (!GetLocalePakFilePath (locale, locale_file))
197
+ LOG (ERROR) << locale << " .pak file not found." ;
198
+ }
195
199
ui::ResourceBundle::InitSharedInstanceWithPakPath2 (pak_file, locale_file);
196
200
#else
197
201
FilePath pak_dir;
You can’t perform that action at this time.
0 commit comments