I found another way to get French menus.
It's more simple and it isn't needed to do something every time the standalone is rebuild.
I tried it with Rev 2.0.1 on X 10.2.6
You have to modify the Rev app.
- select the Revolution app and show the package contents
- open Contents then Resources folder
- you should have 3 files inside : Revolution.icns, Revolution.rsrc and RevolutionDocs.icns
- create a folder named French.lproj
That's all.
Run Rev, now the Quit Revolution menu should be Quitter Revolution, and some system menus are in French.
Rebuild your standalone. It will inherit the French.lproj folder.
To give short explanation, at launch time, the app gets the preferred language from the international panel and tries to find a folder with the same name.
If the folder is missing, the app uses the language defined in the property CFBundleDevelopmentRegion
Regards.
Thierry Arbellot
On Wednesday, Jul 23, 2003, at 18:06 Europe/Paris, Thierry Arbellot wrote:
Hi Yves,
I have tested the shutdownRequest handler and it does work fine. Thanks Jeanne.
I work on a French system and like to replace the "quit" menu with "quitter"
Don't find how ???
This is little bit more tricky.
Actually, when Rev builds the standalone, it defines the development region as to be English.
This property setup the system menus to be in English, like Quit but also all items in the Apple menu and the Help menu title.
To change them to be in French, you have to do the following (I just tested it on my Mac):
- launch the Property List Editor app - it's provided with the development tools from Apple
- open the file Info.plist located in your app package contents
- click on the triangle in front of root to list all properties
- the first property is CFBundleDevelopmentRegion, Class String, Value English
- double click on English to make it editable, and replace it with French
- save and close
- launch your standalone to see the result
Good luck
Thierry Arbellot
On Wednesday, Jul 23, 2003, at 15:56 Europe/Paris, Jeanne A. E. DeVoto wrote:
At 4:29 AM -0700 7/23/03, Klaus Major wrote:i work on Mac OS X
The quit menu is in the application menu I don't find how I can trap the message "quit" when the user select this item ???
I am not sure, but i don't think that you can trap "quit" per se.
When all else fails.... ;-)
"How to respond to quitting an OS X application
On OS X systems, the "Quit" menu item is part of the Application menu,
which is displayed by the operating system rather than by the application.
Because of this, choosing "Quit" on OS X systems does not send a menuPick
message, so you cannot handle quitting in a menuPick handler.
Instead, choosing "Quit" sends an Apple Event (class "aevt", ID "quit") to
the application. If you don't intercept this Apple Event in an appleEvent
handler, Revolution sends a shutdownRequest message in response to the
Apple Event. To respond to the user choosing "Quit", handle either of these
messages.
Tip: For easiest cross-platform development, place all the code you want
to execute on quitting in a shutdownRequest handler."
-- Jeanne A. E. DeVoto ~ [EMAIL PROTECTED] Runtime Revolution Limited - Software at the Speed of Thought http://www.runrev.com/
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
