Android APK software localization tutorial

Source: Internet
Author: User
Part 1: localization of ARSC files

At present, the most popular Chinese method on the market is the main file of Chinese.

Let's start:

First, open Androidresedit1.3

Then Resources. ARSC Drag the file directly.

Click automatic localization. Then we will begin to refine the process one by one.

However, please note that there will be some Chinese errors in this Chinese process. (You know the capabilities of Google translation.) For exampleProgramIt seems to be called a program killer, but it cannot be translated as a killer directly. Use the end instead.

Also, pay attention to the following points during the process of Chinese resources. ARSC:

1. Do not translate the content starting with http.

2. Do not write some two letters together in Chinese.

3. Do not describe special characters such as underscores.

4. Words Starting with lowercase letters do not need to be written in Chinese.

In fact, basically this Chinese tool is already quite complete, and it has automatically blocked a lot of unnecessary Chinese text. Therefore, if you are careful, you will be able to find out which cannot be Chinese or which can be Chinese.

Then, save the finished Chinese files and replace the original Resources. ARSC File.

The first step is the localization here, and the next step is the localization of the. xml file.

 

Part 2: localization of. xml files

The localization of XML files is the second part of the entire localization process.

The first floor of the XML file has already been used.

There is Androidmanifest. xml File, this is the main XML file in the system, also drag Androidresedit1.3 Open under directory

At this time, you will find that almost all of these words start with a lowercase letter, are connected together with two words, and start with HTTP. Therefore, this file basically does not need to be written in Chinese, so you can skip it.

Then, open the res folder. Drag the XML files one by one Androidresedit1.3 Find the statements or words that need to be written in Chinese.

Based on the Division mentioned earlier, only Chinese words that need to be and can be written are selected.

Finally, find Settings. xml Open this file.

After automatic translation, we found that only one sentence can be translated into Chinese. As a result, only one sentence is left for withdrawing all others from Chinese.

Save and overwrite the original file.

OK. The second part ends. Next, the third part is the most complex.

 

Part 3: classes. Dex Localization

Classes. Dex. This file is the most tedious and hard to explain in all Chinese steps. I can only explain it as much as possible, because many Chinese users rely on experience, rather than clearly explaining what the Chinese version is.

In addition, once the classes. DEX has a local localization error, it will cause a loss in the entire localization process. So be careful! And, Thank you! Sorry!

Let's get started.

First, before proceeding to this step, we can see that we have made a part of it. However, the following lines are still in English,

(In fact, after the first two steps are finished in Chinese, the top kill selected apps are already in Chinese, but because of my laziness, this is the image cut before the Chinese version. As you can see, the setting, help, And onfo below are still in English. This part is included in classes. Dex. Therefore, we must complete this step if we want to complete the process.

I. Unpack Classes. Dex File.

Classes. Dex must be untranslated first.

Use the DEX unpack and package tools in the preparation tool for reverse translation. For details about the Windows 7 system background and the Windows XP system background, Please clearly distinguish the download.

After unpacking, you will get Classes name package .

Note:

The xtemp folder (package removal tool) in win7 can be placed anywhere, and the classes. Dex file is dragged to Dex. bat. A black program running box appears, and the package is unwrapped by pressing "1.

In the Windows XP system, you must first create a folder named android in the root directory of drive C, and then put it in the directory. The specific directory is: C: \ Android \ xtemp. In addition, the classes. Dex file is dragged to undex. BAT and is automatically unwrapped. Don't confuse it!

Ii. Chinese Classes. Dex File

1. Open Notepad ++ portable File, and then drag the folder named classes into it.

After opening the file, you can see that there are countless files,

What should I do at this time? As we have mentioned above, we only have the following lines of setting, help, And onfo, right? So we only need to find the words! You do not need to search for all three items. You can only search for setting.

But please note! In all Chinese, Please remember: only those with the const-string in front can be written in Chinese! Therefore, we need to search for const-string! Then we will search for the setting, help, And onfo that we want to convert to Chinese after const-string. But why can't we turn to Chinese only after this word? I don't know .....

2. search by the upper left corner-search for files

Enter const-string.

See it? Click search.

Here, you will find that there are many search results below. How to separate them? This is what I mentioned at the beginning is not easy to explain. Some complicated Chinese software depends on your own Chinese experience to determine what needs to be written and what does not need to be written.

The software we are doing today is actually very simple, and many simple software can also use this stupid way to determine what to turn.

Find the setting, help, And onfo words to be written in Chinese ~ Or they are connected together ~! This is what can be customized. As shown in

Then, in the box above, select "setting" and change it to Chinese characters.

Save.

3. Package the classes folder.

Save it in Chinese and return to the C: \ Android \ xtemp directory.

Note:

In the Windows 7 system background, drag the classes folder to Dex. BAT and press 2. Package.

In the Windows XP system background, click redex. bat. Package.

After packaging, a file named out. Dex is generated in the directory, and the file name is changed to classes. Dex to overwrite the original file.

Another reminder: you are not sure about it. Do not turn it into Chinese. Please take a closer look at this part of the tutorial!

 

Part 4: Signature

All of them have been finished in Chinese, and the next step is the last step, signature.

First, open the META-INF folder and delete the CERT. RSA and cert. SF files. Only the manifest. MF file is left.

Then, compress all the files into the program files before the localization. (Can you understand this ?)

Then, open Androidresedit1.3 Find the above signature and open it.

Select the file to be signed and click OK.

OK...

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.