Page 1 of 2 12 LastLast
Results 1 to 10 of 12
Discuss Region formats on 1.1.1 - icudt34l.dat at the General - Hackint0sh.org; 1.1.1 allows you to select a region format for displaying dates, times, numbers, names of ...
  1. #1
    Advanced Array

    Join Date
    Oct 2006
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Region formats on 1.1.1 - icudt34l.dat

    1.1.1 allows you to select a region format for displaying dates, times, numbers, names of days of the week and months, phone numbers etc. This means you no longer need to manually edit UIPhoneFormats.plist. However, currently you cannot mix-and-match the various aspects of a region format. For example, if you set region to Australia, your phone numbers will be displayed in the correct Australia format, but your weeks will have to start with Sunday, and dates will have to be displayed as dd/mm/yyyy.

    In order to customize a locale, you will need to edit the internal database of locale settings. They are stored in the ICU data file (/usr/share/icu/icudt34l.dat). Go to http://icu-project.org/ for more information regarding ICU and its data file. I have tried to recompile this data file (I want weeks to start with Monday when using the en_AU locale), but SpringBoard seems to crash if I replace the original icudt34l.dat with my own. I'm not at all familiar with ICU, so I might've made a mistake somewhere. Anyone willing to look into this a bit deeper?



  2. #2
    Rookie Array

    Join Date
    Sep 2007
    Location
    San Francisco, CA
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thanks for taking this on.

    I'm with you: I want to tweak things also (time as HH:MM, weeks start on Monday, etc.) so I'm hopeful...

  3. #3
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    I was searching for the same thing: I want to set the region to Brazil, keep the interface in English (the Portuguese interface is incomplete, that's the reason) but still allow UIKit to correctly format phone numbers (without resorting to hacking the UIPhonesFormat.plist entry for US, something I already do).

    From what I know of installing ICU in the past, you can explode/implode the icudtxyz.dat file and do some hacking on the original .res file.

    I'm about to try a simple change: replace some of the pt_BR files inside the icudt34l.dat with the en_US ones and see if the iPhone will take it.

    I will post my findings.

  4. #4
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Same sh** here. SpringBoard hangs and locks the phone big time. Needs deeper investigation of the format.

  5. #5
    Rookie Array

    Join Date
    Sep 2007
    Location
    San Francisco, CA
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Bummer. I was hoping to hear something successful. Good luck.
    Probably from my iPhone; forgive terseness.


  6. #6
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by mickey View Post
    Bummer. I was hoping to hear something successful. Good luck.
    And what I did was quite simple:

    - exploded the file into it's components
    - copy file en_US date and time settings file over the pt_BR one
    - rebuilt the file

    There was a slight difference in file size.

    The problem is that this test is, as far as I can tell, destructive. The iPhone need to be RESTORED (no even upgraded) once it enters this state.

    Maybe if I keep the "OktoPrep" special device intact, I can save the / partition to a file with iPHUC and later restore it. Well, at least I just found a use for my new iPhone that has the new bootloader - I can toy with that.


    As for the file, the possiblities are:

    a) It stopped working as soon as I replaced the file. So I will try an offline "replace" using iPHUC (replace the whole image). Then I will reboot.

    b) Maybe the size? I will try to explode and implode it back and see what happens. Maybe it's just the reassembly that is at fault.

    c) The file was fixed offsets? That is what I see as the most probable cause. It's said to be a memory mapped file, so the offsets are really important. The utilities from ICU to manipulate the file have an option to generate the corresponding "C" code, so I will check the C code that is created to see if it reflects a fixed offset memory map.

  7. #7
    Advanced Array

    Join Date
    Oct 2006
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by aviegas View Post
    The problem is that this test is, as far as I can tell, destructive. The iPhone need to be RESTORED (no even upgraded) once it enters this state.
    Actually it's not that bad. When you power on and see the spinning flower, quickly SSH in and restore the original file, then SpringBoard will continue to load as if nothing happened. You don't even need a reboot after restoring the original file for SpringBoard to "spring" back to life again.

  8. #8
    Rookie Array

    Join Date
    Dec 2007
    Posts
    21
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I managed to add en_TH locale to my iPhone (1.1.2) by using custom icudt34l.dat without any crashing.

    I used ICU 3.4 binary for Windows to do the job.

    I suspect the reasons for the crash is because you put 2 .res file with the same locale identifier.

    Replacing any locale file with other locale will not work, I think you have to change the identifier inside it too not only the filename.

    Last edited by Effervescent; 12-07-2007 at 04:01 PM.

  9. #9
    Professional Array

    Join Date
    Nov 2007
    Posts
    83
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    This sounds interesting. Anyone care to make a little guide? Effervescent? =)

  10. #10
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by Effervescent View Post
    I managed to add en_TH locale to my iPhone (1.1.2) by using custom icudt34l.dat without any crashing.

    I used ICU 3.4 binary for Windows to do the job.

    I suspect the reasons for the crash is because you put 2 .res file with the same locale identifier.

    Replacing any locale file with other locale will not work, I think you have to change the identifier inside it too not only the filename.

    Hum..... very interesting. So this removes the assumption that it's statically bound to offsets inside the file.

    I will give it a try again. I will look inside the locale file to see if there is any information that needs to be changed.


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. DVD region code
    By CzArCA in forum Archiv (Leopard)
    Replies: 1
    Last Post: 10-06-2008, 01:19 PM
  2. [DVD] Region limit ?
    By selassie in forum Hardware
    Replies: 3
    Last Post: 06-13-2008, 12:27 PM
  3. Replies: 4
    Last Post: 04-11-2008, 04:01 AM
  4. Region Help!!
    By Mozzy in forum General
    Replies: 0
    Last Post: 12-04-2007, 10:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 05:34 PM.
twitter, follow us!