[Lazarus] Localization of carbon application menu

Karl-Michael Schindler karl-michael.schindler at web.de
Wed Sep 28 19:20:00 CEST 2011

Dear Lazaristi,

I want to localize the captions of the standard menuitems in my program created with lazarus, i.e. the items "Services", "Hide myApp", "Hide Others", "Show All" and "Quit myApp". The problem is that i cannot get hold of these items. I also tried to find out how this is done in Lazarus, but failed, too.

Maybe not related, but for the sake of completeness: What worked is to add extra items (i.e. an about and a preferences submenu) in the application menu including subsequent translation of the captions.

I also tried to get acces via NSApp.mainMenu, but that gives an acces violation because NSApp is zero. I expected that this is already allocated and set, but it does not to be the case. Any help how to get access to these submenus or hints how this is done in the Lazarus IDE?

Thanks in advance.

Michael Schindler
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar

More information about the Lazarus mailing list