From d8a81a7a63b37b760d5c22641ed4f4b1cfbb232a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Mar 2014 21:16:11 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@8725 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/newplugins.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/modules/plugins') diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 8a33ddbea1..5a3ea6a735 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "plugins.h" #include "..\database\profilemanager.h" +#include "..\langpack\langpack.h" void LoadExtraIconsModule(); @@ -652,6 +653,8 @@ static int LaunchServicePlugin(pluginEntry *p) p->pclass |= PCLASS_LOADED; } + Langpack_LoadLangpack(); + INT_PTR res = CallService(MS_SERVICEMODE_LAUNCH, 0, 0); if (res != CALLSERVICE_NOTFOUND) return res; @@ -819,13 +822,6 @@ 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