How to translate Qt application's application menu on Mac?

I am trying to port a Qt application from Linux to Mac Os X, and I have a problem localizing the application menu (a menu that contains "Settings", "Exit", "...").

I followed the instructions from http://doc.qt.io/archives/qt-4.7/mac-differences.html (translating the application menu and my own dialogs) - I created locversion.plist and changed the LProjLocal value from 'no' to 'fr '- I copied this file to the Resources /fr.lproj folder of my package - I launch my application, but the application menu is still in English.

Did I miss something? How can I solve this problem?

+5
source share
1 answer

I found a solution to my problem:

When I ported from Linux, I saved the qt translation files (qt_xx.qm). However, the application menu lines are not translated in this file. I just replaced this file with qt_xx.qm Qt Sdk for Mac and ... it works.

Some recommendations: Snow Leopard with Qt 4.7.0 only requires a folder named xx.lproj to translate the application menu and qt dialogs.

Sorry to bother you.

+1
source

All Articles