add app.setLocale() (#11469)
* infrastructure for setLocale via klang * add documentation for setLocale * add test for setLocale * fix spec * add spec and update docs * fix carriage feeds on windows * SetLocale() sets LC_ALL on Linux * in SetLocale() on Linux, use g_setenv() * fix tyop: '#ifdef OSX_POSIX' * make the linter happy * improvements from review
This commit is contained in:
parent
e3f1d90854
commit
ca34978e73
9 changed files with 92 additions and 16 deletions
|
@ -154,9 +154,12 @@ void AtomBrowserMainParts::PostEarlyInitialization() {
|
|||
}
|
||||
|
||||
int AtomBrowserMainParts::PreCreateThreads() {
|
||||
fake_browser_process_->SetApplicationLocale(
|
||||
l10n_util::GetApplicationLocale(""));
|
||||
return brightray::BrowserMainParts::PreCreateThreads();
|
||||
const int result = brightray::BrowserMainParts::PreCreateThreads();
|
||||
if (!result) {
|
||||
fake_browser_process_->SetApplicationLocale(
|
||||
brightray::BrowserClient::Get()->GetApplicationLocale());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void AtomBrowserMainParts::PreMainMessageLoopRun() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue