mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-12-05 20:59:47 +01:00
Fix context menu truncated regression on localization change
Don't skip preliminary switch to English when changing Localization to English -- it breaks NppParameters::getContextMenuFromXmlTree.
Regression was introduced by:
446cc980e8 (diff-686f6d3c1ec15b51f312bb5a68130dfa62292a8d19594fb0f3621c179970fa1fR816)
Fix #17249, close #17250
This commit is contained in:
parent
ac46fab1d2
commit
e30a4d6788
@ -859,8 +859,8 @@ intptr_t CALLBACK GeneralSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
|
|||||||
::SendDlgItemMessage(_hSelf, IDC_COMBO_LOCALIZATION, CB_GETLBTEXT, index, reinterpret_cast<LPARAM>(langName));
|
::SendDlgItemMessage(_hSelf, IDC_COMBO_LOCALIZATION, CB_GETLBTEXT, index, reinterpret_cast<LPARAM>(langName));
|
||||||
if (langName[0])
|
if (langName[0])
|
||||||
{
|
{
|
||||||
// Make English as basic language, but if we switch from another language to English, we can skip it
|
// Make English as basic language
|
||||||
if ((lstrcmpW(langName, L"English") != 0) && localizationSwitcher.switchToLang(L"English"))
|
if (localizationSwitcher.switchToLang(L"English"))
|
||||||
{
|
{
|
||||||
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_RELOADNATIVELANG, FALSE, 0);
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_RELOADNATIVELANG, FALSE, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user