Open valimaties opened 2 years ago
I managed to make it work. The converter I used is made by Reza Aghaei, in this solution on stackoverflow.com
as you can see, Undo
and Select All
are in english, because was not changed in ContextMenuTranslation
struct property
I will make a PR for this.
I've did it this way:
But, I have some problems with text width in ContextMenuItem
. I think I have to make some modifications on OnRenderItemText
of MaterialContextMenuStrip
class. If you @orapps44 know how to change the size of each element, and what must be exactly modifying, please help me with the code...
ContextMenu Translation made. You can review it and if it is ok for you, you can merge PR. Thanks.
Hi. Please add a visual
struct
forCut
,Copy
, etc, to be able to change the display Text ofContextMenuStrip
in different languages in Design. Thanks.Edit: My application has all texts in my native language. It is strange to display
ContextMenuStrip
in English. Suggestion: Change definition ofBaseTextBoxContextMenuStrip
class fromBaseTextBox.cs
, changeMaterialToolStripMenuItem { Text = "..." };
toMaterialToolStripMenuItem { Name = "..." };
. Now, the methodContextMenuStripOnItemClickStart
from MaterialTextBox2.cs must usetoolStripItemClickedEventArgs.ClickedItem.Name
instead oftoolStripItemClickedEventArgs.ClickedItem.Text
. Till here I've made modification, but I'm not so experienced, I don't know how to add thatstruct
in MaterialTextBox file to be able to modify it in Design and in the same time to assign values from that struct to MenuStripItems Text property.