-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support User defined language translation
- Loading branch information
Showing
3 changed files
with
178 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,106 @@ | ||
[ | ||
{ | ||
{ | ||
"children": [ | ||
{ | ||
"caption": "Language", | ||
"children": [ | ||
{ | ||
"caption": "Language", | ||
"children": [ | ||
{ | ||
"args": { | ||
"language": "ZH_CN" | ||
}, | ||
"caption": "Simplified Chinese 简体中文", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "S" | ||
}, | ||
{ | ||
"args": { | ||
"language": "ZH_TW" | ||
}, | ||
"caption": "Traditional Chinese 正體中文", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "T" | ||
}, | ||
{ | ||
"args": { | ||
"language": "JA_JP" | ||
}, | ||
"caption": "Japanese 日本語", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "J" | ||
}, | ||
{ | ||
"args": { | ||
"language": "EN" | ||
}, | ||
"caption": "English", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "E" | ||
} | ||
], | ||
"id": "locale", | ||
"mnemonic": "L" | ||
{ | ||
"command": "localize_tool", | ||
"args": { | ||
"action": "open_file", | ||
"file": "${packages}/Default/Main.sublime-menu" | ||
} | ||
}, | ||
{ | ||
"command": "localize_tool", | ||
"args": { | ||
"action": "reset", | ||
"file": "" | ||
} | ||
}, | ||
{ | ||
"command": "localize_tool", | ||
"args": { | ||
"action": "new_locale", | ||
"file": "" | ||
} | ||
}, | ||
{ | ||
"caption": "-" | ||
}, | ||
{ | ||
"args": { | ||
"language": "ZH_CN" | ||
}, | ||
"caption": "Simplified Chinese 简体中文", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "S" | ||
}, | ||
{ | ||
"args": { | ||
"language": "ZH_TW" | ||
}, | ||
"caption": "Traditional Chinese 正體中文", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "T" | ||
}, | ||
{ | ||
"args": { | ||
"language": "JA_JP" | ||
}, | ||
"caption": "Japanese 日本語", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "J" | ||
}, | ||
{ | ||
"args": { | ||
"language": "EN" | ||
}, | ||
"caption": "English", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "E" | ||
}, | ||
{ | ||
"args": { | ||
"language": "Unknown" | ||
}, | ||
"caption": "User Define", | ||
"checkbox": true, | ||
"command": "toggle_language", | ||
"mnemonic": "U" | ||
} | ||
], | ||
"id": "help", | ||
} | ||
"id": "locale", | ||
"mnemonic": "L" | ||
} | ||
], | ||
"id": "help" | ||
}, | ||
{ | ||
"id": "preferences", | ||
"children": [ | ||
{ | ||
"caption": "Package Settings", | ||
"id": "package-settings", | ||
"children": [ | ||
{ | ||
"caption": "Localization", | ||
"children": [ | ||
{ | ||
"caption": "Settings", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Localization.sublime-settings" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"supports": [ | ||
"EN", | ||
"JA_JP", | ||
"ZH_CN", | ||
"ZH_TW" | ||
], | ||
"translation": { | ||
"EN": { | ||
"open_file": "Edit", | ||
"new_locale": "New Localization", | ||
"reset":"Reset" | ||
}, | ||
"JA_JP": { | ||
"open_file": "Edit", | ||
"new_locale": "New Localization", | ||
"reset":"Reset" | ||
}, | ||
"ZH_CN": { | ||
"open_file": "编辑", | ||
"new_locale": "新翻译", | ||
"reset":"重置" | ||
}, | ||
"ZH_TW": { | ||
"open_file": "編輯", | ||
"new_locale": "新翻譯", | ||
"reset":"重置" | ||
} | ||
} | ||
} |