From e0d14e98e7e7e2e413944005c94fbbc2969b908a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Nov 2023 13:04:24 +0300 Subject: =?UTF-8?q?fixes=20#3822=20(=D0=9F=D1=80=D0=BE=D0=BF=D0=B0=D0=BB?= =?UTF-8?q?=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=20=D0=BE=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D0=B9=20=D0=B2=D1=8B=D0=B3=D1=80?= =?UTF-8?q?=D1=83=D0=B6=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D0=BF=D0=BB=D0=B0?= =?UTF-8?q?=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/pluginopts.cpp | 2 +- src/mir_core/src/Windows/langpack.cpp | 5 +++++ src/mir_core/src/mir_core.def | 1 + src/mir_core/src/mir_core64.def | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index 73b86e43d1..a39b28a73d 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -545,7 +545,7 @@ public: m_plugList.GetItemText(hdr->iItem, 2, buf, _countof(buf)); SetDlgItemText(m_hwnd, IDC_PLUGININFOFRAME, sel ? buf : L""); m_author.SetText(sel ? dat->author : L""); - m_plugInfo.SetText(sel ? TranslateW_LP(dat->description, &GetPluginByInstance(dat->hInst)) : L""); + m_plugInfo.SetText(sel ? TranslateW_UUID(dat->description, &dat->uuid) : L""); m_copyright.SetText(sel ? dat->copyright : L""); szUrl = sel ? _T2A(dat->homepage) : ""; diff --git a/src/mir_core/src/Windows/langpack.cpp b/src/mir_core/src/Windows/langpack.cpp index a71d3dabb2..912e8feb7c 100644 --- a/src/mir_core/src/Windows/langpack.cpp +++ b/src/mir_core/src/Windows/langpack.cpp @@ -567,6 +567,11 @@ MIR_CORE_DLL(wchar_t*) TranslateW_LP(const wchar_t *str, HPLUGIN pPlugin) return (wchar_t*)LangPackTranslateString(GetMuid(pPlugin), (LPCSTR)str, 1); } +MIR_CORE_DLL(wchar_t *) TranslateW_UUID(const wchar_t *str, const MUUID *uuid) +{ + return (wchar_t *)LangPackTranslateString(uuid, (LPCSTR)str, 1); +} + MIR_CORE_DLL(void) TranslateMenu_LP(HMENU hMenu, HPLUGIN pPlugin) { const MUUID *uuid = &pPlugin->getInfo().uuid; diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 899da28097..d243278ac2 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1561,3 +1561,4 @@ db_event_updateId @1772 ?getExtension@MFilePath@@QBE?AV?$CMStringT@_WV?$ChTraitsCRT@_W@@@@XZ @1782 NONAME ?isExecutable@MFilePath@@QBE_NXZ @1783 NONAME ?GetPlugin@CDlgBase@@QBEPBVCMPluginBase@@XZ @1784 NONAME +_TranslateW_UUID@8 @1785 NONAME diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 4e9a187683..efa7ecff00 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1561,3 +1561,4 @@ db_event_updateId @1772 ?getExtension@MFilePath@@QEBA?AV?$CMStringT@_WV?$ChTraitsCRT@_W@@@@XZ @1782 NONAME ?isExecutable@MFilePath@@QEBA_NXZ @1783 NONAME ?GetPlugin@CDlgBase@@QEBAPEBVCMPluginBase@@XZ @1784 NONAME +TranslateW_UUID @1785 NONAME -- cgit v1.2.3