Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Shorten lengthy preference pane names System
Microsoft has named their Preference Panes "Microsoft Keyboard" and "Microsoft Mouse". There is nothing really wrong with that, of course ... except for the fact that there is enough text in those strings that if you happen to have both of them they overlap.

I got tired of seeing the squashed text, so I jumped into my /Libraries -> PreferencePanes directory and found that by going into the contents of the prefpane, within Resources, then within the English.lproj folder, there is a "InfoPlist.strings" file. Within this file, change the first keyword="string" line to read:
CFBundleName = "MS Mouse"
This sets the name of the PrefPane to MS Mouse. But all is not well and good yet. Now you have to go into your ~/Library/Caches/ and delete the "com.apple.preferencepanes.cache" file. Do this with the System Prefs app not running. Then start the System Prefs app and voila, you now have shortened MS PrefPane names.
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[3,291 views]  

Shorten lengthy preference pane names | 5 comments | Create New Account
Click here to return to the 'Shorten lengthy preference pane names' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use the Property List Editor
Authored by: placain on Sep 10, '02 04:03:23PM

I recommend using the PropertyList Editor for this, not a text editor. For some reason, I was completely unable to view the file in vi or emacs, but it opened just fine in the propertylist editor.



[ Reply to This | # ]
A step further...
Authored by: jelloman on Sep 11, '02 01:57:13AM

I never submitted the hint to macosxhints.com, but a few months ago, I took this hint to the extreme by totally changing the System Preferences app to reorganize all the preference panes and renaming the categories, including the favorite panes part with multiple seperator bars.. It works and does not affect functionality, and it on't carry over; I did it in 10.1.5 and the upgrade to 10.2 rewrote the System Pref app. I won't be changing it again!

Like placain says, use PropertyLIstEditor on the Developer's CD for this. You won't risk any formatting issues.



[ Reply to This | # ]
Or insert a line break
Authored by: mithras on Sep 11, '02 02:57:08PM

You can also insert the text: \\n
into the preference panel name. This inserts a line break when it appears in System Preferences, which can make a short, wide name into a friendlier tall, skinny name.

Really the developers should be doing this for us...



[ Reply to This | # ]
The REAL fix
Authored by: Iyad on Dec 22, '02 01:53:54AM

Adding \\n did not work. So I ventured to find out how "Software Update" and "Universal Access" manage to wrap their names. The answer is simple:
- Open "InfoPlist.strings" with Property List editor as described above
- From the Edit menu, choose "Show Strings as ASCII". This will replace symbols with unicode values
- Click on "New Sibling" button and name the new property exactly "NSPrefPanelIconLabel"
- Set the value of the new property to "Microsoft\\U000AKeyboard" or "Microsoft\\U000AMouse"
- Save, delete the prefs cache as described above, and you're done. Now the names will wrap as they should.

This is a great web site, I looked everywhere for info about this before coming here and learning about the need to delete the cache file.



[ Reply to This | # ]
The REAL fix
Authored by: Iyad on Dec 22, '02 02:01:13AM

Adding \\n or \\\\n did not work. So I ventured to find out how "Software Update" and "Universal Access" manage to wrap their names. The answer is simple:
- Open "InfoPlist.strings" with Property List editor as described above. You can just drag and drop the file over it and it will open properly.
- From the Edit menu, choose "Show Strings as ASCII". This will replace symbols with unicode values
- Click on "New Sibling" button and name the new property exactly "NSPrefPaneIconLabel"
- Set the value of the new property to "Microsoft\\U000AKeyboard" or "Microsoft\\U000AMouse"
- Save, delete the prefs cache as described above, and you're done. Now the names will wrap as they should.

This is a great web site, I looked everywhere for info about this before coming here and learning about the need to delete the cache file.



[ Reply to This | # ]