summaryrefslogtreecommitdiff
path: root/src/modules/langpack/lpopts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/langpack/lpopts.cpp')
-rw-r--r--src/modules/langpack/lpopts.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/langpack/lpopts.cpp b/src/modules/langpack/lpopts.cpp
index b1c11ae665..5ea238b859 100644
--- a/src/modules/langpack/lpopts.cpp
+++ b/src/modules/langpack/lpopts.cpp
@@ -166,7 +166,9 @@ INT_PTR CALLBACK DlgLangpackOpt(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
for (int i = 0; i < count; i++) {
LANGPACK_INFO *pack = (LANGPACK_INFO*)ComboBox_GetItemData(hwndList, i);
if (i == idx) {
- db_set_ws(NULL, "Langpack", "Current", pack->tszFileName);
+ db_set_ts(NULL, "Langpack", "Current", pack->tszFileName);
+ PathToAbsoluteT(_T("\\mirandaboot.ini"), tszPath);
+ WritePrivateProfileString(_T("Language"), _T("DefaultLanguage"), pack->tszFileName, tszPath);
lstrcpy(tszPath, pack->tszFullPath);
pack->flags |= LPF_ENABLED;
}