After localizing the command options, I want to keep the English shortcut keys

Hi,@menno
You helped me again, thank you!
This is the code I have successfully tested, I will submit it to others for reference.
C#

Rhino.Input.Custom.GetOption go = new Rhino.Input.Custom.GetOption();
string str_test_local = "测试"; //your localization
Rhino.UI.LocalizeStringPair lsp = new Rhino.UI.LocalizeStringPair("Test", str_test_local);
Rhino.Input.Custom.OptionInteger option_int = new Rhino.Input.Custom.OptionInteger(0);
go.AddOptionInteger(lsp,ref option_int);
go.Get();

C++

ON_wString str_test_local(L"测试"); //your localization
CRhinoCommandOptionValue cov_test(L"Test", str_test_local);
//or
CRhinoCommandOptionName con_test(L"Test", str_test_local);
1 Like