From 4da9faca3b8cb8687017ca4acc9c1164964062ad Mon Sep 17 00:00:00 2001 From: "gwilson@google.com" Date: Fri, 2 Apr 2010 18:27:09 +0000 Subject: Modifies the way setup gets the system locale by getting the user's default locale ID instead of the thread Locale. R=cpu,kuchhal BUG=39986 TEST=Shortcuts created on install should be in the user's default language, not system language, also see bug Review URL: http://codereview.chromium.org/1597002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43501 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/installer/util/l10n_string_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/installer') diff --git a/chrome/installer/util/l10n_string_util.cc b/chrome/installer/util/l10n_string_util.cc index 6be1c61..b28b459 100644 --- a/chrome/installer/util/l10n_string_util.cc +++ b/chrome/installer/util/l10n_string_util.cc @@ -25,7 +25,7 @@ std::wstring GetSystemLanguage() { if (!language.empty()) return language; // We don't have ICU at this point, so we use win32 apis. - LCID id = GetThreadLocale(); + LCID id = GetUserDefaultLangID(); int length = GetLocaleInfo(id, LOCALE_SISO639LANGNAME, 0, 0); if (0 == length) { language = L"en-us"; -- cgit v1.1