HomeStoreForumsWikiiPhone Native AppsiPhone AppsiPhone Apps modmyifone Downloadsmodmyifone Links



Go Back   ModMyiFone.com | iPhone forums, iPhone hacks, iPhone unlock > IPHONE > File Mods
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

File Mods Discussion on possible mods to files on the iphone to accomplish different goals.


iPhone Optimized MMi | Browser Optimized MMi

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

Opportunities at MMi | 1.1.4 Unlock|Jailbreak OS X / Win
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 08:39 PM
Developer
 
Join Date: Sep 2007
Posts: 98
Thanks: 0
Thanked 5 Times in 5 Posts
[Hack] Add more countries to iphone address book

iPhone currently has a very small list of countries in its address book. about 61
while most of us may not notice the difference, some might find this a bit irritating. some major countries are missing, e.g. Korea

I have only tested this for one day on 1.1.1. Address Book still works fine.
I have only added one country, not sure if adding more will be a problem
I sync with iTunes, and address in OSX Address Book syncs properly, have not tested this with Outlook Address Book if there is one.. not sure
No one else has tested this... so good luck

you need OSX, or at least something to edit a plist file in windows

(1) Files needed : first download 2 files from you iphone
/System/Library/Frameworks/AddressBook.framework/ABAddressFormats.plist
/System/Library/Frameworks/AddressBook.framework/English.lproj/Localized.strings

(2) open ABAddressFormats.plist with your property list editor in osx
you will be able to see a list of countries
check out the format of different countries just to get familiar with it


(3) add a new country
next.. i select any of the country, press 'New Sibling'
it will make a new item
I decided to add in 'Malaysia' so i rename the 'New Item' as 'my'


(4) set 'String' to 'Dictionary'


(5) add details of the country you want to add
i click on 'my', the arrow that points to the right now points down
you can see that the button above changes to 'New Child'


just add each child one by one by referencing the country closest to what you need
the first time i added this, it did not work out. it added 'Malaysia', but it only gave one field in my iphone, which is 'Street'

i'm not sure why
the second time i repeat, i copy and paste each field from another country. not sure what i did wrong the first time. but now it works. do confirm with me if it works just by typing. i must've mispelled something.
now it shows properly with 'Street', 'ZIP', ....
by the way.. i also added 'State', since Malaysia has different states, but it is not reflected below, coz i added that later. If you want to add State, then
URL_FORMAT = Street, City, State, Zip, Country


(6) edit Localized.strings (not sure if editting this file is necessary)
rename your Localized.strings to Localized.string.plist
open it with property list editor
add the country you want as shown below. not sure if this step is necessary


next i observed that there is another item that i need to add by looking at other countries. see below. not sure if this is necessary as well


backup all the files that you want to replace before you do anything
then replace the files
reboot your iphone
it should show the country properly now

(7) if you need more options aside from ZIP, State, Country, Street, etc...
take a look at ABAddressFormats.plist
you will notice that there is an entry there that is not a country.. forgot what's the exact title, but it will stand out as something with more than 2 letters. open that up and you will see what other options you can have for addresses.


here's the result



note that i added 'State' later.. it wasn't in the screenshot above

Last edited by peeInMyPantz : 11-13-2007 at 01:20 AM.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to peeInMyPantz For This Useful Post:
saree (11-18-2007)
  #2 (permalink)  
Old 11-17-2007, 03:34 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Any other simpler method?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 01-08-2008, 04:53 AM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by nino4 View Post
Any other simpler method?
Yes, just mod the ABAddressFormats.plist file located in /System/Library/Frameworks/AddressBook.framework/
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 01-08-2008, 04:54 PM
poetic_folly's Avatar
I Own This Place
 
Join Date: May 2007
Device + Firmware: iPhone | 1.1.4 | Unlocked
Operating System: OS X Leopard 10.5.2
Posts: 7,065
Thanks: 171
Thanked 1,062 Times in 590 Posts

Wiki'd.
__________________


↑ ↑ ↓ ↓ ← → ← → B A B A [select] [start]
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  ModMyiFone.com | iPhone forums, iPhone hacks, iPhone unlock > IPHONE > File Mods


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - Contact Us - Link to us - Archive - Privacy Statement - - Top
All times are GMT -6. The time now is 12:15 PM. Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC5 Copyright © 2007-08, ModMyiFone.com Forum skin by poetic_folly
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.