sublime text 3 漢化菜單方法
https://packagecontrol.io/installation
The simplest method of installation is through the Sublime Text console.
最簡單的安裝插件的方法。
The console is accessed via the ctrl+` shortcut
使用快捷鍵 ctrl + ` 打開控制檯
or the menu.
或者使用 View > Show Console 菜單打開控制檯
Once open, paste the appropriate Python code for your version of Sublime Text into the console.
打開後,複製下面的代碼到控制檯,並運行。
(這個是 sublime 3 的)
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)
(這個是subliem 2的)
import urllib2,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
之後
Preferences > package control 或者使用快捷鍵 ctrl+shift+p 打開插件管理器
找到 install package 選項,點擊之後進入插件查找窗口,輸入 Chinese 找到 有語言翻譯的那個插件,安裝完事。。