As a premise, I using Japanese on editor.
I wanted to extend editor menu, So I written code for below.
Extender = MakeShareable(new FExtender);
Extender->AddMenuExtension(
"LevelEditor",
EExtensionHook::Before,
NULL,
FMenuExtensionDelegate::CreateRaw(this, &MyClass::OnWindowMenuExtension)
);
But, The above does not work.
After investigation, Seem to be searched the section with a character string excluding space from the display name, so I chaned “LevelEditor” to as below.
FName(*NSLOCTEXT("UnrealEditor", "WorkspaceMenu_LevelEditorCategory", "Level Editor").ToString().Replace(TEXT(" "), TEXT("")))
I think that it will be like this if you want to operate in both Japanese and English.
Is this the correct way?