From 5a4ec571583845e2c6e7d005b400309072690d07 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Mar 2014 20:43:18 +0000 Subject: new setting in a mirandaboot.ini:DefaultLanguage git-svn-id: http://svn.miranda-ng.org/main/trunk@8721 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/newplugins.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules/plugins') 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); -- cgit v1.2.3