The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-20-2008, 08:27 PM
Mes's Avatar
Mes Mes is offline
My iPhone is a Part of Me
 
Join Date: May 2008
Device + Firmware: 3G-16G 3.0; 2G-8G 2.2.1 T-Mobile
Operating System: XPSP3, VistaHPSP1, OSX10.4.10
Location: Sunny California :)
Posts: 825
Thanks: 29
Thanked 91 Times in 81 Posts
Missing Countries in Contact List

Still terribly new to this 'beast' , but learning quickly -- so be gentle

How do I add the missing countries to the Contacts address field?

I installed ModMyI.com | iPhone forums, iPhone hacks, iPhone unlock - Downloads - Preferences patch 1.1.3 & 1.1.4 - All local region "Preferences patch 1.1.3 & 1.1.4" assuming this would add the missing countries in the address field within Contacts.

Nothing changed. Maybe I've misunderstood the purpose of this download. My searches don't reveal a definitive solution.

Any help would be appreciated.

Mes
1.1.4 fully unlocked.


Oops if I posted this in the wrong forum. Sorry.


----------------------- 2nd post ----------------------------------

Here's what I discovered. Preferences adds countries to Settings/General/Regional/Region Format. But what about the Contact address book? No change there


----------------------- Solution ----------------------------------
(This automatic 'automerge' option is driving me crazy. 3 posts merged into 1 ))

With the help / ideas from several threads and forums, I've finally added 3 countries to my Contact/Address database.

It wasn't too difficult, but did involve some common sense.

First ... copy the two files you're going to edit to your Windows system with WinSCP.

/System/Library/Frameworks/AddressBook.framework/ABAddressFormats.plist
/System/Library/Frameworks/AddressBook.framework/English.lproj/Localized.strings

add the extension .plist to the file Localized.Strings

Use the url Convert Apple Property list from binary to text XML link to convert both binary files to ascii (they are both plist) (the newly converted files will be on your Windows system)

Remove the .plist extension from Localized.Strings

For the new converted files, add a unique extension (anything). I like adding a .NEW (.NEW2, .NEW3) extension at the very end.

Use WinSCP to copy the converted files into the same folders as the originals. Note: the ascii versions are significantly larger. No problem.

Using WinSCP, select ABAddressFormats.plist.NEW, right click and 'Edit'. (Yes, you can edit it. The WinSCP Editor is not a plist editor, but the formating is workable)

Country entries begin with <key>xx</key>, followed by <dict>, include both a country name and phonetic name (ie: 'China' and 'Phonetic China'), and are about 28 lines long, and end with a </dict>. The very next line after a complete entry is another <key>xx</key> for the next country.

Note: Countries are listed in alphabetical order using the <key>xx</key>. Make up a 2-digit key for your new country and add it alphabetically.

I selected a complete entry (appx 28 lines) alphabetically just above/below where I wanted to add and hit Ctrl-C (copy ). I moved the cursor to column 1 on the key line and hit Ctrl-V (paste ). Then I used the two digit country code (like th for Thailand, vn for Vietnam) from here http://www.iso.org/iso/country_codes...e_elements.htm, changed the newly added key to th or vn or ??, changed the country name in 2 places. Done with edits. Close the window and say yes to save (on the phone).

Do similar edits to Localized.strings. Note, each entry is only 2 lines .... BUT is listed twice (country + Phonetic country). Follow the same pattern. Copy two lines, paste very near alphabetically, edit the names. Close and save.

Don't worry about converting the plist back to binary .... not necessary. It works fine in ascii format.

Last step. Using WinSCP rename:
/System/Library/Frameworks/AddressBook.framework/ABAddressFormats.plist
to
/System/Library/Frameworks/AddressBook.framework/ABAddressFormats.plist.original

Rename:
/System/Library/Frameworks/AddressBook.framework/ABAddressFormats.plist.NEW
to
/System/Library/Frameworks/AddressBook.framework/ABAddressFormats.plist

Do the same to Localized.settings.
/System/Library/Frameworks/AddressBook.framework/English.lproj/Localized.strings
to
/System/Library/Frameworks/AddressBook.framework/English.lproj/Localized.strings.original

and
/System/Library/Frameworks/AddressBook.framework/English.lproj/Localized.strings.NEW
to
/System/Library/Frameworks/AddressBook.framework/English.lproj/Localized.strings

Exit WinSCP. Reboot iPhone.

If you have any problems, just do the renaming sequence in reverse using the '.originals' and everything is back to normal

Good luck all.

Last edited by Mes; 05-20-2008 at 10:11 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > 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

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



Go to Top
ModMyI

All times are GMT -6. The time now is 07:05 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top