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