|
|||||||||
|
|||||||||
|
||||||||||
|
I could manage to edit the resources inside the iPhone ICU data file. someone might find it useful:
http://ifeghali.blogspot.com/2008/03...e-locales.html For your convenience, I am gonna post the method here. Be warned that updates that goes to the above link might not go here. So be sure to check both sources (here and link). You may already seen out there some projects that translates the iPhone user interface to many different languages. Locale strings are stored in a totally different way though. Things like "Monday" and the Portuguese equivalent "Segunda-Feira" are stored in a ICU (International Components for Unicode) data file. For 12 mondays I had to stand looking at "Segunda-Feira" being printed out of the bounds of iCal icon. Until today. I tried fgrep'ng the whole iPhone for the string "segunda" with no luck. Then I tried converting all the plists from binaries to XML and fgrep'ng again and still no luck. Doing some research I found that apple uses ICU on iPhone, which drove me to find our /usr/share/icu/icudt34l.dat. This is a 8.5MB file bundled with all the locales (timezones, region formats, etc.). To start playing with it, the first thing we will need is obviously the file itself: Quote:
Quote:
Quote:
Quote:
Quote:
Lets extract our package now: Quote:
Quote:
Now its time to generate our new resource: Quote:
Quote:
![]() Quote:
If you can read Portuguese you might find this entry interesting as well. It describes the similar process of updating Mac OS X timezone. It makes use of `icupkg` though, that is not available on ICU version 3.4. Last edited by ifeghali; 03-29-2008 at 02:53 PM. Reason: attaching the method to the body of the post |
|
|||
|
can i have more information about the patching process please i'm stuck at this step ... thanks.
|
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
I am stucked with the install. Neither this
Quote:
Quote:
|
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
Quote:
Code:
gencmn: unable to open listed file CurrencyData.res Any ideas...? |
|
|||
|
I cannot get any other reason for this error but files must be somehow in wrong directory... When I did extract .dat file it created a folder 'icudt34l' to the same folder where extract command 'decmn' is placed (/icu-3.4.1/source/bin/). Also out.lst was generated there.
Therefore the file/folder structure is as follows /icu-3.4.1/source/bin/ - icudt34l/ (includes all the .res files) - out.lst - all bin commands such as 'gencmn' The question is, where the following file and folder should be placed in relation to 'gencmn' command: 1. icudt34l/ folder (including all the .res files)? 2. out.lst file? I have tried all variables I could imagine possible: 1. gencmn, icudt34l/ and out.lst in the same /icu-3.4.1/source/bin/ folder 2. gencmn in /icu-3.4.1/source/bin/ folder, .res files and out.lst file in /icu-3.4.1/source/bin/icudt34l/ folder 3. out.lst in /icu-3.4.1/source/ folder, gencmn in /icu-3.4.1/source/bin/ folder, .res files in /icu-3.4.1/source/bin/icudt34l/ folder I guess the problem was created since I do not want to do all this in iPhone but in Mac, and for obvious reasons I do not want to use /usr/ folder (but /Users/ folder)... |
| Sponsored links Remove advertisements | |
|
|
|
|
|
||||
|
dude read the tutorial carefully, step by step. note all the `cd`s and where the commands are being executed. if you skip one block of code you will get in trouble. you have to pay attention to every single one of them. you will copy the dat and extract the lst to /tmp. you will also extract the dat to /tmp/icudt34l. again, read the tutorial carefully.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|