diff options
author | George Hazan <george.hazan@gmail.com> | 2024-02-27 14:24:08 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-02-27 14:24:08 +0300 |
commit | 9df4913882a3928a0ea61766419a1446769c3951 (patch) | |
tree | a7a277663e1de7654ffb9adf0b0aff77fdbe18bf /src | |
parent | 6803003d26debc79c90a1ec20078516ceefb30d5 (diff) |
Clist_Modern: fix for tab titles' translation in View Modes settings dialog
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/Windows/CCtrlPages.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/CCtrlPages.cpp b/src/mir_core/src/Windows/CCtrlPages.cpp index 890254fb3f..f8304a3d51 100644 --- a/src/mir_core/src/Windows/CCtrlPages.cpp +++ b/src/mir_core/src/Windows/CCtrlPages.cpp @@ -257,7 +257,11 @@ void CCtrlPages::InsertPage(TPageInfo *pPage) TCITEM tci = { 0 };
tci.mask = TCIF_PARAM | TCIF_TEXT;
tci.lParam = (LPARAM)pPage;
- tci.pszText = TranslateW_LP(pPage->m_ptszHeader);
+ if (auto *pDlg = pPage->m_pDlg)
+ tci.pszText = TranslateW_LP(pPage->m_ptszHeader, pDlg->GetPlugin());
+ else
+ tci.pszText = TranslateW_LP(pPage->m_ptszHeader);
+
if (pPage->m_hIcon) {
if (!m_hIml) {
m_hIml = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK, 0, 1);
|