Clock widget: can I change city name?

I live on the East Coast, so my clock widget (nearest city) says Atlanta. Can I change the name to my specific location?

Posted on Jun 17, 2008 6:54 AM

Reply
7 replies

Jun 17, 2008 10:27 AM in response to Hookshot

correction: I meant to say the utility is called Dashcode not dashboard.

Developer Tools may be included on your Leopard Install DVD, if not it can be downloaded from http://developer.apple.com/tools/download/
If you have Leopard you would download Xcode 3.0
It is 1.1GB in size. Still interested?

With Developer Tools installed and working from your admin account:
Locate HD/Library/Widgets/World Clock
Make a copy of it and place the copy in Projects, or any where you want to save the copy to.
Back to the original, Select it and control click on it to find Open With, and select Dashcode.

First of all, save it as a different name with Save As; call it World Clockmod
Have the new location be Library (the default)

From the Toolbar select View (blue icon) and select Files.

Locate your language, English in your case.
Expand the folder to localizedStrings.js
In the right hand pane you will see various locaizedCitynames.
Locate the one you want to change.
eg.

localizedCityNames['Atlanta'] = 'Atlanta';


change the second instance to your local town name: eg

localizedCityNames['Atlanta'] = 'Newtown';


Make sure it is still in the 'quotes'
Save the file.
Quit Dashcode.

You will now observe the new file World Clockmod sitting at the bottom of the Library folder in the Finder window.

Double click on World Clockmod and you will be asked if you want to replace World Clock with World Clockmod. Say yes.

On the Dock click on dashboard, and position your new clock.
Select Manage dashboard to select it in the list if you want it to appear in the list of widgets.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Clock widget: can I change city name?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.