There was discussion under another thread on how to get the Australian Phone Number formatting working on the iPhone. Some of it changed with the arrival of FW 1.1.1, and so some of the directions under that thread are now a mish mash of up-to-date and out-of-date information (e.g. the ABPhoneFormats.plist is now called the UIPhoneFormats.plist). So, having got mine sorted tonight, I thought I’d start a new thread with some more detailed explanation for those who (like me) are less capable of sorting it all out (I had
help. Thanks David!). This didn’t brick my phone. Your mileage may vary!
These directions assume the following:
• iPhone with FW 1.1.1 and OpenSSH (or similar) installed (which in turn requires BSD Subsystem installed).
• a Mac with the Terminal app (found in the Utilities folder in the Applications folder)
Open Terminal App.
Go to File > Connect to Server, and select SFTP; select your iPhone on the right; type “root” in the username, and select “SFTP (Automatic)”. Click Connect.
If you are using OpenSSH with 1.1.1 the default password for root is “alpine” (Before 1.1.1, the password was “dottie”). (You should change your password asap! use the passwd command)
In the SFTP console window, type:
# get /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist .
Then (to backup the file, just in case) type:
put UIPhoneFormats.plist /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist.backup
If you have Property List Editor installed from the xcode package from your install media, open the plist file with that.
Otherwise, use the converter at
http://140.124.181.188/%7Ekhchung/cgi-bin/plutil.cgi to convert it to ascii text, then open it in TextEdit.
In the file you'll see a series of phone number formats tagged by a two-letter country code. At the top of the file, you'll see the AU setting (third one down). Copy everything between the
and tags and paste it into the US setting down at the bottom of the file. That list is fairly limited though, and won’t format mobile numbers etc, so better still, I pasted in the following custom set of masks that I assembled from various forum posts:
04## ### ###
#### ####
(03) #### ####
(02) #### ####
(07) #### ####
(08) #### ####
+61 # #### ####
+61 4## ### ###
(61) (0#) #### ####
1300 ### ###
1800 ### ###
13# ###
0011 $
Now that the file is ready (and the iPhone can read the converted ascii file, so no need to try and convert it back), you need to upload it back to the phone.
In the SFTP console window, type:
# put UIPhoneFormats.plist /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist
All done.
Reboot the iPhone, and check in your contacts to see if things look right!
If you are likely to travel to the USA and might want to be able to switch between US and Aussie formats when traveling, there is a solution. Install the program “Enable International Menu” on your iPhone (Installer>Unlocking Tools>Enable International Menu). That will put a “International” menu under the General Settings, which you can use to switch between Australian Region and USA or various others. If you are doing that, and you want the more comprehensive set of format masks shown above, then follow the direction above with one variation. Instead of pasting the masks into the
section, paste them into the section.
As has been pointed out elsewhere, all this only affects the way phone numbers look on your display. It doesn’t sort the issue of the iPhone caller id not recognising people if their number comes through with an international prefix when they are in your address book without one, or vice versa. That’s a separate issue, and to fix this you have to persuade your iPhone to only take note of the last eight digits. The instructions on how to do that can be found here.
Hope some of all that is helpful to someone!
Cheers,
Nathan