From 88f6179361e5b378c2938c77674d28cd1dc9a4ed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Mar 2014 14:19:43 +0000 Subject: - language packs' directory is now %miranda_path%\Languages - lang pack loading code restructurization git-svn-id: http://svn.miranda-ng.org/main/trunk@8738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/db.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mir_core/db.cpp') diff --git a/src/mir_core/db.cpp b/src/mir_core/db.cpp index f1aefcecce..e87c371898 100644 --- a/src/mir_core/db.cpp +++ b/src/mir_core/db.cpp @@ -354,6 +354,11 @@ MIR_CORE_DLL(MCONTACT) db_find_next(MCONTACT hContact, const char *szProto) extern "C" MIR_CORE_DLL(void) db_setCurrent(MIDatabase *_db) { currDb = _db; + + // try to get the langpack's name from a profile + ptrT langpack(db_get_tsa(NULL, "Langpack", "Current")); + if (langpack && langpack[0] != '\0') + LoadLangPack(langpack); } MIR_CORE_DLL(BOOL) db_set_resident(const char *szModule, const char *szService, BOOL bEnable) -- cgit v1.2.3