在我的linux下安装了Sublime Text 3 发现了是英文的,所以想办法加载中文

1.安装 Package control ,去https://packagecontrol.io/installation找到Package control的安装代码

import urllib.request,os,hashlib; h = ‘df21e130d211cfc94d9b0905775a7c0f’ + ‘1e3d39e33b79698005270310898eea76’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://packagecontrol.io/’ + pf.replace(‘ ‘, ‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install’ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)

 

打开Sublime,按ctrl+`,打开终端,将上述内容复制进去,回车确定;稍等片刻就好了

2.点Preferences— >package control,在出现的项目里选择,package control:install package,并稍等

3.等出现搜索条后,输入chinese,找到chinese localization,并安装

4.安装好后会自动改为中文,如果没有,选help—>language ,选择简体中文