diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-23 20:43:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-23 20:43:18 +0000 |
commit | 5a4ec571583845e2c6e7d005b400309072690d07 (patch) | |
tree | fa875f92541c68fc7d65f692bf9db6f501f7912f /src/modules/plugins | |
parent | 908a56b91845eea1ffcdbd27458e2fa7c62c009f (diff) |
new setting in a mirandaboot.ini:DefaultLanguage
git-svn-id: http://svn.miranda-ng.org/main/trunk@8721 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 5a9dcb55fa..8a33ddbea1 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -818,6 +818,14 @@ int LoadNewPluginsModuleInfos(void) // remember where the mirandaboot.ini goes
PathToAbsoluteT(_T("mirandaboot.ini"), mirandabootini);
+
+ TCHAR tszDefaultLang[100];
+ if (GetPrivateProfileString(_T("Language"), _T("DefaultLanguage"), _T(""), tszDefaultLang, SIZEOF(tszDefaultLang), mirandabootini)) {
+ TCHAR tszLangPath[MAX_PATH];
+ PathToAbsoluteT(tszDefaultLang, tszLangPath);
+ LoadLangPack(tszLangPath);
+ }
+
// look for all *.dll's
enumPlugins(scanPluginsDir, 0, 0);
|