views:

102

answers:

1

I'm porting a UNIX application which uses the Qt framework (Qt, not QuickTime) to Mac/Cocoa. Life is good, generally. Qt has a Cocoa implementation, so with some Objective-C++, I've gotten lots of Mac-specific bits working.

I can't get the main menu (i.e., the Application menu) to translate. It's set using:

    [NSApp setMainMenu:menu];

I've got my en.lproj, ja.lproj, fr.lproj, etc. folders set up, and they have InfoPlist.strings files. Qt handles the internal localization of application-specific menus. But if I switch languages, I still have "Quit Avogadro".

I've read through as much documentation in the Mac Dev Center as possible, but can't find an answer.

I know that strings in the mainMenu are handled by Cocoa -- they're not localized in any Apple application. Any ideas on the magic trigger? Any ideas for where to look?

Thanks in advance!

+1  A: 

I wouldn't expect to get very far with Qt, but the documentation is here:

http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPInternational/BPInternational.html

Azeem.Butt
I've read through that documentation. (That's what I meant above.)I've gotten pretty far with Qt. The strange thing is that everything works with Qt/Carbon. But after switching to Cocoa, I don't have a localized application menu anymore.
Geoff Hutchison