summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-19 18:11:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-19 18:12:06 +0300
commitd83705fff3f3d3bc25dd352f644847e250d4b65e (patch)
treede26fee9829dab446e04a95a1490775b59314f57 /src
parent74a646d6aba11a398b5b706d9294a9e233f09cc0 (diff)
LANGPACK_INFO: language to be untranslatable field on native language (Deutsch, Српска etc)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/lpopts.cpp9
1 files changed, 3 insertions, 6 deletions
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);