Fix missing translation for the context menu items
Fix tab-bar-drag-to-edit-area move-and-clone ("Move to Other View" and "Clone to Other View") menu items not translating. Fix #13088, close #13097pull/13118/head
parent
3f13957f69
commit
dbd0c43dd1
|
@ -6764,11 +6764,11 @@ bool Notepad_plus::reloadLang()
|
||||||
}
|
}
|
||||||
if (_tabPopupDropMenu.isCreated())
|
if (_tabPopupDropMenu.isCreated())
|
||||||
{
|
{
|
||||||
_nativeLangSpeaker.changeLangTabDrapContextMenu(_tabPopupDropMenu.getMenuHandle());
|
_nativeLangSpeaker.changeLangTabDropContextMenu(_tabPopupDropMenu.getMenuHandle());
|
||||||
}
|
}
|
||||||
if (_fileSwitcherMultiFilePopupMenu.isCreated())
|
if (_fileSwitcherMultiFilePopupMenu.isCreated())
|
||||||
{
|
{
|
||||||
//_nativeLangSpeaker.changeLangTabDrapContextMenu(_fileSwitcherMultiFilePopupMenu.getMenuHandle());
|
//_nativeLangSpeaker.changeLangTabDropContextMenu(_fileSwitcherMultiFilePopupMenu.getMenuHandle());
|
||||||
}
|
}
|
||||||
if (_preference.isCreated())
|
if (_preference.isCreated())
|
||||||
{
|
{
|
||||||
|
|
|
@ -244,7 +244,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
||||||
itemUnitArray.push_back(MenuItemUnit(IDM_VIEW_GOTO_ANOTHER_VIEW, goToView));
|
itemUnitArray.push_back(MenuItemUnit(IDM_VIEW_GOTO_ANOTHER_VIEW, goToView));
|
||||||
itemUnitArray.push_back(MenuItemUnit(IDM_VIEW_CLONE_TO_ANOTHER_VIEW, cloneToView));
|
itemUnitArray.push_back(MenuItemUnit(IDM_VIEW_CLONE_TO_ANOTHER_VIEW, cloneToView));
|
||||||
_tabPopupDropMenu.create(_pPublicInterface->getHSelf(), itemUnitArray, _mainMenuHandle);
|
_tabPopupDropMenu.create(_pPublicInterface->getHSelf(), itemUnitArray, _mainMenuHandle);
|
||||||
_nativeLangSpeaker.changeLangTabDrapContextMenu(_tabPopupDropMenu.getMenuHandle());
|
_nativeLangSpeaker.changeLangTabDropContextMenu(_tabPopupDropMenu.getMenuHandle());
|
||||||
}
|
}
|
||||||
_tabPopupDropMenu.display(p);
|
_tabPopupDropMenu.display(p);
|
||||||
}
|
}
|
||||||
|
|
|
@ -443,7 +443,7 @@ void NativeLangSpeaker::changeLangTabContextMenu(HMENU hCM)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeLangSpeaker::changeLangTabDrapContextMenu(HMENU hCM)
|
void NativeLangSpeaker::changeLangTabDropContextMenu(HMENU hCM)
|
||||||
{
|
{
|
||||||
const int POS_GO2VIEW = 0;
|
const int POS_GO2VIEW = 0;
|
||||||
const int POS_CLONE2VIEW = 1;
|
const int POS_CLONE2VIEW = 1;
|
||||||
|
@ -465,10 +465,10 @@ void NativeLangSpeaker::changeLangTabDrapContextMenu(HMENU hCM)
|
||||||
{
|
{
|
||||||
TiXmlElementA *element = childNode->ToElement();
|
TiXmlElementA *element = childNode->ToElement();
|
||||||
int ordre;
|
int ordre;
|
||||||
element->Attribute("CMID", &ordre);
|
element->Attribute("CMDID", &ordre);
|
||||||
if (ordre == 5)
|
if (ordre == IDM_VIEW_GOTO_ANOTHER_VIEW)
|
||||||
goToViewA = element->Attribute("name");
|
goToViewA = element->Attribute("name");
|
||||||
else if (ordre == 6)
|
else if (ordre == IDM_VIEW_CLONE_TO_ANOTHER_VIEW)
|
||||||
cloneToViewA = element->Attribute("name");
|
cloneToViewA = element->Attribute("name");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
void changeLangTabContextMenu(HMENU hCM);
|
void changeLangTabContextMenu(HMENU hCM);
|
||||||
TiXmlNodeA * searchDlgNode(TiXmlNodeA *node, const char *dlgTagName);
|
TiXmlNodeA * searchDlgNode(TiXmlNodeA *node, const char *dlgTagName);
|
||||||
bool changeDlgLang(HWND hDlg, const char *dlgTagName, char *title = NULL, size_t titleMaxSize = 0);
|
bool changeDlgLang(HWND hDlg, const char *dlgTagName, char *title = NULL, size_t titleMaxSize = 0);
|
||||||
void changeLangTabDrapContextMenu(HMENU hCM);
|
void changeLangTabDropContextMenu(HMENU hCM);
|
||||||
generic_string getSpecialMenuEntryName(const char *entryName) const;
|
generic_string getSpecialMenuEntryName(const char *entryName) const;
|
||||||
generic_string getNativeLangMenuString(int itemID) const;
|
generic_string getNativeLangMenuString(int itemID) const;
|
||||||
generic_string getShortcutNameString(int itemID) const;
|
generic_string getShortcutNameString(int itemID) const;
|
||||||
|
|
Loading…
Reference in New Issue