How to disable / translate system menu (Preferences, Hide,...)

Mac OSX specific forum
flashbob
User
User
Posts: 92
Joined: Sat May 11, 2024 4:04 pm

How to disable / translate system menu (Preferences, Hide,...)

Post by flashbob »

Is it possible to deactivate menu items such as "preferences", "about", "Hide..." etc. on Mac?

And, is there a way to display the system menu (preferences, etc.) in a different language?
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: How to disable / translate system menu (Preferences, Hide,...)

Post by Shardik »

flashbob wrote: Sat Sep 07, 2024 12:25 pm And, is there a way to display the system menu (preferences, etc.) in a different language?
You may try my old example from 2015 which demonstrates how to display a German system menu.

Beginning with MacOS 'Ventura' Apple has renamed "Preferences" to "Settings". Therefore in MacOS 'Ventura' and newer you have to change the line

Code: Select all

      ElseIf Left(SubmenuTitle, 11) = "Preferences"
to

Code: Select all

      ElseIf Left(SubmenuTitle, 8) = "Settings"
in order to translate "Settings" to your translated text (in German "Voreinstellungen...").
flashbob
User
User
Posts: 92
Joined: Sat May 11, 2024 4:04 pm

Re: How to disable / translate system menu (Preferences, Hide,...)

Post by flashbob »

Great, thank you very much, that helps.

If we need Cocoa for something like that in PB, it's really not implemented well ...
Post Reply