From d83705fff3f3d3bc25dd352f644847e250d4b65e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Jul 2018 18:11:59 +0300 Subject: =?UTF-8?q?LANGPACK=5FINFO:=20language=20to=20be=20untranslatable?= =?UTF-8?q?=20field=20on=20native=20language=20(Deutsch,=20=D0=A1=D1=80?= =?UTF-8?q?=D0=BF=D1=81=D0=BA=D0=B0=20etc)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/lpopts.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/lpopts.cpp b/src/mir_app/src/lpopts.cpp index 667808bd01..ae8463f619 100644 --- a/src/mir_app/src/lpopts.cpp +++ b/src/mir_app/src/lpopts.cpp @@ -148,14 +148,11 @@ void CLangpackDlg::LoadLangpack(LANGPACK_INFO *pack) LANGPACK_INFO *pack2 = new LANGPACK_INFO(); *pack2 = *pack; - wchar_t tszName[512]; - mir_snwprintf(tszName, L"%s [%s]", - TranslateW(pack->tszLanguage), - pack->flags & LPF_DEFAULT ? TranslateT("built-in") : pack->tszFileName); + CMStringW wszName(FORMAT, L"%s [%s]", pack->tszLanguage, (pack->flags & LPF_DEFAULT) ? TranslateT("built-in") : pack->tszFileName); int idx = (pack->flags & LPF_DEFAULT) - ? m_languages.InsertString(tszName, 0, (LPARAM)pack2) - : m_languages.AddString(tszName, (LPARAM)pack2); + ? m_languages.InsertString(wszName, 0, (LPARAM)pack2) + : m_languages.AddString(wszName, (LPARAM)pack2); if (pack->flags & LPF_ENABLED) { m_languages.SetCurSel(idx); DisplayPackInfo(pack); -- cgit v1.2.3