Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: Shared/PluginUserSettings.cpp

Issue 9451102: Filterlists downloads changes (Closed)
Patch Set: Created Feb. 28, 2013, 10:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Shared/PluginSystem.cpp ('k') | html/static/js/IESettings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Shared/PluginUserSettings.cpp
===================================================================
--- a/Shared/PluginUserSettings.cpp
+++ b/Shared/PluginUserSettings.cpp
@@ -90,17 +90,9 @@
static CString sGetLanguage()
{
- CString lang;
+ CPluginSettings* settings = CPluginSettings::GetInstance();
- LANGID lcid = ::GetUserDefaultLangID();
-
- TCHAR language[128] = {0};
- if (::GetLocaleInfo(lcid, LOCALE_SISO639LANGNAME, language, countof(language) - 1))
- {
- lang = language;
- }
-
- return lang;
+ return settings->GetString(SETTING_LANGUAGE);
}
@@ -177,6 +169,8 @@
CComBSTR language = pDispparams->rgvarg[0].bstrVal;
settings->SetString(SETTING_LANGUAGE, (BSTR)language);
+ CPluginDictionary* dict = CPluginDictionary::GetInstance();
+ dict->SetLanguage((BSTR)language);
settings->Write();
settings->CheckFilterAndDownload();
« no previous file with comments | « Shared/PluginSystem.cpp ('k') | html/static/js/IESettings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld