开源软件名称:LocalizedMenu
开源软件地址:https://gitee.com/zam1024t/LocalizedMenu
开源软件介绍:
LocalizedMenuLocalize Tool & Localized Menu for Sublime Text 2/3/4 End User - Provide a easy way to add new languages
- Support multiple version/platform
- Support share common menus
- Auto backup local menus
- Auto unpack new build english menus
README.mdThis project is also hosted atShotsWork on WindowsWork on OS XWork on UbuntuInstallation- With Package Control
- Manually
- donwload master.zip,unpack to
Packages ,then rename LocalizedMenu-master to LocalizedMenu - git clone to
Packages
git clone https://github.com/zam1024t/LocalizedMenu
Usage- Toggle in menu
- via
Preference -> Languages
- Toggle in command panel
Ctrl+Shift+P , typelmxx (xx is the locale code) to toggle
Add A Languagecopy locale/en/en.json to locale/<locale>/<locale>.json , localize to your language copy menu/<version>/en/* to menu/<version>/<locale>/* , localize to your language For example, now add locale named my for Sublime Text Build 3999 - open
LocalizedMenu dir, via Preference -> Languages -> Add a language - enter
locale , copy en to my - enter
my , rename en.json to my.json , edit as:
{ "link": "", "hidden": false, "caption": "MyLanguage", "mnemonic": "m" } - enter
menu/3999 , copy en to my , and tranlate all caption in menu files - detect language via
Preference -> Languages -> Detect , then MyLanguage (my) display
locale configslink: the target locale linked tohidden: hide menu itemcaption: language name,locale code will auto add extralymnemonic: hotkey,optional,make sure caption contain it,Case sensitive
Submit A Language- locale name must be named as
<languageCode> or <languageCode>_<countryCode> - Fork repo
- Make pull request
Locales & ContributorsRelated discussLicenseThe MIT License |
请发表评论