Context Menu Localization

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Edwin Locke
Version: 4.0.0277
Avatar
I would like to localize the popup context menu (Cut, Copy, Paste, Delete, etc.). Is it still necessary to create a custom menu to achieve this functionality? If not can someone give me a hint to where these resources are located?
Thanks

Comments (5)

Posted 11 years ago by Edwin Locke
Avatar
Ok, I just made my own menu.

[Modified at 11/25/2008 03:37 PM]
Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Edwin,

Right now, correct, you'd need to make your own. However we've updated our code so the menu items can be localized for the next maintenance release.


Actipro Software Support

Posted 7 years ago by Heribert Scharnagl
Avatar

Hi,

is there now a way to localize the menu items?

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Heribert,

Yes, all the menu items use string resources by default now for the text.  These are the related string resource names:

  • DefaultContextMenu_UndoMenuItem_Text
  • DefaultContextMenu_RedoMenuItem_Text
  • DefaultContextMenu_CutMenuItem_Text
  • DefaultContextMenu_CopyMenuItem_Text
  • DefaultContextMenu_PasteMenuItem_Text
  • DefaultContextMenu_DeleteMenuItem_Text
  • DefaultContextMenu_SelectAllMenuItem_Text

You can set them programmatically at app startup with this kind of code:

ActiproSoftware.Products.SyntaxEditor.SR.SetCustomString("DefaultContextMenu_UndoMenuItem_Text", "Localized Undo");


Actipro Software Support

Posted 7 years ago by Heribert Scharnagl
Avatar

Thx a lot!

The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.