Related
Okay after a few hours of searching and fiddling I got this to work out...but it still needs improvement.
I followed some details from:
http://www.gpcarreon.com/?p=291
So basically you get this and install it:
http://nsis.sourceforge.net/Download
Then create a folder at root level (i.e. C:\MyInstall)
In that folder place the following files:
All the .cab files (which you obtain like locked extended ROM files)
All .ini files (which you create)
T-Mobile Customization.nsi (which you download from below)
In the Above mentioned nsi script I have allocated 20 spaces, however you can add/remove lines as needed. Don't forget to increment the following fields:
“FILE 1"
SecFile1
SectionIn 1
File 1.ini
File 1.CAB
StrCpy $0 “$INSTDIR\1.ini”
I didn't change it in my file, however if you want to change File 1 to another name make sure you're consistent so all reference to 1 would change to your file name. Capice?
Now for your cab files depending on how many lines/cabs you have your basic format for your cab file will look like this:
[CEAppManager]
Version = 1.0
Component = 1
[1]
Description = MT-MMS-WI19-051213-1 [MMS]
Uninstall = MT-MMS-WI19-051213-1 [MMS]
CabFiles = 1.cab
Where Component is the name from the "File 1" and the [1] matches the component name. Description and Uninstall as far as I can tell can be whatever you like. And CabFiles must be the cab files name, in this case 1.cab (which reflects in the nsi file)
The file name for the ini must also be the same as you specified. File1.ini
After you have done all this save your script, cabs, and inis in the folder at the root level. And then right click on the script and choose compile! If you successfully compiled the script you should see an option to "Test Installer" and you will also a new executable file generated.
Now for the problem part where I seek your assistance As I mentioned before I'm a rookie when it comes to this stuff so I haven't the slightest clue where I would begin. But if you do use this method it's quite annoying to have to pause every two seconds to wait for the device to prompt you where to install it and for you to acknowledge successful installation. So what I'm thinking is how do I make it "silent" meaning it automatically installs to the "Device" and does not say "successful installation press ok to continue..." I was thinking this would be done in the ini file for each of the cabs, however I do not know. Anyone else know what can be done in this matter.
Thanks in advance...hopefully this will help someone....
Hi everybody.
This is a tip to change the language of office mobile 2007(6.1) from english(0409) to your own language.
FIRST:
Download the office update from micro$oft website:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=4b106c1f-51e2-42f0-ba32-69bb7e9a3814
Be sure to download your own language update file.
Example: If you want the Italian version you must download the italian update(code 0410 - Remember this code!)
SECOND:
Place the file in c:\(your hard drive).
Click on "run" shortcut and type msiexec /a c:\[the name of the officefile that you've downloaded] without the []
THIRD:
go to the folder named "Microsoft Office Mobile" in your root dir [in this ex. c:\]
and copy the cab file on your PDA.
note: remember to choose the right cab file. If you have a smartphone choose "office_smartfon" cab and if you have pocketpc choose "office_wpc" cab file.
QUARTER:
Install office update and soft-reset your PDA.
FIFTH:
Go to windows forlder( on your PDA) with file explorer.
Find: officeres.dll.0409.mui and rename it (ex. call it "pippo")
Find the same file in your own language (ex. officeres.dll.0410.mui for italian language where 0410 is the coutry code reference number - see microsoft website) in the same place. If you order file by name this is just one file down.
Rename it in: officeres.dll.0409.mui
delete the old file( in my ex. pippo)
SIXTH:
Do the same thing with the file called: "pptres.dll.0409.mui" and replace it.
SEVENTH:
Enjoy!! Now office is in your own language!
Remember to do a complete backup BEFORE change the language!!
Sorry for my bad english, I wish the mod "debug" my post
In second step when I run msiexec to unpack the msi file, it fails and i got an error says "Internal error 2203". Any hint for this?
i am a noob appareantly because i dont understand step two.
I did it. Instead of putting the msi file under c:\ , I put it somewhere else, e.g., c:\temp, and run the command from there then it runs successfully.
Thx, It Works!!! On My Touch Xl
I've seen that many apps comes with AppName.0409.mui installed in the same folder of the app, usually \Windows.
For who don't have an english OS, usually miss app dialog box string.
I've seen that if u want to have back dialog box string u have to make a copy of AppName.0409.mui and reneme it into AppName.xxxx.mui where xxxx is your contry code (for me, italian, 0410).
But how to have dialog box string in native language?
I've tried with a recent app extracted from touch dual (Action Screen) which have a mui file with only one string. I've used Resource Hack, changed the string, compiled and saved. But... nothing.
In second instance i've changed not only the string but also the language code, compiled, saved and...
So can someone who is skilled make a tutorial for changing app strings?
Sorry for my bad english and thanks in advance for reply.
P.S.: i've read this http://forum.xda-developers.com/showthread.php?t=311078 and also this http://forum.xda-developers.com/showthread.php?t=307968 but talking about rom, not apps...
I do it like this:
1. Copy the program's executable file to pc.
2. Open the exe with Resource Tuner. I delete all other folders exept Menu, Dialog and String(in these are all the strings for translation) and save the file.
3. Then I open it with resource hacker and push action -> save all recources
4. I open the generated rc file with notepad and replace all the:
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US(or maybe this is another language)
lines to:
LANGUAGE LANG_GREEK, 0x1 (this is for greek language)
and save the file.
5. After that I open the rc file again, but now with resource builder and I push tools -> Create resource-only dll and I save the file as name_of_file.exe.0408.mui(for greek).
6. Finally I open this file with resource hacker and I translate it
I used to do it in this way cause I have all these three progrs(resource hacker, resource tuner and resource builder)
Maybe there are other progs or ways but this works fine for me until now. If someone knows easier and faster methods I also want to know.
First, thanks for reply.
I was trying to make an easier thing... but maybe i can try this way for my scope.
I've installed HTC Action Screen, you can found it at: http://forum.xda-developers.com/showthread.php?t=336587
It's a cool launcher, nothing more. After installation i can find in \Windows folder two files:
HTCActionScreen.exe
HTCActionScreen.exe.0409.mui
Well in the mui there's only one string that is the top of the launcher screen, that i don't see. I've renamed 0409 into 0410 and now i see the string, the original one in english (some like that "Dial phone number or select a task below:").
I'd like to change in italian, so, i've used resource hacker ONLY for translate the string (as in your 6.) but... i don't see anything once again!!!
Any suggestion?
Have i to start from exe as in your reply?
Thanks again.
This is happens because you cannot change the LANGUAGE line with resource hacker. For this I save the resources in a rc file and adit it with notepad. I had similar problems with some muis that cannot translated before use the method that I described above. You only need resource builder to recompile the rc file to mui again. I don't now in what must change the Language line for Italian, but I think you can find out if you open an italian mui file.
So, i describe my step:
1) open HTCActionScreen.exe.0409.mui with Resource Hacker and and push action -> save all recources
2) open the .rc just created with notepad and changed LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US into LANGUAGE LANG_ITALIAN, SUBLANG_ITALIAN
3) open this .rc with resource builder and push tools -> Create resource-only dll and I save the file as HTCActionScreen.exe.0410.mui
4) open this file with resource hacker and translate it
it doesn't work
Where's my fault?
Maybe have i to sign the file?
So I wish to translate the English CM7 to my language, but i can't decompile the settings file without errors. I know i need strings.xml fro the res/values folder inside the apk but with apk_manager_4.9 I can't decompile this system file without errors. It seams it only extracts the file ...
Anyone can help me out here
use apktool.
to load framework file use apktool if "framework file".apk (if you do not input framework it send error message), after that you can load settings.apk and translate it to your language.
I tried it and it should work.
sry cause bad Eng...
This sounds like a lot of modding ... A d that apktool is not very userfriendly
Source: http://www.miui-au.com/add-ons/apktool/
Use APKTool to Decompile, Edit, Translate and Recompile an APK
APKTool is an application (made by Brut.all) which decompiles and recompiles android APKs. If you know what you are doing, it also allows you to debug the smali code step by step. In our case it will enable us to build a language pack by translating the .xml strings inside APK files.
This tutorial is for the Windows version of APKtool.
The Google.Code page for APKTool is here, however, we have prepackaged everything you need and uploaded it here
The Video Tutorial is Below:
The Supplementary guide to common errors in APKTool is below:
You need to do the following preparations (the video outlines these steps anyway):
Download the prepackaged APKTool zip.
Extract them to a directory you will remember.
Extract framework-res.apk AND apk files you want to decompile from the MIUI_Au ROM and copy them to the root directory of APKTool.
This step must be completed every time you are dealing with APKTool:
Open a command window
Navigate to the root directory of APKtool and type the following command:
apktool if framework-res.apk
The output should be:
I: Framework installed to: C:\Users\Josh\apktool\framework\1.apk
This step does the actual decompiling of the APK (I will assume that the chosen APK is Settings.apk):
apktool d Settings.apk
The output should be:
I: Loading resource table…
I: Decoding resources…
I: Copying assets and libs…
After doing that, a new directory with the name of the APK you decompiled should have been created. You need to:
Change into the newly created directory.
Change into the /res folder
Check to see if a values-xx folder exists, where xx is the two letter code of the target language to be translated into. For example, if you are aiming to translate into German, check for a values-de folder. If it does not exist (and chances are that if you are translating into a new language, that it will not exist), you need to create it. Then, copy the arrays.xml and strings.xml files from the /values folder into the folder you just created.
Open these two files (in Notepad ++) and alter the strings (the text inBLACK ONLY). Look out for things that look like %d and %s /’ - Don’t edit these, as they are variables. Also, if you see &, it represents the ‘&’ sign, so feel free to change it. Finally, you MUST be sure to place a backslash ‘\’ before an apostrophe, for example Proxy\’s would be the equivalent of Proxy’s.
Once you have translated and edited your arrays.xml and strings.xml files, save them, and return to the root directory of APKTool.
Open a command prompt to that directory
Enter the following command to recompile your edited and translated APK (assuming that Settings.apk is the chosen APK):
apktool b Settings
The output should be:
I: Checking whether sources has changed…
I: Smaling…
I: Checking whether resources has changed…
I: Building resources…
I: Building apk file…
You may get a couple of these messages:
aapt: warning: string ‘app_killed_message’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘global_action_reboot’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘reboot_system’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘toast_reboot_recommend’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res
However, it will build the apk anyway. These messages mean that some strings don’t have values. It is only an issues if the text im blue includes your translation language.
Once that is done, two directories will have been created within the decompilation directory. One will be called “dist”, and this is where it will place a built, but not signed, apk file. The other one is called “build”, and here it will place everything “loose” (the contents of the APK).
I have trouble using the APK files it spits out in the /dist folder ( they force closes if they are an application, or bootloop it a framework-res.apk; I think the reason is because Android will not accept APK files that are not signed). Instead, copy the resources.arsc from the /build directory into the original framework-res from the rom (just overwrite the old resources.arsc one with the new one).
This tutorial is for the Windows version of APKtool.
teneke said:
So I wish to translate the English CM7 to my language, but i can't decompile the settings file without errors. I know i need strings.xml fro the res/values folder inside the apk but with apk_manager_4.9 I can't decompile this system file without errors. It seams it only extracts the file ...
Anyone can help me out here
Click to expand...
Click to collapse
The true way -- build settings youself from source with new language in res
The prepackaged link is not working.
Does anyone have the file?
Cheers
Great tutorial. I will need them to translate chinese .apk to english
Can't you use the Lauguage and Input settings?
Sent from my Nexus 4
Wonderful post!
underlines said:
Source: http://www.miui-au.com/add-ons/apktool/
Use APKTool to Decompile, Edit, Translate and Recompile an APK
APKTool is an application (made by Brut.all) which decompiles and recompiles android APKs. If you know what you are doing, it also allows you to debug the smali code step by step. In our case it will enable us to build a language pack by translating the .xml strings inside APK files.
This tutorial is for the Windows version of APKtool.
The Google.Code page for APKTool is here, however, we have prepackaged everything you need and uploaded it here
The Video Tutorial is Below:
The Supplementary guide to common errors in APKTool is below:
You need to do the following preparations (the video outlines these steps anyway):
Download the prepackaged APKTool zip.
Extract them to a directory you will remember.
Extract framework-res.apk AND apk files you want to decompile from the MIUI_Au ROM and copy them to the root directory of APKTool.
This step must be completed every time you are dealing with APKTool:
Open a command window
Navigate to the root directory of APKtool and type the following command:
apktool if framework-res.apk
The output should be:
I: Framework installed to: C:\Users\Josh\apktool\framework\1.apk
This step does the actual decompiling of the APK (I will assume that the chosen APK is Settings.apk):
apktool d Settings.apk
The output should be:
I: Loading resource table…
I: Decoding resources…
I: Copying assets and libs…
After doing that, a new directory with the name of the APK you decompiled should have been created. You need to:
Change into the newly created directory.
Change into the /res folder
Check to see if a values-xx folder exists, where xx is the two letter code of the target language to be translated into. For example, if you are aiming to translate into German, check for a values-de folder. If it does not exist (and chances are that if you are translating into a new language, that it will not exist), you need to create it. Then, copy the arrays.xml and strings.xml files from the /values folder into the folder you just created.
Open these two files (in Notepad ++) and alter the strings (the text inBLACK ONLY). Look out for things that look like %d and %s /’ - Don’t edit these, as they are variables. Also, if you see &, it represents the ‘&’ sign, so feel free to change it. Finally, you MUST be sure to place a backslash ‘\’ before an apostrophe, for example Proxy\’s would be the equivalent of Proxy’s.
Once you have translated and edited your arrays.xml and strings.xml files, save them, and return to the root directory of APKTool.
Open a command prompt to that directory
Enter the following command to recompile your edited and translated APK (assuming that Settings.apk is the chosen APK):
apktool b Settings
The output should be:
I: Checking whether sources has changed…
I: Smaling…
I: Checking whether resources has changed…
I: Building resources…
I: Building apk file…
You may get a couple of these messages:
aapt: warning: string ‘app_killed_message’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘global_action_reboot’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘reboot_system’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res\res; found: fr it ja
aapt: warning: string ‘toast_reboot_recommend’ has no default translation in C:\Users\Josh\Desktop\NF\framework-res
However, it will build the apk anyway. These messages mean that some strings don’t have values. It is only an issues if the text im blue includes your translation language.
Once that is done, two directories will have been created within the decompilation directory. One will be called “dist”, and this is where it will place a built, but not signed, apk file. The other one is called “build”, and here it will place everything “loose” (the contents of the APK).
I have trouble using the APK files it spits out in the /dist folder ( they force closes if they are an application, or bootloop it a framework-res.apk; I think the reason is because Android will not accept APK files that are not signed). Instead, copy the resources.arsc from the /build directory into the original framework-res from the rom (just overwrite the old resources.arsc one with the new one).
This tutorial is for the Windows version of APKtool.
Click to expand...
Click to collapse
Is this still valid for New Android OS?! like 5.0 or 6.0 and above?
Hi folks,
I was having hard time translating stuff from CyanogenMod project, wasted hours searching for matches and missing stuff.
So, to help with that issue, I made a tool for Windows to help translating the text from strings.xml, array(s).xml to your language. It compares English XML with your target one.
Features:
- It should work for all languages (haven't tested though)
- Automatically filters items marked as translatable="false"
- Show comments that are before the item (if exists)
- Search for text
Please read Help->About for commands.
Fill up your language tag in Settings->Translate to...
Requirements:
Windows XP or greater
Microsoft .NET 4.0 http://www.microsoft.com/en-us/download/details.aspx?id=17851
Download link:
https://www.dropbox.com/s/ruewdcp82846agw/Translating.exe
Please, provide feedback below
After translating some strings (maybe 100) target xml file becomes 0 KBs empty file.
It happened 2 times in a row
nomedor said:
After translating some strings (maybe 100) target xml file becomes 0 KBs empty file.
It happened 2 times in a row
Click to expand...
Click to collapse
what is english folder suppose to mean?
R: [TOOL] Help translating Android XML files (strings,arrays) to your language
lukemovement1 said:
what is english folder suppose to mean?
Click to expand...
Click to collapse
Old thread...