Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ziggyonice

macrumors 68020
Original poster
Mar 12, 2006
2,385
1
Well the title says it really. I'd like to change the page Safari displays when not connected to the Internet. Working for a business that sells Macs, I'd prefer something that looks a little nicer when the network is down.

I know that it's a Localizable.strings file...
(located here: Safari.app/Contents/Resources/English.lproj/Localizable.strings )

But if I change the wording in the file, when trying to load up the error page, I'm presented with "localized string not found".

Any ideas? Thanks.
 
Okay, I did some more digging, and the only other possibility is the localizedStrings.js file, which is in that same folder. But still... haven't been able to update that page...
 
Sorry I'm of no help, but that's a great idea. I mean, other than business uses, I'd love to have the type of pages you get from Google Chrome. They just seem to brighten up a usually bad situation. Hope someone can find out how to do this :)
 
Doing a little more research, a guy on another forum informs me:

There is most likely some javascript in the program that modifies the templates, and requires the strings to be a given length and all that. Still, the templates are the following files:

Localizable.strings
localizedStrings.js
page-load-errors.css
StandardErrorPage.html

So I'm in the process of seeing what exactly that means...
 
While I don't know how to dramatically change the page, here's a method of changing some of the text.

You can get something like this:
image.php


Go to Safari, right click and Show Package Contents. Go to Resources/English.lproj/Localizable.strings.

Change the ending of the line:
/* title of error page displayed for NotConnectedToInternet */
"You are not connected to the Internet." = "You are not connected to the Internet because you haven't paid your bill.";
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.