- Dec 26, 2010
- 13
- 11
Hi, guys. Here I have another version of my program. Now I think we could say the first stage is already finished. Now it's prepared to work as follows:
First of all you must select an apk to translate.
Then you have 3 options:
- Select nothing as old apk version if it's a new translation (not an update)
- Select the same apk as old apk version to edit a previous translation (edit, not update)
- Select an old version as old version to update it
After that, you can press already the "Iniciar traducción" button to start the translation. It will displays the strings.xml (and arrays.xml if it exists) in the text area objects. Then you can modify the file (in this version it only saves it in values-es directory, spanish. In next version you will be able to select and add your own language to the program and apk files).
When you have translated the files you must select a backup dir (I will explain this right now), you can select the "Firmar apk" box if you want the apk to be signed (some of them are installables if signed, others not) and you can press the "Finalizar traducción" button to end the translation.
VERY IMPORTANT: the backup directory must be similar as the next example:
As you can see, in the APK A dir there is a directory "ficheros" (you can create it or not, but if you want to save modified files, you must read this). Here is where we will put our modified files in two directories: original files in "originales" and modified files in "guardados" with the same path as in the APK. For example, if we edit the "apk/res/drawable-hdpi/file.png" file we must copy it in "ficheros/originales/res/drawable-hdpi/file.png" and we must paste the modified file in "ficheros/guardados/res/drawable-hdpi/file.png".
The program will list all the files in "originales" and look for changes in the new versions of the apk. If there are no changes, it will paste the modified files into the apk. If the original files changed, it will displays a warning message (it should now wait for you to make the changes, but I think it doesn't work yet ).
Then, it will backup de original file in the backup directory with a timestamp in the filename, and it will override the original file with de translated version.
Well, here you have the new version. Comments are welcome, as usual.
http://www.megaupload.com/?d=XAGG8H86
CHANGELOG:
- added saving modified files function
- changed backup syntax of the file
NEXT VERSION:
- LANGUAGE SELECT FOR APP AND TRANSLATION!!!!
First of all you must select an apk to translate.
Then you have 3 options:
- Select nothing as old apk version if it's a new translation (not an update)
- Select the same apk as old apk version to edit a previous translation (edit, not update)
- Select an old version as old version to update it
After that, you can press already the "Iniciar traducción" button to start the translation. It will displays the strings.xml (and arrays.xml if it exists) in the text area objects. Then you can modify the file (in this version it only saves it in values-es directory, spanish. In next version you will be able to select and add your own language to the program and apk files).
When you have translated the files you must select a backup dir (I will explain this right now), you can select the "Firmar apk" box if you want the apk to be signed (some of them are installables if signed, others not) and you can press the "Finalizar traducción" button to end the translation.
VERY IMPORTANT: the backup directory must be similar as the next example:
Code:
- backup dir
- apk A dir
- ficheros
- originales
- guardados
- apk B dir
- apk C dir
The program will list all the files in "originales" and look for changes in the new versions of the apk. If there are no changes, it will paste the modified files into the apk. If the original files changed, it will displays a warning message (it should now wait for you to make the changes, but I think it doesn't work yet ).
Then, it will backup de original file in the backup directory with a timestamp in the filename, and it will override the original file with de translated version.
Well, here you have the new version. Comments are welcome, as usual.
http://www.megaupload.com/?d=XAGG8H86
CHANGELOG:
- added saving modified files function
- changed backup syntax of the file
NEXT VERSION:
- LANGUAGE SELECT FOR APP AND TRANSLATION!!!!