TMT_MIUI_1.0 BETA LANGUAGE PACKS TUTORIAL
Well guys, I received lots of requests by PM and in thread, asking to add more languages to this rom.....like said many times, I don't have much time to devote to this hobby (that I love so much), so I decided to write a tutorial to help you add your language by yourself...........LET'S START..
1. first thing you need is "apktool" last version (1.4.3), download it from
HERE
2. second and very important thing you need is a "your" language pack for 2.6.29 MIUI rom, preferably prepared for "i9000" Galaxy S or "i9100" Galaxy S2.
For EXAMPLE, this is
GERMAN pack (thanks to "androidpost") and this is
SPANISH pack (thanks to "Didace33")
3. now you have to prepare your working folders, one named "ORIGINAL" and another one named "MY LANGUAGE"
4. extract from TMT_MIUI_BETA_3 zip all the apks from "system/app" and "system/framework" and put them in "ORIGINAL". Do the same from "your language package" (see step 2), and put them in "MY LANGUAGE"
5. now unzip "step 1" package, and copy the files "aapt.exe" - "apktool.bat" - "apktool.jar" to "ORIGINAL" and "MY LANGUAGE" folders
6. open a command line and select the path of "ORIGINAL". Open ANOTHER command line and select the path of "MY LANGUAGE"
7. Most important files we have to work on are :
system/app/browser.apk - Contacts.apk - MiuiHome.apk - MiuiSystemUI.apk - Mms.apk - Phone.apk - Settings.apk -
system/framework/framework-res.apk
8. Use the command line opened for "ORIGINAL" and type : "apktool if framework-res.apk" AND when finished "apktool if framework-miui-res.apk"
9. Use the command line opened for "ORIGINAL" and type : "apktool d framework-res.apk"
10. Use the command line opened for "MY LANGUAGE" and type : "apktool d framework-res.apk"
11. now use file explorer to copy \MY LANGUAGE\framework-res\res\values-xx drawer (where "xx" is your language code, for example "it" is italian, "en" is english, "es" is Spanish", etc etc). Be sure to copy all xxxxxx-xx folders, because sometimes you'll see only "values-xx", sometimes also "drawable-xx", BE SURE to copy ALL these "xxxxxx-xx" folders TO (VERY IMPORTANT STEP) \ORIGINAL\framework-res\values
12. NOW, use the command line opened for "ORIGINAL" and type : "apktool b framework-res"
13. with file explorer, create a new folder named "TRANSLATED". Now copy \ORIGINAL\framework-res.apk to \TRANSLATED
14. use winzip or 7zip or winrar to open \TRANSLATED\framework-res.apk, DELETE the "res" folder, and let this window opened
15. use file explorer to copy all content of \ORIGINAL\framework-res\build\apk in "winzip(or 7zip or winrar)" window of step 14
16. now your "NEW" TRANSLATED apk is ready, and you can use a zip like
THIS to push new TRANSLATED file(s) to your device
17. DO EXACTLY the same for ALL THE FILES of step "7"
18. TO BE CONTINUED....
