Translation Tutorial

A] Editing Java Applications From Mobile:

We need not have a PC to edit or translate Java applications. We can also edit in our mobile. Even in our Nokia s40. Here I will explain how, from very beginner. Please, ignore this if you already know.

Required Applications:

Something to know about Java Class Editor:

What is it?:
"Java Class Editor" is a very useful software for modifiers, translators and moderators. With this software you can edit java class files.

Working with java class files has to be very careful.decrease or adding a single "byte" can cause the full software corrupted.

At the opening of "Java Class Editor" it shows the file manager of your phone or memory card.In Attachment there are two different softwares, one is for j2me and another is for jsr75 file system.
most nokia, sony ericsson, motorola, samsung allows jsr75 file system. j2me is for siemens and some sony ericssons. (N.B.:Try both and see which one is working with your phone)

Select a file from the file manager.and it opens every files(pics,melodies,classes and so on) with text editor.there you will find every byte.some shows a peculiar dots. there will be a cursor that shows your position.In this editor there are some shortcuts:

2-Cursor Up
4-Cursor Left
5-Action Menu
6-Cursor Right
7-Go To Position
8-Cursor Down
9-Search Text
0-Multi Windows(HEX,DEC)
*then5-Tools Menu
#-Correspondent Search
Joy Down-One Page Down
Joy Up-One Page Up
Soft Keys-File Manager and Main Menu

By clicking "joy action" or "5" key it opens the action menu.there are several actions in this menu.

*Shortcut:Key "3"
*Description:HEX data is very important for class editing.hex data contains two is bound from 00 to ff. every hex data contains a action.such as "41" means "A".
*Symbols and Actions:
0A=one line gap

*Note:30to3F contains 15 symbols.30,31,32,33,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,3F.

*Description:In action menu you will find "symbol" you have to edit it just as a text.
*Note:Editing "symbol" cause adding one byte don't work with it.

*Shortcut:Key "1"
*DescriptionEC data contains 3 numbers and bound from 000 to 250.every data has a symbol.
*Datas and Actions:
010=one line gap
065to090=ABCDEFGHIJKLMNOPQRSTUVWXYZbr /> 091to096=[\]^_`

#Add Text:br /> In action menu you will find just add a text from the causes add a byte.

#Add Byte:
It adds selected bytes from the cursor.added bytes contains "00" hex data and "000" dec data.

#Delete Byte:
It deletes selected bytes from cursor.

*Shortcut:Key "9", correspondent search,key "#".
*Description:Just type a word and search in the page.the word is "case sensitive". so give the accurate can also view the hex and dec datas of the word by clicking "text-hex-dec". you can also translate words here(if checked in settings).

*Shortcut:Key "*".
*Descriptionress "*" and start marking from the cursor.then press "5" to open tools menu.

#Cut:Copy to clipboard and remove from page.
#Copy:Copy to clipboard.
#Insertaste copied part from cursor.
#Remove:Remove marked part from page.
#Edit:Return to Editor.

Pressing soft key opens main menu.
#Save:Overwrite the file and save modified.
#Save As:Save modified in a different file.
#Save Buffer:Save clipboard parts in a different file.file name will "buf_file".
#Settings:Setup background colour, text size, text style, translator here.

JAR and ZIP:
Java applications have an extension .jar. JAR is a ZIP archive format. So an application which can unzip a Zipped file, can also unzip a Java application. Java applications usually contain class files with many other associated files. If we can change or edit the class files and other files, then we can change an application. As any s40 application cann't access the java file system, we cannot edit files with extension .jar. So we must have the application with its extension .zip. Our Ucweb can do this. When you download an application through Ucweb, just rename it to .zip(e.g.-mini.jar to Now you can edit.

JAR and JAD:
Some may not know differences between .jar and .jad. Jar is Java Archive, while .jad is Java application descriptor file. So a .jad file is similar to a text file and contains informations about the .jar file. It also contains the certificate. Note that after editing a .jar file, the .jad will not work for it. s40 phones can install .jar without .jad.

The class files:
These are the files in the archive written in a programming language. There are strings inside a class file. When we translate an application, we edit the text strings. There may also be images embedded inside the class files. They can be edited by HEX editors by changing their HEX values(I cannot explain more as I don't know more). Here we'll learn to edit text strings, changing images (not embedded), changing the application name etc.

The META-INF folder and MANIFEST.MF file:
You'll see a directory named META-INF inside the archive. Inside it, there'll be a file named MANIFEST.MF which contains informations about the application, such as its name, icon, the main class file etc. It can be edited with any text editor. By editing the MIDlet-Name, you can change the name of the application. There will also be something like this
MIDlet-1: UC7.0, /icon.png, Webclient
If you add another like
MIDlet-2: Ringtone Cutter, /icon.png, GameMidlet along with its class files(note that class files of any midlet shouldn't get replaced, so better to use it he class files have different names), it can have two Midlets in one application. But if there is anything wrong in the MANIFEST.MF file, then it'll become invalid.

Changing Logo and icons:
To change any image in an application, just replace the corresponding image with another image with same name with the help of MiniCommander. Note that the resolution should be same.

Translating and editing:
First extract the class file you want to edit or translate using MiniCommander. Then to edit strings in it, open it with Class Editor. You will see many boxes and text. You can deassemble them with Class Editor. You can also edit text strings, symbols, hex values with it. If you want to edit only the text strings, or want to translate, you can use the Class Translator. When you open a class file with it, it'll extract all text strings. Now you can easily edit and translate them. Now after making necessary changes, save it. Then add it to the archive with MiniCommander. Previous class file will be replaced with newer one. Now rename the archive to _jar with MiniCommander. Then with your phone, rename it to .jar to install.

Tip: You should know the languages to translate. A solution may be Google Translate. And your phone should support the font.

B] Editing Java Applications From PC:

Required Applications:

Note: To run CE 2.23.jar, you will need to install Java Version 6 Update 30 first.

I] By using Class Editor (CE) 2.23:

(I am here using uc browser.jar as an example. You can replace it with any java app. With this method you will get your own java app/games in your native language.)

1. Right click on ucweb.jar open with winrar or 7-zip.

2. Navigate to WebClient.class then extract to specified folder you prefer.

3. Run classeditor (ce.jar) and open WebClient.class u have extracted before.

4. Click on Modify Mode to enable(on) modify java class.

5. Click on Constant Pool button to view java.class string.

6. Navigate on string u wish to edit and click it, as example I click on DYNAMIC DATA,after click this string i will get navigate go to 433.

7. Before you click Go button please remember  string index for later use,in this case DYNAMIC DATA index is 8, then click Go button.

8. Write your  word on value box then click Modify button then make sure your word are same on index string, if the word on string can't change click button modify then click on index string again.

9. Then put the number you remember before(in this case index 433=8) then click Go button.

10. Click on modify button then click on index string to modify string value.

11. After edit all string value u wish to translate save this file.then close class editor (ce.jar),(be carefull my friend,not all class string can edit, if you make mistake the java app will crash and won't start).

12.Open again ucweb.jar with winrar– right click –click add file to archive.

13. Browse WebClient.class your modified then click ok to add file on archieve, close the winrar. Now transfer ucweb.jar to your phone for installation process.

14. Thats it, edit and translate java class is easier but long time to finish, now you will get ucweb java in your native language.

1 comment:

1. Comment using "Name/URL" option for easy Communication.
2. You can use Smiley's and basic HTML tags in Comments.