Hi All,
S4Settings.apk from WIzzedKat rom 2.9 : SPECIAL TRANSLATION IN POST #21
Again, great Thanks to @tutangigi with his appreciated rom here.
in @tutangigi thread, more people want S4Settings in their language
i give you here what i have done to translate it in french langage .
intereting posts that guide me
http://forum.xda-developers.com/showpost.php?p=44833518&postcount=67
and
http://forum.xda-developers.com/showpost.php?p=44837775&postcount=73
source : http://www.wilsonmar.com/android_localization.htm
It seems that in some cases, we have to create "[layout-XX] folder too in \res\ folder , i see the case in DpiModder.apk
PROCEDURE :
SAMPLE :
S4Settings.apk from [RevolutionRom Build3]
- I copy S4Settings.apk from tel in c:\apktool\ PC folder
- I open S4Settings.apk with winrar
3 - I extract in a folder \META-INF\ folder and AndroidManifest.xml file from opened winrar S4Settings.apk. (I use them to sign after compilation at end)
- I decompile S4Settings.apk ( apktool d S4Settings.apk S4Settings )
- I search for strings.xml in c:\apktool\S4Settings\res\values\ folder
- I create \values-XX\ folder in c:\apktool\S4Settings\res\ folder
( XX = code language , here i create \values-fr\ in c:\apktool\S4Settings\res\ folder ==> c:\apktool\S4Settings\res\values-fr\ exist now)
- I copy strings.xml from c:\apktool\S4Settings\res\values\ folder in this new c:\apktool\S4Settings\res\values-fr\ folder
- I translate all line with <string name="settings">xxxxxxxxxxx</string> caracters chains in french, my language
- i recompile (apktool b S4Settings S4Settings.apk)
- i sign new S4Settings.apk
open new S4Settings.apk with winrar
drag \META-INF\ entire folder and AndroidManifest.xml file extracted in step 3 in winrar opened S4Settings.apk.
- i replace S4Settings.apk in phone
- delete /data/dalvik-cache/[email protected]@[email protected]
- reboot and enjoy with my translation
I think this method could works for all APKs because there is no other files to touch as i seen
For personal use, i give a try with this method in Biftor_romcontrol.apk and Biftor_Colorcontrol.apk from my best @Biftor 2nd ROM without pb too.
Just new devs in herb like me and other pros have to check their XX code , refering the language they want.
Learn by sample , it's the only way i found to help you
If feedback are good with this method on other roms, i change title by [ALL APK][ALL LANGUAGE]
thanks.
ScreenShowHot HOW TO
I dont remember where i find apktool i use but you can find it in XDA.
here you can find each steps i have engaged to translate S4Settings.apk in french language, but i'm sure you can do the same operations with your language too.
hope and assume that reader knows how to compile/decompile.
1 - Make a backup of signature to use after compilation.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2 - Use the good framework-res.apk and twframework-res.apk from rom in right folder of PC
3 - use decompile option of apktool :
apktool d(decompile) <File> <Folder>
apktool d S4Settings.apk S4Settings
<Folder> is the name you give of folder created during
decompilation process and you will work in this folder at step 4 and 5,
you can see in step 6 that you will use this folder to compile too, it's important if you give it another name.
process here :
4 - result of decompiling option :
i take S4Settings-ro.apk published in @tutangigi thread
to show you this example and you can see
my french "touch" modification in original S4Settings.apk
without romania language too
5 - result of translation , in our case, strings.xml file
i use translate-french.zip from thread to debut translation, from @takayochi post.
6 - use compile option of apktool :
apktool b(build) <Folder> <File>
apktool d S4Settings S4Settings.apk
process here :
7 - sign you new apk
it's finaly done, your new apk is ready to run, copy it in you rom where you have take original, delete odex correspondant file in \data\dalvik-cache\ , in our case : /data/dalvik-cache/[email protected]@[email protected] and reboot.
Thanks for reading and if used, report here for other people.
Good job mate
Your thread will help a lot the other members
Sent using my Premium-Zanpakutō {斬魄刀} powered by my Shinigami soul <+> ლ(◣_◢)ლ
Great job..thank you very much for the help
help is freeeeee
Great Job ! it will help me a lot ! nice work man
More french ?
Following this method, as we can see,
find apks in attachments.
thanks.
Last version S4Settings.apk multi-langage
Langages added :
values-el-rGR : Greek
values-es : Spanish,Español(España),Spain
values-es-rES
values-fa : Farsi, Persian, Iran
values-fa-rIR
values-fi-rFI : Finnish,Suomi,Finland
values-it : Italian, Italiano, Italy
values-ja : Japanese,Japan
values-ja-rJP
values-mn : Mongol
values-pt-rBR : Portuguese,Brazil,Português Brasileiro
values-pt-rPT : Portuguese,Portugal,Português (Portugal)
values-ro : Romanian,Romania,Româna
values-ro-rRO
values-ko : Korean,Korea
values-ko-rKR
values-fr : French
Thanks.
Portugese corrected .
Portugese corrected .
thanks.
Great job
Très intéressant, souhaitons que ton travail soit inclut dans les prochaines révisions de cette magnifique ROM
Very interesting, hope that your work be included in future revisions of this magnificent ROM
Chapeau! troubadour666 and of course tutangigi
Spelling mistakes (french)
I found some spelling mistakes (in french) in S4Setting.
I attached the corrected apk for those interested.
The archive contain original xml and the corrected one plus a .doc with corrections in red.
Thank you troubadour666
About accent
Hi troubadour
Please, why did you say that we should not accent?
I'm tempted to try but that I might do something stupid?
Thank
S4Setting in french
Following a discussion with Troubadour666, I tried to put accents on letters and the result works (you have to put a \ before the accents).
For example: J\'aime le camembert et la crémière. (just before the accents and not before the accented letters)
So I joined the apk S4Setting with accented letters and an archive containing the xml file for those who are interrested.
In some time, I will add DpiModder.apk and QuickPanelSettings.apk corrected.
I hope this is helpful to some people.
mastaan said:
Following a discussion with Troubadour666, I tried to put accents on letters and the result works (you have to put a \ before the accents).
For example: J\'aime le camembert et la crémière. (just before the accents and not before the accented letters)
So I joined the apk S4Setting with accented letters and an archive containing the xml file for those who are interrested.
In some time, I will add DpiModder.apk and QuickPanelSettings.apk corrected.
I hope this is helpful to some people.
Click to expand...
Click to collapse
Yes, very useful, so i give a try soon too and report here. Thanks @mastaan , great work !!!
About DpiModder.apk
Okay.
After several unsuccessful attempts, I finally succeeded in translating DpiModder.apk.
Indeed, xml resources were equally simple to change than those of S4Setting. But some words do not appear in the xml files but the smali files. They are different ways to modify such a file, I personally opted for a hex editor. But it did not work at first . I finally found the solution ...
Once again you must use a '\', but this time before each accented letter. In addition, concerned letters must be replaced by their Unicode value.
For example, to write
Règler DPI à
we must write
R\u00e8gler DPI \u00e0
I think this may be useful to other people, preventing them from breaking the head on the problem.
It remains a problem. The restarting method menu offers four options:
1. No reboot
2. killall
3. kill
4. ssdaemon
I translated:
1. Ne pas redémarrer (Do not restart)
2. Arrêter toutes applications (Stop all applications)
3. Arrêter application (Stop application)
4. Utiliser ssdaemon (Use ssdaemon)
I know that kill and killall are linux commands, but I'm not sure that my choice of translation is appropriate.
Any suggestions?
Thank me if this post was helpful to you and I will know if I should continue to share my observations ..
mastaan said:
Okay.
After several unsuccessful attempts, I finally succeeded in translating DpiModder.apk.
Indeed, xml resources were equally simple to change than those of S4Setting. But some words do not appear in the xml files but the smali files. They are different ways to modify such a file, I personally opted for a hex editor. But it did not work at first . I finally found the solution ...
Once again you must use a '\', but this time before each accented letter. In addition, concerned letters must be replaced by their Unicode value.
For example, to write
Règler DPI à
we must write
R\u00e8gler DPI \u00e0
I think this may be useful to other people, preventing them from breaking the head on the problem.
It remains a problem. The restarting method menu offers four options:
1. No reboot
2. killall
3. kill
4. ssdaemon
I translated:
1. Ne pas redémarrer (Do not restart)
2. Arrêter toutes applications (Stop all applications)
3. Arrêter application (Stop application)
4. Utiliser ssdaemon (Use ssdaemon)
I know that kill and killall are linux commands, but I'm not sure that my choice of translation is appropriate.
Any suggestions?
Thank me if this post was helpful to you and I will know if I should continue to share my observations ..
Click to expand...
Click to collapse
"T'as assuré sur ce coup là"
Is it possible to create a german S4Settings.apk?
I tried it for my own but it didn't work
If anyone, perhaps @Troubadour666 could add these strings as well (first Danish version yay) to the settings, it would be highly appreciated.
I've tried but for me its a fail. So I attached the .xml file in a small zip, it is all ready and set to go, I had issues adding them to the .APK file
Thanks!
Widar88 said:
Is it possible to create a german S4Settings.apk?
I tried it for my own but it didn't work
Click to expand...
Click to collapse
natalya said:
If anyone, perhaps @Troubadour666 could add these strings as well (first Danish version yay) to the settings, it would be highly appreciated.
I've tried but for me its a fail. So I attached the .xml file in a small zip, it is all ready and set to go, I had issues adding them to the .APK file
Thanks!
Click to expand...
Click to collapse
Hi,
i take S4Settings.apk in OP , i put your translation.
I have to remove
<string name="lockscreens4-header">S4/Note 3 Låseskærm</string>
or
<string name="lockscreens4-header">S4/Note 3 Sperrbildschirm</string>
from your files guys, because my S4settings.apk from OP havent this option.
if you want this option showed with your "dialects" :silly::cyclops: ,upload your S4Settings.apk and i will try to put your strings. can you make some correction before upload new string ?
in all line , be sure to have :
<string name="accessib-summ">text you want without</string>
and not only :
<string name="accessib-summ" /> (very bad syntax)
PLEASE REMARK THE </string> at end of each lines
In attachements. try please and give feedbacks.
The "Sperrbildschirm" is for the normal Lockscreen in German. I will try it and give a Reply.
Thanks alot for it.
Related
Hi!
After a long time of trying to cook custom roms in greek language I am ready to post a small tutorial on how to translate your Rom to your Language using kitchens with a quick and dirty way .
Attention there is a better way to do so but this is what I Do to make my Greek ROMS
Step 1)
a)Download your language emulator Files from
http://www.microsoft.com/downloads/details.aspx?FamilyID=38c46aa8-1dd7-426f-a913-4f370a65a582&DisplayLang=en#filelist
(b) extract the files in a new folder.
Slumpolo 's suggestion:
-----
to extract files from the emulation rom follow this direction:
- Download Tadzio's imgfs excelent tools in: http://forum.xda-developers.com/showthread.php?t=298327
- Unzip the tools along with the image in any folder.
- Rename the image to A.BIN (to make the next commands easier to type).
- Open a D.O.S. command window and perform these commands:
Code:
> NBSPLIT -emu A.BIN
(it generates two files: A.BIN.EXTRA and A.BIN.PAYLOAD)
> IMGFSFROMNB A.BIN.PAYLOAD IMGFS.BIN
(it generates the file IMGFS.BIN)
> IMGFSTODUMP IMGFS.BINAnd that's all. Files are dumped in /Dump directory
-----
Click to expand...
Click to collapse
(c) Rename ALL the 4xx files to 409 (e.g. 0408.mui -> 0.409.mui) Apply this to all files and folders (an eyasier way to do that is to search from windows for all *408* files and then rename them)
Slumpolo's suggestion
----
For step 1c) during the translation of italian rom for the mui files that resides in directory I edited also a file (simply with Supered) that has a line that pointed to the 0410 files (ea. italian) and changed this to 409.
----
Click to expand...
Click to collapse
Step 2)
Find your BASE ROM.
Step 3)
Download your Kitchen. I prefered Anichillus kitchen due to the fact that supports ROM dumping in an easy way
Step 4)
Dump ROM ( If you use Anichullus Kitchen , follow the manual but Stop BEFORE using Bepe's Package TOOL !
Step 5)
Go to DUMP folder ,(eg C:\core\extract\dump) and paste ALL the language files you have renamed from step 1c . ATTENTION you have to copy and paste ALL files from your language folder AFTER you have renamed them to 409 . REPLACE duplicate files
Step 6)
Continue with kitchen steps . For instance if you were to use Bepe's Package TOOL , go on and build the packages.
Step 7)
Edit Initflashes.dat file . Information on how to do that are in every cooking tutorial. In Intflashes.dat file you will have to translate all the links and directories according to your language files. CAUTION if you make mistakes in translation your WM6 will be crappy and programs may not start
->In order to make a good translation check your original rom, or try the WM6 emulator wth your language files and check the directory names (eg
folder Programs in Greek have to be Προγράμματα)
Step 8)
Save Initflashes.dat in unicode and remove first two bytes with a hex editor
Step 9)
Choose your OEM packages.
For GREEK USERS : If you need a greek software keyboard like the original one I have made an OEM package that allows you to do so
Slumpolo's suggestion
------
For step 9) / 10) about keyboard, you must add with a oem package also:
- dictionary in your language
- settings for your language
- t9 dictionary for your language
- for keyboard layout make this registry mod:
Code:
Registry Editor:
HKCU >> ControlPanel >> Keybd
Create a string "Locale" with "0410" vale. Everything without "Where 0410 is your country value.
------
Click to expand...
Click to collapse
Step 10)
build your rom according to your kitchen manual
I hope this helps
Good luck with your tries
I have used the same method for the italian version but you must translate also some parts of .hv files and .rgu or you must pay more attention during the translation of initflashfiles.dat because not all links and directories can be translated without .hv and .rgu editing.
My suggestion? Edit only initflashfiles.dat
Some add for your excellent tutorial:
----
For step 1b) to extract files from the emulation rom follow this direction:
- Download Tadzio's imgfs excelent tools in: http://forum.xda-developers.com/showthread.php?t=298327
- Unzip the tools along with the image in any folder.
- Rename the image to A.BIN (to make the next commands easier to type).
- Open a D.O.S. command window and perform these commands:
Code:
> NBSPLIT -emu A.BIN
(it generates two files: A.BIN.EXTRA and A.BIN.PAYLOAD)
> IMGFSFROMNB A.BIN.PAYLOAD IMGFS.BIN
(it generates the file IMGFS.BIN)
> IMGFSTODUMP IMGFS.BIN
And that's all. Files are dumped in /Dump directory
----
For step 1c) during the translation of italian rom for the mui files that resides in directory I edited also a file (simply with Supered) that has a line that pointed to the 0410 files (ea. italian) and changed this to 409.
----
For step 9) / 10) about keyboard, you must add with a oem package also:
- dictionary in your language
- settings for your language
- t9 dictionary for your language
- for keyboard layout make this registry mod:
Code:
Registry Editor:
HKCU >> ControlPanel >> Keybd
Create a string "Locale" with "0410" vale. Everything without "
Where 0410 is your country value.
Next days I'll try to release an
Ciao
At last
Very good..now i can direct all people who ask this question here.
Great initiative
Thanks
Slumpolo
Updated
Tna said:
Thanks
slumpolo can you post info about the which parts of hv files you edit?
Click to expand...
Click to collapse
I'll post everything next week. All my files are in office
Ciao
btw. as far as i know only certain wm6 builds can be translated using EMU mui files. i dont remember build no's.
Why is that ? What are the restrictions?
does it work for Universal to ?
thats what i wrote above, as far as i know(consulted with bepe) 17913 build its not supported(latest uni) it must be build ???? i remember there is 4 in build no. cannot fint irc log with that conv. with bepe
Hi and thanks for your tutorial. I try to go a different way and want to port over a hermes mui cab to get german wm6. i have some trouble of getting it done.
- the file explorer draws no softkeybar, so it is not usable. does anyone know what files i need therefore?
- the free space when installing a cab isn't displayed correctly
what have i done?
- i took the cab from asukal and removed hermes specific things
- afterwards i copy the files from the emulator image to get newest versions of the files.
if somebody want to test it - here you go:
http://www.gsm-multifund.de/holg/Making_German_Wizard.cab
i would appreciate every help.
best greetings
holg
answer from midget about builds that can be translated:
Code:
the changes from 17740-5 are not language related so the mui's work for all of them
i tried a newer rom and also got no luck with the file explorer. does anybody know what file is responsible for translating the file explorer?
No i don't... since file explorer is the least used program i didn't really care about it ...
so sorry but i can't help in that ... why don't you leave it as it is ?
i think filesys.exe.0409.mui
I think that he has found the file. The problem is about the softkey .
Try using reshack tool (it can be found in most kitchens) and open the mui file. search for the softkey
But yet I am not sure ...
yeah thanks for the suggestions
i personally like the build in filexplorer, cause it is fast and has softkey control, it's good if you just browse and open a file.
filesys.exe.0407.mui is already inserted in windows directory, so i will test with reshack,but at the moment i am a little busy.
Doubt about Files
Hi people
About the translation... i have one question.
After doing the "IMGFSTODUMP IMGFS.BIN" command, and all files are in the Dump Directory... besides the files with 4xx names, there are also some folders with 4xx names... and inside those folders are some files also with 4xx names.
Do i have to rename the folders and the files inside those folders, or just the files... or just the folders.
And one thing more... for example the folder "bbcbres.dll.0816.mui" inside these folder, one of the files called "imageinfo.txt".. inside this txt there's something written on the first line : " Module name: bbcbres.dll.0816.mui" if i have to change the name of the file inside the folder called "bbcbres.dll.0816.mui".... do i have to change this line also inside the txt ???
Thanks
how about the hardware keyboard? because I am on a German MDA Vario, Wizard of course, since we are using QWERTZ instead of QWERTY?
Will this be fixed automatically as well?
Cheers.
PauloBarreiros said:
Hi people
About the translation... i have one question.
After doing the "IMGFSTODUMP IMGFS.BIN" command, and all files are in the Dump Directory... besides the files with 4xx names, there are also some folders with 4xx names... and inside those folders are some files also with 4xx names.
Do i have to rename the folders and the files inside those folders, or just the files... or just the folders.
And one thing more... for example the folder "bbcbres.dll.0816.mui" inside these folder, one of the files called "imageinfo.txt".. inside this txt there's something written on the first line : " Module name: bbcbres.dll.0816.mui" if i have to change the name of the file inside the folder called "bbcbres.dll.0816.mui".... do i have to change this line also inside the txt ???
Thanks
Click to expand...
Click to collapse
You have to change all the *0816*. There is no need to change the folders al long as you rename the *.816* files that are included in those folders. There is no need to change the imageinfo since your are not going to replace the original one.
After renaming All the files (including the language files inside the folders) then you shoud copy only THESE files to your dumped ROM .
4irm said:
how about the hardware keyboard? because I am on a German MDA Vario, Wizard of course, since we are using QWERTZ instead of QWERTY?
Will this be fixed automatically as well?
Cheers.
Click to expand...
Click to collapse
no ... look for hades language pack to fix that, too
HyperCore
PUBLIC BETA
The most complex KITCHEN a begginer cook may ever need.
Easy to use but also very complex, it can be usefull to anyone.
Why ask and wait for others to make the perfect ROM for you when you got the power to do it yourself ?
~. Base ROM .~* NO BASE ROM ! but ANY ROM !
~. Best part .~* IT USES TADZIO TOOLS
* YOU CAN OPTIMISE EXE's and DLL's, SO IF YOU WANT EVEN MORE SPACE, YOU'LL GET IT
* IT CAN BE USED ON ANY DEVICE WITH VERY LITTLE MODIFICATIONS !!!!!
* NO LONGER LIMITED BY ANYONE OR ANYTHING.
* YOU CAN COOK ANY ROM YOU LAY YOUR EYES ON VERY EASY
* IT HAS ADVANCED ERROR CHECK
~. It will install .~Core folder on the system drive. Some tools and settings required.
HyperCore folder on the Desktop. There is your kitchen. You can move it wherever you want.
The place where you actually use it is HyperCore\Panel.
~. How To .~- First of all edit the file named "Device.txt" located on the "Core\ACK\" folder located on systemdrive (mostly drive C:\)
Edit as following.
If you have a :
HTC Wizard : " set device=Wizard "
HTC Hermes : " set device=Hermes "
HTC Artemis : " set device=Artemis "
HTC Herald : " set device=Herald "
HTC Universal : " set device=Universal "
HTC Trinity : " set device=Trinity "
HTC Prophet : " set device=Prophet "
Click to expand...
Click to collapse
Save it and then you're good to go.
It's much similar to the old Core kitchen...so those of you who used it ...will feel comfortable with it. Regenerated batch scripts, better, and i hope bug free.
~. Guides .~* Hermes Cookbook - THANKS to sambartle
* My Way of cooking
* How to ADD/REMOVE programs -THANKS to mfrazzz
~. Notes .~Since this is still a public BETA, I await your problems/ideas/concepts.
If you spot a bug, i suggest to send me a PM as well as a post on the thread.
I suggest having a ROM to make a backup in case you do something wrong
I created and tested this tool for WindowsMobile 6 , but WM5 should work OK too.
~. Download .~
RapidShare
Special thanks :
* Papamopps - for real support
* nandlal_mk - for answering questions and DSM editor
* mfrazzz - for being a calm, intelligent and helpful person
* mUn - for finding the time to answer some of my questions
* molski - for i started working on his tools and still used some of them
* Tadzio - for his tools and patience
* bepe - for his tools
* the-equinoxe - for his splash-screen tools
* naboleo - for his initflashfiles generator
* dutty - for his NBH Tool
few others that surely i forgot to mention Sorry..
For test
Hello,
PM send.
Private69.
@++++
pm send it
anichillus said:
Hi guys. As some of you know i made kitchens for few HTC devices, as the Wizard, Hermes and Artemis.
My new kitchen, named obviously HyperCore, is a multi device compatible kitchen and it will also include your device, the HTC Trinity.
I managed to implement settings for Trinity but i will need somebody to test it, prior public release. Thus, anyone who wants to be a tester, please send me a PM.
I will need someone who is ..not experienced, but have the least of knowledge. I don't mean to be offensive but i'd like to release it later today and...i am in a little hurry, since i have other things on my mind too.
So, I am waiting for your PM.
Cheers !
Click to expand...
Click to collapse
sure I will be happy to test that for you.
itlinux said:
sure I will be happy to test that for you.
Click to expand...
Click to collapse
ops!! I did not read the full message I guess.. I will send you a PM.
Thanks guys. Sorry i couldn't give it a go tonight...i had some problems here
I will let you know first time tomorrow morning.
news??? about this build
hcarrega said:
news??? about this build
Click to expand...
Click to collapse
Sorry...yet another home/personal problem....i just got home
One last check of the kitchen and some fixes for the Prophet v and i will upload.
first resolve your problems then post a rom
anichillus said:
I will need someone who is ..not experienced, but have the least of knowledge. I don't mean to be offensive but i'd like to release it later today and...i am in a little hurry, since i have other things on my mind too.
Click to expand...
Click to collapse
I will be happy to help...........if needed.
Hello guys. Unfortunately i have stressed out with work and...didn't had time to betatest this. So...here you go, everyone can test it and please post your review.
Cheers !
This is my feedback:
1) I take the RUU_Signed.nbh ROM file and Place it in the HyperCore\Extract\Source folder.
2) Now I go in Extact Panel and run Dumprom. It says:
==================== Core Kitchen ====================
= BE PATIENT AND READ CAREFULLY =
======================================================
Device : Trinity
Make sure you placed the RUU_Signed.nbh in the "HyperCore\Extract\Source" folder !
CAUTION !!! : This will clean the "HyperCore\Extract" folder
Press [ENTER] when ready.
Click to expand...
Click to collapse
Ok I've the RUU_Signed.nbh in the "HyperCore\Extract\Source" folder and now I press enter.
It deletes the RUU_Signed.nbh in HyperCore\Extract\Source folder !!!!
Now I have to copy RUU_Signed.nbh in the "HyperCore\Extract\Source" folder one more time
Ok
3) Now it launch the Dutty good NBH tool. I selct the RUU_Signed.nbh and extract the files in the same folders
4) Now in "HyperCore\Extract\Source" folder I've this files:
a - RUU_Signed.nbh
b - PrimarySplash.nb
c - SecondarySplash.nb
d - Windows.nb (the ROM).
I think the d file must to rename in OS.nb. It's right?
infact it says:
==================== Core Kitchen ====================
= Program Complete =
= Any donations are much appreciated =
======================================================
Device : Trinity
* ERROR !!! There is no OS.nb in "HyperCore\Extract". Operation FAILED
Select your option and press [ENTER]
[1] - Start "PKG Tool"
[2] - Move OS.nb to "HyperCore\Build\ROM"
Press [ENTER] to EXIT.
Answer :
Click to expand...
Click to collapse
cicciocant said:
This is my feedback:
1) I take the RUU_Signed.nbh ROM file and Place it in the HyperCore\Extract\Source folder.
2) Now I go in Extact Panel and run Dumprom. It says:
Ok I've the RUU_Signed.nbh in the "HyperCore\Extract\Source" folder and now I press enter.
It deletes the RUU_Signed.nbh in HyperCore\Extract\Source folder !!!!
Now I have to copy RUU_Signed.nbh in the "HyperCore\Extract\Source" folder one more time
Click to expand...
Click to collapse
No, you don't have to. It will backup the RUU_Signed.nbh before cleaning the Extract folder and then it will move it back...at least it should do that.
Ok
3) Now it launch the Dutty good NBH tool. I selct the RUU_Signed.nbh and extract the files in the same folders
4) Now in "HyperCore\Extract\Source" folder I've this files:
a - RUU_Signed.nbh
b - PrimarySplash.nb
c - SecondarySplash.nb
d - Windows.nb (the ROM).
I think the d file must to rename in OS.nb. It's right?
infact it says:
Click to expand...
Click to collapse
That i don't understand...mabe you should try again. It should automatically rename Windows.nb into OS.nb ...
Ok the RUU_signedònbh is in extract and not in extract/source and I must to ectract the windows.nb in extact and not in extract/source .
It'sn't write anywhere.
Now it seems to work
For create pakcage form Cab there is anithing (guide? software?)
Where I've to place the package?
For anichillus
Hello,
I m trying your program and can you make a new up to date help for use your soft.
thanks.
Private69.
@+++
cicciocant said:
For create pakcage form Cab there is anithing (guide? software?)
Where I've to place the package?
Click to expand...
Click to collapse
There was one...on the website..but it's down.
Check the HyperCore\Panel\Extra folder. You will find there some stuff you may probably missed. There is one initflashfile generator...
Basically :
Create a new folder with name of your programs without spaces
extract contents of that cab with CabAnaliser (Extra folder) without paths..so all files are in the same folder.
Create a .dsm to which you assign an UUID ( http://www.famkruithof.net/uuid/uuidgen )
create the initflashfiles.txt with the help of the initflashfiles generator and place it in same directory
Create the "your_UUID.rgu" ..here are your registry settings. So...you create a new text document, write "REGEDIT4" first line, leave last line blank, copy inside it registry settings you find with the CabAnaliser ...and then save it as UNICODE.
Fix errors...like if the program doesn't have an install dir and in the path you find %installdir% that is in the initflashfiles.txt and in the .rgu.....
I have explained this before couple of times...it's better if somebody guides you to it.
private69 said:
Hello,
I m trying your program and can you make a new up to date help for use your soft.
thanks.
Private69.
@+++
Click to expand...
Click to collapse
What do you mean ? ... I didn't understand
For anichillus
Hello,
The help file attached to your software does not correspond exactly to this version of the software. Is it possible for you to provide an help file step by step on how to use it ?
Right now i extracted the 5 files using the utility DutyTools, but after i dunno what to do ?
thanks in advance,
Regards,
Private69
@+++
private69 said:
Hello,
The help file attached to your software does not correspond exactly to this version of the software. Is it possible for you to provide an help file step by step on how to use it ?
Right now i extracted the 5 files using the utility DutyTools, but after i dunno what to do ?
thanks in advance,
Regards,
Private69
@+++
Click to expand...
Click to collapse
Like that :
1. Extract rom located in HyperCore\Extract\Source with HyperCore\Panel\Extract\1. DumpROM
2. Convert it to dump
3. Convert dump to SYS and OEM (PKG TOOL)
4. Extract XIP
5. Move XIP and OS.nb to the HyperCore\Build\ROM folder
6. Move SYS and OEM to HyperCore\Build
7. Cook the SYS and OEM located in HyperCore\Build (Add/Remove folders, programs...)
7. Start BuildOS from HyperCore\Panel\Build
Read instructions in the program...and you'll be ok
THANKS
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello i made this thread to post my skins for start icon, a thread already exist but it will be clearly at that, i think
This manipulation doesn't use more memory, no app required.
Here is a preview of what's looks like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here is a preview of differents skins you can use
For QVGA WQVGA:
Install "Icone demarrer.cab" it's just 2registry key. (thank to my friend Shakass)
Then put in "/Windows"the file named "shellres.96.dll.****.mui"
**** is the localization code of your ppc's rom (040C for France and 0409 for US/UK)
The files you'll find in the folder are in 040C so change them if you're not french.
And Soft reset
This operation will replace too your wait cursor by the wait cursor vista by Marshall if you want to keep your cursor follow the How-to instructions to extract and modify your shellres.96.dll file.
If you want to put your original system just erase your shellres.96.dll.****.mui file and soft reset.
The folder QVGA-WQVGA contains all the Start icons
French Code 040C
http://rapidshare.com/files/145261199/QVGA_-_WQVGA.zip.html
Us Code 0409
Pack QVGA-WQVGA
http://www.4shared.com/file/63132544/e5423367/Start_Icons_Skins_0409.html
Skins Wapvirus post #29
http://www.4shared.com/file/63275979/570709aa/Start_Icons.html
Biohazard on post #44
Megaman on post #82
HTC on post #93
Change Start text
Open the file named shellres.dll.****.mui and go the String value 321 change the name, compile script and save then sign with MSsigner and put in /Windows; Enjoy !!
Here is some shellres.dll.040C.mui modified: Démarrer, Start, HTC, SFR, Vide(empty)
Change the country code if necessary.
If you like it, you can Donate to XDA .
For VGA:
Same manipulation just the name of the file is "shellres.192.dll.****.mui"
The folder VGA contains only the "Blue windows" and "Office" Start icons for the moment if VGA's user wants some other, request it
"Points" icon added.
Apple Colors - Blue vista - Blue windows - Superstart added on post #168
Dark Glass windows on post #203
Mushrom on post #204
F star on post #194
Eye on post #211
Big Thanks to
Lolento who made a "How-to" to create and change your own icon;
Marshall who give us the way and all other xda members
Here is the Start discussion thread:
http://forum.xda-developers.com/showthread.php?t=378084
And the first How-to of Lolento on post #40.
If you like it, you can Donate to XDA .
Thanks. I will try it in a bit.
How-To
If you want to create your own icon,
For QVGA WQVGA
Create an icon in 21x18 then save as .ico file (32bits)
Take one of the "shellres.96.dll.****.mui" file
Or if you want to keep your own Wait cursor:
Copy to your SD card then to your PC the file named "shellres.96.dll"
Open it in Reshacker and go to "Icon group/4609
Clic on Action/Replace Icon/Open new file
Insert your new icon, clic replace.
Save your modified file takes the name of the old "shellres.96.dll.****.mui" and the old takes the name of "shellres.96.dll.****.mui".
If you have used your own "shellres.96.dll" file rename it as "shellres.96.dll.****.mui"
Open Mssigner,search your shellres file, clic Start sign Process
a window appear "Process finished!" then go where is your shellres file, a text file has been create
Open it, if there is wrote "Warning: This file is signed, but not timestamped,Succeeded" that prouved all is okay
After you know the suit.
For VGA
Same things just the size of the icon must be 41x36 and the name must be "shellres.192.dll.****.mui"
What is my Country Number?
Execute the Mortscript which is in the folder "ShellresNameHelper" (with Mortscript) Big Thank to mr_deimos for this script.
All the Softs are in the Tools folder
If you need some ideas here is a french site with lot of PNG image
http://www.customxp.net/PngFactory/
Write in the search bar what you want.
When you do a start icon file
Post the info (VGA QVGA; US FR)
And the PNG file or a screenshot
Enjoy!!!
Cab Version of the Certificates
Here is a Cab Version of the certificates for those who are not comfortable with Registry Editor. This worked perfect for me.
Thanks for the great skins.
works great on my tilt thanks a lot
Once I install the cab, what do I do? And how do you go about changing among the various icons? Sorry for the rookie questions.
Choose an icôn and go in the folder which has the same name, then put the shellres file you'll find in windows. If you aren't french change the "040C" by your localization code (0409 for US)
hey amigo great post ( pub AM first Post please lol)
Do I have to put the icon itself under "Windows" as well or do I leave that in the folder? And ho do you get the default flag back if you don't like a particular icon?
^No you have to add the icon with Reshacker in your shellres file found in the /Windows folder.
Thanks alot for these clear instructions. Will give it a try when I have the time.
FatBoyExtraordinaire said:
Do I have to put the icon itself under "Windows" as well or do I leave that in the folder? And ho do you get the default flag back if you don't like a particular icon?
Click to expand...
Click to collapse
The icôn in the folder is just to preview, let in the folder .
Wow, thanks!
That makes it easy to change your Start-Menu icon.
BTW Would like to see points.png as my Start-Menu icon. Can you creat ite, or can you supply the file points.png?
very easy installation , I love alienware icone
Thanks I've succeded to change the start menu icon,
but when i want to change the second time it says " File Storage Space Is Full or Read Only " so what should i do for the next??
thanks
@johanrominj: I don't understand what you say
@rock4mayo: I never had this message when copying new file
maybe try to rename the old as "shellres.96.dll.****.old.mui" then copy new file; soft reset and erase old file...Tell me if it's okay.
Madremiha said:
@johanrominj: I don't understand what you say
@rock4mayo: I never had this message when copying new file
maybe try to rename the old as "shellres.96.dll.****.old.mui" then copy new file; soft reset and erase old file...Tell me if it's okay.
Click to expand...
Click to collapse
I would like to have this:
as my Start-Menu icon.
Can you give me the original points.png file in VGA, or can you make shellres.192.dll.****.old.mui with this file included?
That's better for you?
johanromijn said:
I would like to have this:
as my Start-Menu icon.
Can you give me the original points.png file in VGA, or can you make shellres.192.dll.****.old.mui with this file included?
That's better for you?
Click to expand...
Click to collapse
It's okay i will do it in few hours
Madremiha said:
@johanrominj: I don't understand what you say
@rock4mayo: I never had this message when copying new file
maybe try to rename the old as "shellres.96.dll.****.old.mui" then copy new file; soft reset and erase old file...Tell me if it's okay.
Click to expand...
Click to collapse
Works like a charm....thanks
for info my loading icons has changed too
cheers
Works like a charm!!! Thanks for the great tutorial.
Anyway this could be added to the wiki?
**This is for system apk's, not for market ones. To modify apps you've downloaded and installed, you will need a program like the fantastic Apk Manager, since non-system apps are signed and have to be resigned after getting messed with**
*MY TYPICAL DISCLAIMER!*
I AM NOT A DEV! I just like tinkering with this phone because I'm overall an extremely picky and obsessive person. I have no prior android experience (besides a little tinkering with my X10), and am in NO way an expert. But since I know how to mess with my phone a little bit and I've been asked to share, I will =) But follow these instructions at your own risk! I am not responsible for the untimely death of your phone, so please be cautious and careful, and if you have any questions about any step, before you try it, ask me or someone who knows! I don't want the blood of your dead phone on my hands! It's Christmas, after all! =)
These instructions are for Windows computers. Sorry, I'm just not familiar with mac or linux. =(
***Editing XML's***
So you want to modify something a little more complicated than just a PNG- there's something there you want gone, something too big or small, and you want to modify an XML. Here's what you need for starters:
7zip for your computer
Root explorer for your phone
apktool and apktool-install-windows for your computer from here
-Install it to your computer, as described in the link. (Just unpacking the items into c:/Windows is easiest)
Hex editor for your computer (I really like Notepad++)
For an example, I will be using the HORRIBLE yellow pages infiltration of the LG Nitro, thanks to surely some agreement between AT&T and YP. One example is the contacts list, where AT&T in its infinite wisdom has decided that the most important contact of all is the yellow pages, being the only permanent contact stuck in your list, shrinking your visible actual contacts list:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I don't like it, and I want it gone. I've already uninstalled yellow pages, and the dead button is still there! I will edit an XML to remove it =)
1.) Copy the apk you want to modify from your phone (using root explorer) and transfer to your computer
In this case, I wanted my Contacts.apk, which is in /system/app. Keep a copy safe somewhere, just in case something goes wrong, or you want to revert back to the original apk. The vast majority of system apps are in the /system/app folder, with the major exception of framework-res.apk. This is the phone’s BIG cajone in /system/framework, and as such, should be handled with utmost care. Messing with framework-res.apk incorrectly is an EASY way to brick your phone in a heartbeat.
2.) Decompile your apk
Put the apk in C:\ (I think you can put it in other places, but just for consistency, I'll say put it there =) ). Decompile it by using apktool. You can find more details elsewhere, but to keep it as brief as possible, here's how in a nutshell (there are other ways to do this, where to put files, etc, but for consistency's sake, this is how I do it):
-run cmd.exe
-in the command window, change your directory until you get all the way to C:\ (keep typing "cd.." and hitting enter until you're there)
-in the window type the following and hit enter:
apktool d nameofapk.apk
(In this case, type "apktool d Contacts.apk")
******IF YOU GET A LONG STRING OF "Could not decode attr value..." ENDING WITH "Can't find framework for package of id: 2. You must install proper framework files, see project website for more info." (like you do when decompiling some apk's like SystemUI.apk) SKIP TO THE END FOR SPECIAL INSTRUCTIONS******
-the decompiled apk will now be extracted into a folder of the same name without the .apk extension (here, C:\Contacts)
3.) Find and edit the XML you want!
Now that it's been decompiled, the XML will be magically readable with Notepad++ (before decompiling, opening XML's with a hex editor produces gibberish. Now, you can actually read the text of it!). In this case, the XML we want to edit is here:
C:\Contacts\res\layout-finger\contacts_list_item_top_search_att.xml
In this XML, lines 14, 15 and 16 refer to that stupid bar in Contacts.apk with the yellow pages and ICE buttons. Included in lines 14, 15 and 16 are: android:layout_height="60.0dip", android:layout_height="51.0dip", and android:layout_height="51.0dip", respectively.
Change all 3 numerical values to 0.0 in all three cases, so now in lines 14, 15 and 16, it shows: android:layout_height="0.0dip", android:layout_height="0.0dip", and android:layout_height="0.0dip", instead.
Save the changes to this file and close! (You should have your original apk backed up somewhere else already!)
4.) Recompile the apk with the newly edited XML in it!
In cmd.exe (still in directory C:\), type:
apktool b nameofapkfolder
*do NOT type nameofapk.apk. Leave off the .apk extension! You're recompiling the decompiled folder, NOT the .apk! For example, here to rebuild Contacts, type
apktool b Contacts
This can take a while. It's okay if you get some "has no default translation" lines popping up. Just ignore them.
Now, in that same decompiled folder, you will have a new "build" folder. Inside are your newly recompiled files for your apk!
5.) Find the recompiled XML from the build folder and move it into a copy of the original .apk!
It will be in the same organization as it was within the .apk. For example, that XML we edited is located here:
C:\Contacts\build\apk\res\layout-finger\contacts_list_item_top_search_att.xml
If you open this recompiled XML, you'll see that it's back to being gibberish. That's because it's been successfully recompiled!
Now, find your original, unedited .apk, right click, 7zip, and open archive. Navigate to the original XML in that apk and drag and drop your newly edited/recompiled XML into that folder, letting it overwrite the original one! This is your newly edited .apk with the changes you want in your XML!
6.) Put this newly modified apk back onto your phone. Using root explorer, copy the new apk into the /system folder of your phone.
7.) CHANGE THE PERMISSIONS of the apk to match those of the original apk in /system/app.
In this case, long press on the Contacts.apk, select permissions, and select the check boxes as follows- Owner: Read, Write; Group: Read; Others: Read. This matches the permissions of Contacts.apk in /system/app
8.) Move the new apk into /system/app, and let it overwrite the original!
9.) Restart your phone!
Voila! The stupid bar is gone, and I have a little more room for my REAL contacts!
******SPECIAL INSTRUCTIONS FOR DECOMPILING ERROR******
Some apk's (like SystemUI.apk) require OTHER (framework) apk's be "installed" in order to decompile properly. To install an apk, put it in C:\, then type the following command in cmd.exe when in directory C:\:
apktool if nameofapk.apk
But which other apk needs to be installed?? The secret is that when you try to decompile your apk and it produces those errors, apktool will actually tell you (in its way) what other apk is needed! For example, decompiling SystemUI.apk results in notifications ending in this:
"Can't find framework for package of id: 2. You must install proper framework files..."
id: 2 is your key. In /system/framework, there are 3 other apk's besides framework-res.apk. These are:
RES_cappuccino.apk
RES_model.apk
RES_sui.apk
If you install framework-res.apk:
apktool if framework-res.apk
you get the following statement:
I: Framework installed to: C:\Users\User\apktool\framework\1.apk
This means that id: 1 = framework-res.apk! If you install the other 3 apk's (RES_cappuccino, model, and sui), you'll find that they are:
RES_cappuccino.apk = id: 2
RES_model.apk = id: 4
RES_sui.apk = id: 3
SO, when you try to decompile SystemUI.apk, and it says "Can't find framework for package of id: 2," it's asking that you first install RES_cappuccino.apk before decompiling SystemUI.apk! So before apktool d SystemUI.apk, type:
apktool if RES_cappuccino.apk
It will say, "Framework installed to C:\Users\User\apktool\framework\2.apk
And now, when you decompile SystemUI.apk, it will work (as will recompiling! =) )
Good luck! Godspeed! =)
This is awesome! Thank you very much.
I've successfully managed use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux) for SystemUI.apk, but it did create additional useless folders.
One question though, what about resources.arsc file?
According to apk manager that file needs to be recreated when .xml files are changed.
It seems like that's the case when you have significant changes to the xml, like deleting lines or adding code, etc. When I just change values in the xml, it doesn't seem to require rewriting resources (which I'm not super comfortable with), so until we get a recovery mode, I just try to be creative in how I edit xml's to get what I want by just changing values =)
NICE!! Great job sir!
Did you ever get rid of the headphones icon, by the way? It shouldn't be too tricky
itiskonrad said:
Did you ever get rid of the headphones icon, by the way? It shouldn't be too tricky
Click to expand...
Click to collapse
Well, kind of...I do now know how to remove it, unfortunately it will have to wait until apktool get updated to v1.4.4, because current version does not work for our resources-res.apk (we seem to have ICS formatted .apk's). I already twice soft bricked my phone trying recompile this apk
Once we get the proper tool, we might start getting some interesting mods, like more quick settings for instance.
itiskonrad, can you post the actual file for removing yp from contacts. I am on mac with no pc available at the moment.
Sure thing! Here:
Contacts - No Yellow Pages
Be sure to follow steps 6-9, though! Especially the part about changing permissions!
Great thanks. Worked great.
Sent from my LG-P930 using Tapatalk
I couldnt get the new APK Manager which is now called APK Tools to work properly. Since the original link didnt work i decided to search out the old APK Manager to give it a shot, and it worked beautifully! For those that want the old one, you can get it here:
http://www.gamefront.com/files/17870566
i used it to change my contact list to black with white text. Much nicer!
itiskonrad said:
***Editing XML's***
3.) Find and edit the XML you want!
Now that it's been decompiled, the XML will be magically readable with Notepad++ (before decompiling, opening XML's with a hex editor produces gibberish. Now, you can actually read the text of it!). In this case, the XML we want to edit is here:
C:\Contacts\res\layout-finger\contacts_list_item_top_search_att.xml
Click to expand...
Click to collapse
Hi, I have a problem, I can not correctly open the XML files from ROM. I want to edit the file primary_text_dark.xml of framework-res \ res \ I can not see it correctly. Help me please, the XML files from ROM, I can not correctly open and edit in any xml editor. What is the trick?
example
https://lh5.googleusercontent.com/-Mlx3d1--g0E/T7yNMCOcCyI/AAAAAAAAAcE/aIV-2zHN8x8/s720/fotka%2520%252014.jpg
What you are looking at is a non-decompiled xml that is unreadable. You need to first decompile the apk which carries the xml you want to edit in order for it to be readable. You first have to complete steps 1 and 2 and decompile framework-res.apk as described in the guide in order to get a readable primary_text_dark.xml.
Thank you for your advice.
Error...
Hello everyone!
Dude, thanks for the post. It is very clear!
I have a question. I did everything step by step to decompile the framework-res and edit it, but when I try to recompile it, the APK folder created inside the new folder BUILD is empty.
What can have happened?
(translation via Google Translate)
Hmm, not sure. Try decompiling and recompiling immediately after without making any changes, just to make sure the commands are working. If that doesn't work, maybe there's something wrong with the commands? For example, I know it sounds stupid, but make sure to recompile, you're typing
apktool b framework-res
NOT
apktool b framework-res.apk
Thank you Itiskonrad!
Yes, the commands are working. Decompiled and compiled again without changes, and everything went well.
I realized that change depending on what I do when this error occurs. Now I'm changing slowly and has not worked.
The strange thing is that I do not see the changes on the device. My intention is to change the entire text of the notifications in order to use a black theme in my status bar.
I made a theme based on UotKitchen and I'm improving, but notifications such as downloads and ongoing calls persist with the font color black, which makes their visibility.
I will continue testing until something works!
Big hug!
(translation via Google Translate)
itiskonrad,
Do you use an ICS leak? Could you please modify status bar apk and remove carrier from there?
Shouldn't be the final APK zipaligned?
Thanks, great
Can I change language like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(it is on iPhone)
in android, can I do like it ?
Not really when its not implanted in your ROM. In setting under language or something like this you can look. Job and ICS ROMs have many languages. And its help what for a ROM etc you have. All infod over your handy.
Sent from my MB526
how can I decompile framework-res.apk and compile it ?
I'm using Defy+ cm9
You can, but its difficult and has to be done all by hand
Follow Kayant's guide on compiling CM10, test it to make sure your build environment works. Change CM10 to whatever rom with a repo you wish to work with -- translations are the same for all of them. Since it appears you're trying to do an English-hybrid translation that's what I'll focus on.
After that, navigate to your CM10/android/frameworks/base/core/res/res/values*/strings.xml
values/stings.xml is what will be shown if there isn't a default translation available, otherwise the rom will use values in the language you select -- values/en-rUS for American English. You'll notice that everything is commented out in the en-rUS strings.xml -- meaning if you uncomment them, what ever you put there will supersede what is in values/strings.xml -- making US Engish a good choice to mod since its the default translation in values/strings.xml.
Here's the first few lines of values/strings.xml
Code:
<!-- Suffix added to a number to signify size in bytes. -->
<string name="byteShort">[B]B[/B]</string>
<!-- Suffix added to a number to signify size in kilobytes. -->
<string name="kilobyteShort">[B]KB[/B]</string>
<!-- Suffix added to a number to signify size in megabytes. -->
<string name="megabyteShort">[B]MB[/B]</string>
<!-- Suffix added to a number to signify size in gigabytes. -->
<string name="gigabyteShort">[B]GB[/B]</string>
<!-- Suffix added to a number to signify size in terabytes. -->
<string name="terabyteShort">[B]TB[/B]</string>
<!-- Suffix added to a number to signify size in petabytes. -->
<string name="petabyteShort">[B]PB[/B]</string>
The only thing you need to change is what I bolded -- whatever is between >and</string> -- that's your translation. You have to do that for every string you wish to be changed.
Well, that's basically how you tweak\fix\change translations. So far all we've done is the core of the rom -- you still need to do some more under /CM10/frameworks/base/packages/***/ (the *** is different system apps like SystemUI -- they have their own translations needed to be done)
Once that's done, navigate to CM10/packages/Apps/*** and do their translations as well.
And that's the basics of it. While this can be done without syncing the repos and compiling you're own rom, I highly recommend doing it this way so you can commit your changes and continue with your project at your own speed and not have to use apktool and decompile and recompile every apk from every CM10 you wish to translate -- using apktool is similar to the repo method, only you decompile the apk, translate it, recompile it and repeat for every apk you're translating. You'll also have to fork every app you wish to translate and make sure you keep them up to date -- its not hard, just make sure you don't overwrite your values changes and you won't have to mess with any actual code at all.
I hope this helps. Its a pain in the rear, but its doable.
Also, use a text editor with code\syntax highlighting cause it'll really help -- I use Gedit (Linux) myself. Notepad++ is a great choice to use on Windows
how can I decompile framework-res.apk and compile it ?
I'm using Defy+ cm9
Click to expand...
Click to collapse
This should help
I try some apktool but it can not compile, some apktool can compile but file size is smaller than original file
original file size is 9.1 MB but new compile file size just 5.2 MB
and when I overwrite framework-res.apk, phone is boot loop
danhtho said:
I try some apktool but it can not compile, some apktool can compile but file size is smaller than original file
original file size is 9.1 MB but new compile file size just 5.2 MB
and when I overwrite framework-res.apk, phone is boot loop
Click to expand...
Click to collapse
Did you copy the META-INF folder from the original apk to the rebuilt\modified apk? That has to be done by hand. Also, wipe cache\dalvik after pushing modified system apks. The difference in size can be from a number of different factors (one being the META-INF folder), apktool compressing resources.arsc that wasn't compressed already (not sure if ours come compressed or not, I've never bothered checking). Make a copy of the original apk, delete META-INF, and compare sizes -- if they orig - META is close to the size of rebuilt with no META-INF, you should be OK -- "should be" being the key phrase here.
if the apktool you're using still doesn't work, search xda for "apktool ics" or "apktool jb" and try some of the different ones you come across -- when ics first came out, apktool was hit and miss on which version would work or not and there's a few modified apktools around for working with ics\jb apks. I've had to use multiple apktools on the same rom -- apktool is a great program, just make sure you keep multiple copies if you're into decompiling apks.
On my old setup (before I got in a hurry and forgot to back up my $HOME/bin during a distro hop) I had multiple apktools named apktool.gb, apktool.ics, and apktool.jb -- at one time i had *.ics, 2, & 3. All I'd have to do was change my symlink to the apktool version I'd like to use before tweaking away (some android tools\scripts require apktool to be named apktool, so "rm ~/$HOME/bin/apktool && ln -s ~/$HOME/bin/apktool.ics ~/$HOME/bin/apktool"