Sublime Text 2 greening and Localization [Windows Chapter]

Source: Internet
Author: User
Tags ultraedit

In fact, ST3 has been out for a long time, but I this person nostalgia, has been fond of ST2, so chose her.
Recently my ST2 more and more cards, even sometimes the input will delay 1 seconds, so I intend to make a green version.

Open Sublime Text Official website, currently I download to the latest version is Sublime text 2.0.2.
Then we install him, recommended to install outside the C-drive, the installation path is best not to appear in Chinese, otherwise you will encounter a variety of exotic bugs.

Well, after everything is done, let's green her.
Maybe you'll ask, why green her.
After greening, the configuration files are saved in the installation directory, so that you later need to move this folder, or reinstall the system.
We do the Chinese, installed plug-ins, even you open the files are still in, this is the benefits of greening.

After the installation is complete, don't rush to open ST2 we want to create a new Data folder in the installation directory, note the case.

If you have just accidentally opened the ST2, it doesn't matter, first the Data folder was built, we go to delete the configuration in the %appdata% directory.
Because of the location of the %appdata% directory, the difference between XP Win8, and even the location of each user is different, so we have to use CMD to open him.
Press Win + R or click Start, run input cmd, then enter, then input Explorer%appdata% and return to the %appdata% directory.

Then find the Sublime Text 2 folder to delete.

At this point, green finishes, is not very simple, the following we began to Chinese, if you think English is pleasing to the eye, then do not have to look at the following content, because the Chinese is very cumbersome.

In fact, there are a lot of Chinese courses online, but are not comprehensive, just a simple introduction of the next menu of Chinese.
Let's take a look at the situation after the Chinese.

Title, menu, command panel, search all Chinese.
1. Menu and Command panel localization
Open our installation directory, such as I installed in the D:\Program files\sublime Text 2 directory.
Then open the Pristine Packages folder.

Locate the Default.sublime-package file and copy it to desktop processing.
Then put the Default. Sublime-package renamed to Default. Zip and unzip the drive.

We got a Default folder, open this folder.
Sort by type, and then locate the. Sublime-menu and. sublime-commands files that end.

They can be modified by opening them with St or notepad++.

In fact, you will find that just a few JSON data, we just need to change the key name caption these can be.
. Sublime-commands is a command panel menu that modifies the same method.

After these changes, our ST basic superior Chinese, of course, the menu is a bit more, modify to have patience.

Next, we'll pack back the . Sublime-package file, how can I break it?
In fact you directly compressed into a zip and then renamed.
However, I recommend that you create the package control by creating a zip bundle, but you will have to install it first.
After you install the package Control, rename the Default folder you just modified to Default2
Then put it in the D:\Program files\sublime Text 2\data\packages\ folder.
Then press Ctrl + Shift + P to open the command panel and enter PCCP


Then click Default2 to create a default2.sublime-package file on the desktop.
We renamed the Default2.sublime-package default.sublime-package and then covered it back.

However, when we install some plugins, such as the mandatory package Control will find the menu changed back to English.

So we're going to modify the plugin's menu.

2. Plug-in menu and command panel localization
In fact, the method is the same, but a little bit different, take the package Control,
If you are installing directly from the command line, open the
D:\Program files\sublime Text 2\data\packages\package control\
If you downloaded the package control.sublime-package installed, it is the same as the Chinese menu, first unzip, and then open the catalog Control directory.
We then modified the files ending with. Sublime-menu and. Sublime-commands.

is not the same as just now, very simple. In fact, the Chinese menu and command panel is very simple.

If you install the View in Browser plug-in, the tool menu will change back to English, the same way as the same, so when the change back to the English situation, there is a plugin to cover the menu caused.

The next trouble comes, the Chinese search section.
This is not a modification of the file so simple, the use of the tool has UltraEdit used to modify 16 binary data. The
opens the Sublime_text.exe file with UltraEdit.

Did you scare the urine?
Don't be afraid, we'll ride him right away.
We modify the next heading untitled,

UltraEdit Ctrl + F to find untitled, and of course check find ASCII br>
First search to this, obviously not, why I will know, do not tell you.

Press F3 to find the next, obviously not, to continue:
after F3 3 times, we found a similar one, and we came to test it. Put the last D to 1 try.

Remember to save the modified file, and you cannot open Sublime_text.exe or save it. After you save the
, open Sublime_text.exe again to see.

found that the title has changed, we can be sure that this is the title undoubtedly, the change to Chinese is untitled.
Write without a title directly? That must not work, how to break? The
St is in UTF-8 format, so we also have to convert the untitled to 16 binary.
The simplest way to create a new file with ST to write untitled and then save to desktop 1.txt with UltraEdit open view 16 binary on the line.

and then select Copy,

Of course note the number of bytes, here is 9 bytes.
then switch to sublime_text.exe, select 9 Bytes, and then paste.

But you will be pleasantly surprised to find that the end of the 98 has become 3f, I do not know how, when he was confused, examined several times before the problem found.
We can manually modify it back to 98.
and then save the next try.

succeeded, although the modification was troublesome, but at least it was successfully modified.
The following search is the same method of modification, I will not repeat the commentary.
Let's find out for ourselves.

Finally a little bit of regret, I can not find the file search in the Open files and folders in which to modify,

If there is a master know, please point twos, the niche here first thanked.

Since then, ST's greening and Han-Hua has been done, of course, the Chinese is a physical activity, any software of the Chinese is not simple, although there is no technical content, but must be careful, have patience.
All kinds of changes to the small partners in the Han-up bar it.

Related Article

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.