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


Click here to return to the 'As long as we're messing with the code...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
As long as we're messing with the code...
Authored by: jiclark on May 20, '03 01:30:11AM
Does anyone have an idea of how one would go about changing the pale gray text in the search bar to say the name of the site you've changed it to, instead of "Google"? Shouldn't be that hard, considering that it wasn't too easy to change the search engine!!! thanks, John-o

---


[ Reply to This | # ]

Changing the gray text in the search box...
Authored by: davidpc on May 20, '03 03:12:40PM

The text that appears in the search box is stored in:

Safari.app/Resources/English.lproj/Localizable.strings

Open that file in any text editor, do a find for "Google," and you'll see a line like:
"Google" = "Google"

Change the second Google to whatever you'd like displayed, like:
"Google" = "Yahoo"

Save the file, and (re)launch Safari.



[ Reply to This | # ]
Changing the gray text in the search box...
Authored by: j0hnE5 on Feb 20, '04 01:55:06AM

I was only able to change the context menu, the accessibility description and the 'no search text' message box by editing the Localizable.strings file.

To change the gray text I used Interface Builder to modify Browser.nib, found in /Applications/Safari/Content/Resources/English.lproj/.

Simply select the search box, the choose Tools->Show Info from the menu, then choose Attributes in the info window's pull down menu and from there you can change 'Google' to whatever you like.



[ Reply to This | # ]
Changing the gray text in the search box...
Authored by: hyperion on May 04, '12 08:10:39PM

I tried to do this [Safari Version 5.1.5 (7534.55.3)], but when I open Browser.nib in Xcode Version 4.3.2 (4E2002), all I get is a file icon. Nothing shows up. I am clueless. Searched on the web for hints but I couldn't find anything.



[ Reply to This | # ]