diff --git a/EN.zip b/EN.zip index e831229..967bd44 100755 Binary files a/EN.zip and b/EN.zip differ diff --git a/EN/Context.sublime-menu b/EN/Context.sublime-menu new file mode 100755 index 0000000..61a9de2 --- /dev/null +++ b/EN/Context.sublime-menu @@ -0,0 +1,13 @@ +[ + { "command": "copy" }, + { "command": "cut" }, + { "command": "paste" }, + { "caption": "-", "id": "selection" }, + { "command": "select_all" }, + { "caption": "-", "id": "file" }, + { "command": "open_in_browser", "caption": "Open in Browser" }, + { "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "Open Containing Folder…" }, + { "command": "copy_path", "caption": "Copy File Path" }, + { "command": "reveal_in_side_bar", "caption": "Reveal in Side Bar" }, + { "caption": "-", "id": "end" } +] diff --git a/EN/Find in Files.sublime-menu b/EN/Find in Files.sublime-menu new file mode 100755 index 0000000..2101553 --- /dev/null +++ b/EN/Find in Files.sublime-menu @@ -0,0 +1,8 @@ +[ + { "command": "clear_location", "caption": "Clear" }, + { "command": "add_directory", "caption": "Add Folder" }, + { "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "Add Include Filter" }, + { "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "Add Exclude Filter" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "Add Open Folders" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "Add Open Files" } +] diff --git a/EN/Indentation.sublime-menu b/EN/Indentation.sublime-menu new file mode 100755 index 0000000..9c49375 --- /dev/null +++ b/EN/Indentation.sublime-menu @@ -0,0 +1,17 @@ +[ +{ "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "Indent Using Spaces", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab Width: 1", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab Width: 2", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab Width: 3", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab Width: 4", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab Width: 5", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab Width: 6", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab Width: 7", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab Width: 8", "checkbox": true }, + { "caption": "-" }, + { "command": "detect_indentation", "caption": "Guess Settings From Buffer" }, + { "caption": "-" }, + { "command": "expand_tabs", "caption": "Convert Indentation to Spaces", "args": {"set_translate_tabs": true} }, + { "command": "unexpand_tabs", "caption": "Convert Indentation to Tabs", "args": {"set_translate_tabs": true} } + ] diff --git a/EN/Main.sublime-menu b/EN/Main.sublime-menu new file mode 100755 index 0000000..459abe7 --- /dev/null +++ b/EN/Main.sublime-menu @@ -0,0 +1,809 @@ +[ + { + "caption": "File", + "mnemonic": "F", + "id": "file", + "children": + [ + { "command": "new_file", "caption": "New File", "mnemonic": "N" }, + + { "command": "prompt_open_file", "caption": "Open File…", "mnemonic": "O", "platform": "!OSX" }, + { "command": "prompt_open_folder", "caption": "Open Folder…", "platform": "!OSX" }, + { "command": "prompt_open", "caption": "Open…", "platform": "OSX" }, + + { + "caption": "Open Recent", + "mnemonic": "R", + "children": + [ + { "command": "reopen_last_file", "caption": "Reopen Closed File" }, + { "caption": "-" }, + { "command": "open_recent_file", "args": {"index": 0 } }, + { "command": "open_recent_file", "args": {"index": 1 } }, + { "command": "open_recent_file", "args": {"index": 2 } }, + { "command": "open_recent_file", "args": {"index": 3 } }, + { "command": "open_recent_file", "args": {"index": 4 } }, + { "command": "open_recent_file", "args": {"index": 5 } }, + { "command": "open_recent_file", "args": {"index": 6 } }, + { "command": "open_recent_file", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "open_recent_folder", "args": {"index": 0 } }, + { "command": "open_recent_folder", "args": {"index": 1 } }, + { "command": "open_recent_folder", "args": {"index": 2 } }, + { "command": "open_recent_folder", "args": {"index": 3 } }, + { "command": "open_recent_folder", "args": {"index": 4 } }, + { "command": "open_recent_folder", "args": {"index": 5 } }, + { "command": "open_recent_folder", "args": {"index": 6 } }, + { "command": "open_recent_folder", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "clear_recent_files", "caption": "Clear Items" } + ] + }, + { + "caption": "Reopen with Encoding", + "children": + [ + { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } } + ] + }, + { "command": "clone_file", "caption": "New View into File", "mnemonic": "e" }, + { "command": "save", "caption": "Save", "mnemonic": "S" }, + { + "caption": "Save with Encoding", + "children": + [ + { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } }, + { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } }, + { "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } }, + { "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "save", "args": {"encoding": "Hexadecimal" } } + ] + }, + { "command": "prompt_save_as", "caption": "Save As…", "mnemonic": "A" }, + { "command": "save_all", "caption": "Save All", "mnemonic": "l" }, + { "caption": "-", "id": "window" }, + { "command": "new_window", "caption": "New Window", "mnemonic": "W" }, + { "command": "close_window", "caption": "Close Window" }, + { "caption": "-", "id": "close" }, + { "command": "close", "caption": "Close File", "mnemonic": "C" }, + { "command": "revert", "caption": "Revert File", "mnemonic": "v" }, + { "command": "close_all", "caption": "Close All Files" }, + { "caption": "-", "id": "exit" }, + { "command": "exit", "mnemonic": "x" } + ] + }, + { + "caption": "Edit", + "mnemonic": "E", + "id": "edit", + "children": + [ + { "command": "undo", "mnemonic": "U" }, + { "command": "redo_or_repeat", "mnemonic": "R" }, + { + "caption": "Undo Selection", + "children": + [ + { "command": "soft_undo" }, + { "command": "soft_redo" } + ] + }, + { "caption": "-", "id": "clipboard" }, + { "command": "copy", "mnemonic": "C" }, + { "command": "cut", "mnemonic": "n" }, + { "command": "paste", "mnemonic": "P" }, + { "command": "paste_and_indent", "mnemonic": "I" }, + { "caption": "-" }, + { + "caption": "Line", "mnemonic": "L", + "id": "line", + "children": + [ + { "command": "indent" }, + { "command": "unindent" }, + { "command": "reindent", "args": {"single_line": true} }, + { "command": "swap_line_up" }, + { "command": "swap_line_down" }, + { "command": "duplicate_line" }, + { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"}, "caption": "Delete Line" }, + { "command": "join_lines" } + ] + }, + { + "caption": "Comment", "mnemonic": "m", + "id": "comment", + "children": + [ + { "command": "toggle_comment", "args": {"block": false}, "caption": "Toggle Comment" }, + { "command": "toggle_comment", "args": {"block": true}, "caption": "Toggle Block Comment" } + ] + }, + { + "caption": "Text", "mnemonic": "T", + "id": "text", + "children": + [ + { "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line Before.sublime-macro"}, "caption": "Insert Line Before" }, + { "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"}, "caption": "Insert Line After" }, + { "caption": "-" }, + { "command": "delete_word", "args": { "forward": true }, "caption": "Delete Word Forward" }, + { "command": "delete_word", "args": { "forward": false }, "caption": "Delete Word Backward" }, + { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"}, "caption": "Delete Line" }, + { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "Delete to End" }, + { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "Delete to Beginning" }, + { "caption": "-" }, + { "command": "transpose" } + ] + }, + { + "caption": "Tag", + "id": "tag", + "children": + [ + { "command": "close_tag" }, + { "command": "expand_selection", "args": {"to": "tag"}, "caption": "Expand Selection to Tag" }, + { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "Wrap Selection With Tag" } + ] + }, + { + "caption": "Mark", + "id": "mark", + "children": + [ + { "command": "set_mark" }, + { "command": "select_to_mark" }, + { "command": "delete_to_mark" }, + { "command": "swap_with_mark" }, + { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "Clear Mark" }, + { "caption": "-" }, + { "command": "yank" } + ] + }, + { + "caption": "Code Folding", + "id": "fold", + "children": + [ + { "command": "fold" }, + { "command": "unfold" }, + { "command": "unfold_all", "caption": "Unfold All" }, + { "caption": "-" }, + { "caption": "Fold All", "command": "fold_by_level", "args": {"level": 1} }, + { "caption": "Fold Level 2", "command": "fold_by_level", "args": {"level": 2} }, + { "caption": "Fold Level 3", "command": "fold_by_level", "args": {"level": 3} }, + { "caption": "Fold Level 4", "command": "fold_by_level", "args": {"level": 4} }, + { "caption": "Fold Level 5", "command": "fold_by_level", "args": {"level": 5} }, + { "caption": "Fold Level 6", "command": "fold_by_level", "args": {"level": 6} }, + { "caption": "Fold Level 7", "command": "fold_by_level", "args": {"level": 7} }, + { "caption": "Fold Level 8", "command": "fold_by_level", "args": {"level": 8} }, + { "caption": "Fold Level 9", "command": "fold_by_level", "args": {"level": 9} }, + { "caption": "-" }, + { "command": "fold_tag_attributes", "caption": "Fold Tag Attributes" } + ] + }, + { + "caption": "Convert Case", "mnemonic": "a", + "id": "convert_case", + "children": + [ + { "command": "title_case", "caption": "Title Case" }, + { "command": "upper_case", "caption": "Upper Case" }, + { "command": "lower_case", "caption": "Lower Case" }, + { "command": "swap_case", "caption": "Swap Case" } + ] + }, + { + "caption": "Wrap", + "id": "wrap", + "children": + [ + { "command": "wrap_lines", "caption": "Wrap Paragraph at Ruler" }, + { "command": "wrap_lines", "args": {"width": 70}, "caption": "Wrap paragraph at 70 characters" }, + { "command": "wrap_lines", "args": {"width": 78}, "caption": "Wrap paragraph at 78 characters" }, + { "command": "wrap_lines", "args": {"width": 80}, "caption": "Wrap paragraph at 80 characters" }, + { "command": "wrap_lines", "args": {"width": 100}, "caption": "Wrap paragraph at 100 characters" }, + { "command": "wrap_lines", "args": {"width": 120}, "caption": "Wrap paragraph at 120 characters" } + ] + }, + { "command": "auto_complete", "caption": "Show Completions" }, + { "caption": "-", "id": "permute" }, + + { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "Sort Lines", "mnemonic": "S" }, + { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "Sort Lines (Case Sensitive)" }, + { + "caption": "Permute Lines", + "children": + [ + { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "Reverse" }, + { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "Unique" }, + { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "Shuffle" } + ] + }, + { + "caption": "Permute Selections", + "children": + [ + { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "Sort" }, + { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "Sort (Case Sensitive)" }, + { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "Reverse" }, + { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "Unique" }, + { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "Shuffle" } + ] + }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "Selection", + "mnemonic": "S", + "id": "selection", + "children": + [ + { "command": "split_selection_into_lines", "caption": "Split into Lines" }, + { "command": "select_lines", "args": {"forward": false}, "caption": "Add Previous Line" }, + { "command": "select_lines", "args": {"forward": true}, "caption": "Add Next Line" }, + { "command": "single_selection" }, + { "caption": "-" }, + { "command": "select_all" }, + { "command": "expand_selection", "args": {"to": "line"}, "caption": "Expand Selection to Line" }, + { "command": "find_under_expand", "caption": "Expand Selection to Word" }, + { "command": "expand_selection_to_paragraph", "caption": "Expand Selection to Paragraph" }, + { "command": "expand_selection", "args": {"to": "scope"}, "caption": "Expand Selection to Scope" }, + { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "Expand Selection to Brackets" }, + { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "Expand Selection to Indentation" }, + { "command": "expand_selection", "args": {"to": "tag"}, "caption": "Expand Selection to Tag" } + ] + }, + { + "caption": "Find", + "mnemonic": "i", + "id": "find", + "children": + [ + { "command": "show_panel", "args": {"panel": "find"}, "caption": "Find…" }, + { "command": "find_next" }, + { "command": "find_prev", "caption": "Find Previous" }, + { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "Incremental Find" }, + { "caption": "-" }, + { "command": "show_panel", "args": {"panel": "replace"}, "caption": "Replace…" }, + { "command": "replace_next" }, + { "caption": "-" }, + { "command": "find_under", "caption": "Quick Find" }, + { "command": "find_all_under", "caption": "Quick Find All" }, + { "command": "find_under_expand", "caption": "Quick Add Next" }, + { "command": "find_under_expand_skip", "caption": "Quick Skip Next", "platform": "!OSX" }, + { "caption": "-" }, + { "command": "slurp_find_string", "caption": "Use Selection for Find" }, + { "command": "slurp_replace_string", "caption": "Use Selection for Replace" }, + { "caption": "-" }, + { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "Find in Files…" }, + { + "caption": "Find Results", + "mnemonic": "R", + "children": + [ + { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "Show Results Panel" }, + { "command": "next_result" }, + { "command": "prev_result", "caption": "Previous Result" } + ] + } + ] + }, + { + "caption": "View", + "mnemonic": "V", + "id": "view", + "children": + [ + { + "caption": "Side Bar", + "id": "side_bar", + "children": + [ + { "command": "toggle_side_bar" }, + { "caption": "-" }, + { "command": "toggle_show_open_files" } + ] + }, + { "command": "toggle_minimap" }, + { "command": "toggle_tabs" }, + { "command": "toggle_status_bar" }, + { "command": "toggle_menu" }, + { "command": "show_panel", "args": {"panel": "console", "toggle": true} }, + { "caption": "-", "id": "full_screen" }, + { "command": "toggle_full_screen" }, + { "command": "toggle_distraction_free" }, + { "caption": "-", "id": "groups" }, + { + "caption": "Layout", + "mnemonic": "L", + "id": "layout", + "children": + [ + { + "caption": "Single", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1]] + } + }, + { + "caption": "Columns: 2", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.5, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] + } + }, + { + "caption": "Columns: 3", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.33, 0.66, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] + } + }, + { + "caption": "Columns: 4", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.25, 0.5, 0.75, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] + } + }, + { + "caption": "Rows: 2", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 0.5, 1.0], + "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] + } + }, + { + "caption": "Rows: 3", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 0.33, 0.66, 1.0], + "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] + } + }, + { + "caption": "Grid: 4", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.5, 1.0], + "rows": [0.0, 0.5, 1.0], + "cells": + [ + [0, 0, 1, 1], [1, 0, 2, 1], + [0, 1, 1, 2], [1, 1, 2, 2] + ] + } + } + ] + }, + { + "caption": "Focus Group", + "mnemonic": "F", + "children": + [ + { "command": "focus_group", "args": {"group": 0}, "caption": "Group 1" }, + { "command": "focus_group", "args": {"group": 1}, "caption": "Group 2" }, + { "command": "focus_group", "args": {"group": 2}, "caption": "Group 3" }, + { "command": "focus_group", "args": {"group": 3}, "caption": "Group 4" } + ] + }, + { + "caption": "Move File To Group", + "mnemonic": "M", + "children": + [ + { "command": "move_to_group", "args": {"group": 0}, "caption": "Group 1" }, + { "command": "move_to_group", "args": {"group": 1}, "caption": "Group 2" }, + { "command": "move_to_group", "args": {"group": 2}, "caption": "Group 3" }, + { "command": "move_to_group", "args": {"group": 3}, "caption": "Group 4" } + ] + }, + { "caption": "-" }, + { + "caption": "Syntax", + "mnemonic": "S", + "id": "syntax", + "children": [ { "command": "$file_types" } ] + }, + { + "caption": "Indentation", + "mnemonic": "I", + "id": "indentation", + "children": + [ + { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "Indent Using Spaces", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab Width: 1", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab Width: 2", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab Width: 3", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab Width: 4", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab Width: 5", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab Width: 6", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab Width: 7", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab Width: 8", "checkbox": true }, + { "caption": "-" }, + { "command": "detect_indentation", "caption": "Guess Settings From Buffer" }, + { "caption": "-" }, + { "command": "expand_tabs", "caption": "Convert Indentation to Spaces", "args": {"set_translate_tabs": true} }, + { "command": "unexpand_tabs", "caption": "Convert Indentation to Tabs", "args": {"set_translate_tabs": true} } + ] + }, + { + "caption": "Line Endings", + "mnemonic": "n", + "id": "line_endings", + "children": + [ + { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows", "checkbox": true }, + { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix", "checkbox": true }, + { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9", "checkbox": true } + ] + }, + { "caption": "-", "id": "settings" }, + { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "Word Wrap", "mnemonic": "w", "checkbox": true }, + { + "caption": "Word Wrap Column", + "children": + [ + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "Automatic", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true } + ] + }, + { + "caption": "Ruler", + "children": + [ + { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "None", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true } + ] + }, + { "caption": "-" }, + { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "Spell Check", "checkbox": true }, + { "command": "next_misspelling" }, + { "command": "prev_misspelling" }, + { + "caption": "Dictionary", + "children": [ { "command": "$dictionaries" } ] + } + ] + }, + { + "caption": "Goto", + "mnemonic": "G", + "id": "goto", + "children": + [ + { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "Goto Anything…", "mnemonic": "A" }, + { "caption": "-" }, + { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "Goto Symbol…" }, + // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "Goto Word…" }, + { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "Goto Line…" }, + { "caption": "-" }, + { + "caption": "Switch File", + "mnemonic": "t", + "id": "switch_file", + "children": + [ + { "command": "next_view", "caption": "Next File" }, + { "command": "prev_view", "caption": "Previous File" }, + { "caption": "-" }, + { "command": "next_view_in_stack", "caption": "Next File in Stack" }, + { "command": "prev_view_in_stack", "caption": "Previous File in Stack" }, + { "caption": "-" }, + { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]}, "caption": "Switch Header/Implementation", "mnemonic": "H" }, + { "caption": "-" }, + { "command": "select_by_index", "args": { "index": 0 } }, + { "command": "select_by_index", "args": { "index": 1 } }, + { "command": "select_by_index", "args": { "index": 2 } }, + { "command": "select_by_index", "args": { "index": 3 } }, + { "command": "select_by_index", "args": { "index": 4 } }, + { "command": "select_by_index", "args": { "index": 5 } }, + { "command": "select_by_index", "args": { "index": 6 } }, + { "command": "select_by_index", "args": { "index": 7 } }, + { "command": "select_by_index", "args": { "index": 8 } }, + { "command": "select_by_index", "args": { "index": 9 } } + ] + }, + { "caption": "-" }, + { + "caption": "Scroll", + "mnemonic": "S", + "id": "scroll", + "children": + [ + { "command": "show_at_center", "caption": "Scroll to Selection" }, + { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "Line Up" }, + { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "Line Down" } + ] + }, + { + "caption": "Bookmarks", + "mnemonic": "b", + "id": "bookmarks", + "children": + [ + { "command": "toggle_bookmark" }, + { "command": "next_bookmark" }, + { "command": "prev_bookmark" }, + { "command": "clear_bookmarks" }, + { "command": "select_all_bookmarks" }, + { "caption": "-" }, + { "command": "select_bookmark", "args": {"index": 0} }, + { "command": "select_bookmark", "args": {"index": 1} }, + { "command": "select_bookmark", "args": {"index": 2} }, + { "command": "select_bookmark", "args": {"index": 3} }, + { "command": "select_bookmark", "args": {"index": 4} }, + { "command": "select_bookmark", "args": {"index": 5} }, + { "command": "select_bookmark", "args": {"index": 6} }, + { "command": "select_bookmark", "args": {"index": 7} }, + { "command": "select_bookmark", "args": {"index": 8} }, + { "command": "select_bookmark", "args": {"index": 9} }, + { "command": "select_bookmark", "args": {"index": 10} }, + { "command": "select_bookmark", "args": {"index": 11} }, + { "command": "select_bookmark", "args": {"index": 12} }, + { "command": "select_bookmark", "args": {"index": 13} }, + { "command": "select_bookmark", "args": {"index": 14} }, + { "command": "select_bookmark", "args": {"index": 15} } + ] + }, + { "caption": "-" }, + { "command": "move_to", "args": {"to": "brackets"}, "caption": "Jump to Matching Bracket" } + ] + }, + { + "caption": "Tools", + "mnemonic": "T", + "id": "tools", + "children": + [ + { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "Command Palette…" }, + { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "Snippets…" }, + { "caption": "-", "id": "build" }, + { + "caption": "Build System", + "mnemonic": "u", + "children": + [ + { "command": "set_build_system", "args": { "file": "" }, "caption": "Automatic", "checkbox": true }, + { "caption": "-" }, + { "command": "set_build_system", "args": {"index": 0}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 1}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 2}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 3}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 4}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 5}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 6}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 7}, "checkbox": true }, + { "command": "$build_systems" }, + { "caption": "-" }, + { "command": "new_build_system", "caption": "New Build System…" } + ] + }, + { "command": "build", "mnemonic": "B" }, + { "command": "build", "args": {"variant": "Run"}, "mnemonic": "R" }, + { "command": "exec", "args": {"kill": true}, "caption": "Cancel Build", "mnemonic": "C" }, + { + "caption": "Build Results", + "mnemonic": "R", + "children": + [ + { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "Show Build Results", "mnemonic": "S" }, + { "command": "next_result", "mnemonic": "N" }, + { "command": "prev_result", "caption": "Previous Result", "mnemonic": "P" } + ] + }, + { "command": "toggle_save_all_on_build", "caption": "Save All on Build", "mnemonic": "A", "checkbox": true }, + { "caption": "-", "id": "macros" }, + { "command": "toggle_record_macro", "mnemonic": "M" }, + { "command": "run_macro", "caption": "Playback Macro", "mnemonic": "P" }, + { "command": "save_macro", "caption": "Save Macro…", "mnemonic": "v" }, + { + "caption": "Macros", + "children": [ { "command": "$macros" } ] + }, + { "caption": "-" }, + { "command": "new_plugin", "caption": "New Plugin…" }, + { "command": "new_snippet", "caption": "New Snippet…" }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "Project", + "mnemonic": "P", + "id": "project", + "children": + [ + { "command": "prompt_open_project", "caption": "Open Project…", "mnemonic": "O" }, + { + "caption": "Recent Projects", + "mnemonic": "R", + "children": + [ + { "command": "open_recent_project", "args": {"index": 0 } }, + { "command": "open_recent_project", "args": {"index": 1 } }, + { "command": "open_recent_project", "args": {"index": 2 } }, + { "command": "open_recent_project", "args": {"index": 3 } }, + { "command": "open_recent_project", "args": {"index": 4 } }, + { "command": "open_recent_project", "args": {"index": 5 } }, + { "command": "open_recent_project", "args": {"index": 6 } }, + { "command": "open_recent_project", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "clear_recent_projects", "caption": "Clear Items" } + ] + }, + { "caption": "-" }, + { "command": "prompt_select_project", "caption": "Switch Project in Window…", "mnemonic": "S" }, + { "command": "save_project_as", "caption": "Save Project As…", "mnemonic": "A" }, + { "command": "close_project", "mnemonic": "C" }, + { "command": "open_file", "args": {"file": "${project}"}, "caption": "Edit Project" }, + { "caption": "-" }, + { "command": "prompt_add_folder", "caption": "Add Folder to Project…", "mnemonic": "d" }, + { "command": "close_folder_list", "caption": "Remove all Folders from Project", "mnemonic": "m" }, + { "command": "refresh_folder_list", "caption": "Refresh Folders", "mnemonic": "e" }, + { "caption": "-" }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "Preferences", + "mnemonic": "n", + "id": "preferences", + "children": + [ + { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "Browse Packages…", "mnemonic": "B" }, + { "caption": "-" }, + { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "Settings – Default" }, + { "command": "open_file", "args": {"file": "${packages}/User/Preferences.sublime-settings"}, "caption": "Settings – User" }, + { + "caption": "Settings – More", + "children": + [ + { "command": "open_file_settings", "caption": "Syntax Specific – User" }, + { "command": "open_file", "args": {"file": "${packages}/User/Distraction Free.sublime-settings"}, "caption": "Distraction Free – User" } + ] + }, + { "caption": "-" }, + { + "command": "open_file", "args": + { + "file": "${packages}/Default/Default ($platform).sublime-keymap" + }, + "caption": "Key Bindings – Default" + }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Default ($platform).sublime-keymap" + }, + "caption": "Key Bindings – User" + }, + { "caption": "-" }, + { + "caption": "Font", + "children": + [ + { "command": "increase_font_size", "caption": "Larger" }, + { "command": "decrease_font_size", "caption": "Smaller" }, + { "caption": "-" }, + { "command": "reset_font_size", "caption": "Reset" } + ] + }, + { + "caption": "Color Scheme", + "children": [ { "command": "$color_schemes" } ] + } + ] + }, + { + "caption": "Help", + "mnemonic": "H", + "id": "help", + "children": + [ + { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/2/"}, "caption": "Documentation" }, + { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "Twitter" }, + { "caption": "-" }, + { "command": "purchase_license"}, + { "command": "show_license_window", "caption": "Enter License" }, + { "command": "remove_license"}, + { "caption": "-" }, + { "command": "show_about_window", "caption": "About Sublime Text 2", "mnemonic": "A" } + ] + } +] diff --git a/EN/Side Bar Mount Point.sublime-menu b/EN/Side Bar Mount Point.sublime-menu new file mode 100755 index 0000000..3411b67 --- /dev/null +++ b/EN/Side Bar Mount Point.sublime-menu @@ -0,0 +1,4 @@ +[ + { "caption": "-", "id": "folder_commands" }, + { "caption": "Remove Folder from Project", "command": "remove_folder", "args": { "dirs": []} } +] diff --git a/EN/Side Bar.sublime-menu b/EN/Side Bar.sublime-menu new file mode 100755 index 0000000..3d308b9 --- /dev/null +++ b/EN/Side Bar.sublime-menu @@ -0,0 +1,11 @@ +[ + { "caption": "New File", "command": "new_file_at", "args": {"dirs": []} }, + { "caption": "Rename…", "command": "rename_path", "args": {"paths": []} }, + { "caption": "Delete File", "command": "delete_file", "args": {"files": []} }, + { "caption": "Open Containing Folder…", "command": "open_containing_folder", "args": {"files": []} }, + { "caption": "-", "id": "folder_commands" }, + { "caption": "New Folder…", "command": "new_folder", "args": {"dirs": []} }, + { "caption": "Delete Folder", "command": "delete_folder", "args": {"dirs": []} }, + { "caption": "Find in Folder…", "command": "find_in_folder", "args": {"dirs": []} }, + { "caption": "-", "id": "end" } +] diff --git a/EN/Syntax.sublime-menu b/EN/Syntax.sublime-menu new file mode 100755 index 0000000..b555b7b --- /dev/null +++ b/EN/Syntax.sublime-menu @@ -0,0 +1,6 @@ +[ + { + "caption": "Syntax", + "children": [ { "command": "$file_types" } ] + } +] diff --git a/EN/Tab Context.sublime-menu b/EN/Tab Context.sublime-menu new file mode 100755 index 0000000..b5781f0 --- /dev/null +++ b/EN/Tab Context.sublime-menu @@ -0,0 +1,8 @@ +[ + { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close" }, + { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close others" }, + { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close tabs to the right" }, + { "caption": "-" }, + { "command": "new_file" }, + { "command": "prompt_open_file", "caption": "Open file" } +] diff --git a/EN/Widget Context.sublime-menu b/EN/Widget Context.sublime-menu new file mode 100755 index 0000000..971328a --- /dev/null +++ b/EN/Widget Context.sublime-menu @@ -0,0 +1,7 @@ +[ + { "command": "copy" }, + { "command": "cut" }, + { "command": "paste" }, + { "caption": "-" }, + { "command": "select_all" } +] diff --git a/Localization.py b/Localization.py index 8619d54..cc422f2 100755 --- a/Localization.py +++ b/Localization.py @@ -1,6 +1,7 @@ import sublime import sublime_plugin import os +import sys from hashlib import md5 CONFIG_NAME = "Localization.sublime-settings" @@ -20,6 +21,9 @@ } } +is_python3 = sys.version_info[0] > 2 +CUR_PATH = os.path.dirname(os.path.realpath(__file__)) + def get_language_setting(): config = sublime.load_settings(CONFIG_NAME) @@ -59,18 +63,31 @@ def set_language(lang): if not os.path.isdir(DEFAULT_PATH): os.mkdir(DEFAULT_PATH) # Load binary resource - PACKAGE_NAME = os.path.basename(os.path.dirname(__file__)).split('.')[0] - LOCALZIP_RES = "Packages/{}/{}".format(PACKAGE_NAME, - LANGS[lang]['zipfile']) - lang_bytes = sublime.load_binary_resource(LOCALZIP_RES) + if is_python3: + PACKAGE_NAME = os.path.basename(os.path.dirname(__file__)).split('.')[0] + LOCALZIP_RES = "Packages/{0}/{1}".format(PACKAGE_NAME, + LANGS[lang]['zipfile']) + try: + lang_bytes = sublime.load_binary_resource(LOCALZIP_RES) + except Exception: + # Sublime Text 2 + LOCALZIP_RES = os.path.abspath(os.path.join(CUR_PATH, + LANGS[lang]['zipfile'])) + with open(LOCALZIP_RES, "rb") as f: + lang_bytes = f.read() # write to tempfile and unzip it. import zipfile from tempfile import NamedTemporaryFile tmp_file = NamedTemporaryFile(delete=False) tmp_file.write(lang_bytes) tmp_file.close() - with zipfile.ZipFile(tmp_file.name, "r") as f: - f.extractall(DEFAULT_PATH) + if is_python3: + with zipfile.ZipFile(tmp_file.name, "r") as f: + f.extractall(DEFAULT_PATH) + else: + import contextlib + with contextlib.closing(zipfile.ZipFile(tmp_file.name, "r")) as f: + f.extractall(DEFAULT_PATH) tmp_file.close() os.unlink(tmp_file.name) @@ -87,4 +104,7 @@ def is_checked(self, language): def plugin_loaded(): """Load and unzip the files.""" - sublime.set_timeout(init, 200) \ No newline at end of file + sublime.set_timeout(init, 200) + +if not is_python3: + init() \ No newline at end of file diff --git a/Main.sublime-menu b/Main.sublime-menu index 76da554..53f17fc 100755 --- a/Main.sublime-menu +++ b/Main.sublime-menu @@ -36,6 +36,6 @@ "mnemonic": "L" } ], - "id": "help", + "id": "help" } ] \ No newline at end of file diff --git a/README.md b/README.md index 34701f0..e0a30b5 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,31 @@ # Chinese-Localization Simplified Chinese and Traditional Chinese Translation for Sublime Text 3. Support MainMenu TabMenu ContextMenu,etc +**Upgrade to sublime text 3 to have a better experience.** + ### Manual Install Clone this repository into `Sublime Text 3/Packages` using OS-appropriate location: OSX: - git clone https://github.com/rexdf/Chinese-Localization.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/ChineseLocalization + git clone -b st2 https://github.com/rexdf/ChineseLocalization.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/ChineseLocalization Windows: - git clone https://github.com/rexdf/Chinese-Localization.git "%APPDATA%\Sublime Text 3\Packages\ChineseLocalization" + git clone -b st2 https://github.com/rexdf/Chinese-Localization.git "%APPDATA%\Sublime Text 3\Packages\ChineseLocalization" Linux: - git clone https://github.com/rexdf/Chinese-Localization.git ~/.config/sublime-text-3/Packages/ChineseLocalization + git clone -b st2 https://github.com/rexdf/Chinese-Localization.git ~/.config/sublime-text-3/Packages/ChineseLocalization Or just download this repo as zip and unzip it to `Packages/Default` -![screenshot](https://raw.githubusercontent.com/rexdf/Chinese-Localization/readme/screenshot/SublimeChineseTranslation2.gif) +![screenshot](https://raw.githubusercontent.com/rexdf/ChineseLocalization/readme/screenshot/SublimeChineseTranslation3.gif) -![screenshot](https://raw.githubusercontent.com/rexdf/Chinese-Localization/readme/screenshot/sublime_translation.png) +![screenshot](https://raw.githubusercontent.com/rexdf/ChineseLocalization/readme/screenshot/sublime_translation.png) -![screenshot](https://raw.githubusercontent.com/rexdf/Chinese-Localization/readme/screenshot/sublime_trans_linux.png) +![screenshot](https://raw.githubusercontent.com/rexdf/ChineseLocalization/readme/screenshot/sublime_trans_linux.png) ### Usage diff --git a/ZH_CN.zip b/ZH_CN.zip index b4ae3ec..226032a 100755 Binary files a/ZH_CN.zip and b/ZH_CN.zip differ diff --git a/ZH_CN/Context.sublime-menu b/ZH_CN/Context.sublime-menu new file mode 100755 index 0000000..7adcc95 --- /dev/null +++ b/ZH_CN/Context.sublime-menu @@ -0,0 +1,16 @@ +[ + { "command": "open_context_url", "caption": "打开网址" }, + { "command": "context_goto_definition", "caption": "转到定义" }, + { "caption": "-", "id": "clipboard" }, + { "command": "copy", "caption": "复制" }, + { "command": "cut", "caption": "剪切" }, + { "command": "paste", "caption": "粘贴" }, + { "caption": "-", "id": "selection" }, + { "command": "select_all", "caption": "全选" }, + { "caption": "-", "id": "file" }, + { "command": "open_in_browser", "caption": "在浏览器中打开" }, + { "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "打开所在文件夹…" }, + { "command": "copy_path", "caption": "复制文件路径" }, + { "command": "reveal_in_side_bar", "caption": "在侧边栏显示" }, + { "caption": "-", "id": "end" } +] \ No newline at end of file diff --git a/ZH_CN/Find in Files.sublime-menu b/ZH_CN/Find in Files.sublime-menu new file mode 100755 index 0000000..1a1708d --- /dev/null +++ b/ZH_CN/Find in Files.sublime-menu @@ -0,0 +1,9 @@ +[ + { "command": "clear_location", "caption": "清除" }, + { "command": "add_directory", "caption": "添加目录" }, + { "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "添加包含筛选器" }, + { "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "添加排除筛选器" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加打开文件夹" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加打开文件" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加当前文件" }, +] diff --git a/ZH_CN/Indentation.sublime-menu b/ZH_CN/Indentation.sublime-menu new file mode 100755 index 0000000..5af6187 --- /dev/null +++ b/ZH_CN/Indentation.sublime-menu @@ -0,0 +1,17 @@ +[ + { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格缩进", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "选项卡宽度: 1", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "选项卡宽度: 2", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "选项卡宽度: 3", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "选项卡宽度: 4", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "选项卡宽度: 5", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "选项卡宽度: 6", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "选项卡宽度: 7", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "选项卡宽度: 8", "checkbox": true }, + { "caption": "-" }, + { "command": "detect_indentation", "caption": "猜测来自缓冲区的设置" }, + { "caption": "-" }, + { "command": "expand_tabs", "caption": "转换缩进为空格", "args": {"set_translate_tabs": true} }, + { "command": "unexpand_tabs", "caption": "转换缩进为Tab", "args": {"set_translate_tabs": true} } + ] diff --git a/ZH_CN/Main.sublime-menu b/ZH_CN/Main.sublime-menu new file mode 100755 index 0000000..13b0036 --- /dev/null +++ b/ZH_CN/Main.sublime-menu @@ -0,0 +1,888 @@ +[ + { + "caption": "菜单(F)", + "mnemonic": "F", + "id": "file", + "children": + [ + { "command": "new_file", "caption": "新建文件(N)", "mnemonic": "N" }, + + { "command": "prompt_open_file", "caption": "打开文件(O)…", "mnemonic": "O", "platform": "!OSX" }, + { "command": "prompt_open_folder", "caption": "打开文件夹…", "platform": "!OSX" }, + { "command": "prompt_open", "caption": "打开…", "platform": "OSX" }, + { + "caption": "打开最近(R)", + "mnemonic": "R", + "children": + [ + { "command": "reopen_last_file", "caption": "重新打开已关闭的文件" }, + { "caption": "-" }, + { "command": "open_recent_file", "args": {"index": 0 } }, + { "command": "open_recent_file", "args": {"index": 1 } }, + { "command": "open_recent_file", "args": {"index": 2 } }, + { "command": "open_recent_file", "args": {"index": 3 } }, + { "command": "open_recent_file", "args": {"index": 4 } }, + { "command": "open_recent_file", "args": {"index": 5 } }, + { "command": "open_recent_file", "args": {"index": 6 } }, + { "command": "open_recent_file", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "open_recent_folder", "args": {"index": 0 } }, + { "command": "open_recent_folder", "args": {"index": 1 } }, + { "command": "open_recent_folder", "args": {"index": 2 } }, + { "command": "open_recent_folder", "args": {"index": 3 } }, + { "command": "open_recent_folder", "args": {"index": 4 } }, + { "command": "open_recent_folder", "args": {"index": 5 } }, + { "command": "open_recent_folder", "args": {"index": 6 } }, + { "command": "open_recent_folder", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "clear_recent_files", "caption": "清除记录" } + ] + }, + { + "caption": "重新用...编码打开", + "children": + [ + { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } } + ] + }, + { "command": "clone_file", "caption": "克隆文件(E)", "mnemonic": "E" }, + { "command": "save", "caption": "保存(S)", "mnemonic": "S" }, + { + "caption": "以...编码保存", + "children": + [ + { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } }, + { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } }, + { "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } }, + { "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "save", "args": {"encoding": "Hexadecimal" } } + ] + }, + { "command": "prompt_save_as", "caption": "另存为(A)…", "mnemonic": "A" }, + { "command": "save_all", "caption": "保存全部(L)", "mnemonic": "L" }, + { "caption": "-", "id": "window" }, + { "command": "new_window", "caption": "新建窗口(W)", "mnemonic": "W" }, + { "command": "close_window", "caption": "关闭窗口" }, + { "caption": "-", "id": "close" }, + { "command": "close", "caption": "关闭文件(C)", "mnemonic": "C" }, + { "command": "revert", "caption": "恢复文件(V)", "mnemonic": "V" }, + { "command": "close_all", "caption": "关闭所有文件" }, + { "caption": "-", "id": "exit" }, + { "command": "exit", "caption": "退出(X)", "mnemonic": "X" } + ] + }, + { + "caption": "编辑(E)", + "mnemonic": "E", + "id": "edit", + "children": + [ + { "command": "undo", "caption": "撤销(U)", "mnemonic": "U" }, + { "command": "redo_or_repeat", "caption": "重做(R)", "mnemonic": "R" }, + { + "caption": "撤销选择", + "children": + [ + { "command": "soft_undo", "caption": "软撤销" }, + { "command": "soft_redo", "caption": "软重做" } + ] + }, + { "caption": "-", "id": "clipboard" }, + { "command": "copy", "caption": "复制(C)", "mnemonic": "C" }, + { "command": "cut", "caption": "剪切(N)", "mnemonic": "N" }, + { "command": "paste", "caption": "粘贴(P)", "mnemonic": "P" }, + { "command": "paste_and_indent", "caption": "粘贴并缩进(I)", "mnemonic": "I" }, + { "command": "paste_from_history", "caption": "从剪切板粘贴" }, + { "caption": "-" }, + { + "caption": "行(L)", "mnemonic": "L", + "id": "line", + "children": + [ + { "command": "indent", "caption": "缩进" }, + { "command": "unindent" , "caption": "不缩进" }, + { "command": "reindent", "args": {"single_line": true} , "caption": "重新缩进" }, + { "command": "swap_line_up", "caption": "向上切换行" }, + { "command": "swap_line_down", "caption": "向下切换行"}, + { "command": "duplicate_line", "caption": "重复行" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "删除行" }, + { "command": "join_lines", "caption": "合并行" } + ] + }, + { + "caption": "注释(M)", "mnemonic": "M", + "id": "comment", + "children": + [ + { "command": "toggle_comment", "args": {"block": false}, "caption": "开启/关闭注释" }, + { "command": "toggle_comment", "args": {"block": true}, "caption": "开启/关闭区段注释" } + ] + }, + { + "caption": "文本(T)", "mnemonic": "T", + "id": "text", + "children": + [ + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}, "caption": "插入行之前" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"}, "caption": "插入行之后" }, + { "caption": "-" }, + { "command": "delete_word", "args": { "forward": true }, "caption": "向前删除单词" }, + { "command": "delete_word", "args": { "forward": false }, "caption": "向后删除单词" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "删除行" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "删除到末尾" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "删除到开始" }, + { "caption": "-" }, + { "command": "transpose", "caption": "换位" } + ] + }, + { + "caption": "标签", + "id": "tag", + "children": + [ + { "command": "close_tag", "caption": "关闭标签" }, + { "command": "expand_selection", "args": {"to": "tag"}, "caption": "展开选择到标签" }, + { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "用标签自动换行选择" } + ] + }, + { + "caption": "标记", + "id": "mark", + "children": + [ + { "command": "set_mark", "caption": "设置标记" }, + { "command": "select_to_mark", "caption": "选择到标记" }, + { "command": "delete_to_mark", "caption": "删除到标记" }, + { "command": "swap_with_mark", "caption": "互换标记" }, + { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "清除标记" }, + { "caption": "-" }, + { "command": "yank" , "caption": "抽出" } + ] + }, + { + "caption": "代码折叠", + "id": "fold", + "children": + [ + { "command": "fold", "caption": "折叠" }, + { "command": "unfold", "caption": "展开" }, + { "command": "unfold_all", "caption": "展开全部" }, + { "caption": "-" }, + { "caption": "折叠全部", "command": "fold_by_level", "args": {"level": 1} }, + { "caption": "折叠 2 层", "command": "fold_by_level", "args": {"level": 2} }, + { "caption": "折叠 3 层", "command": "fold_by_level", "args": {"level": 3} }, + { "caption": "折叠 4 层", "command": "fold_by_level", "args": {"level": 4} }, + { "caption": "折叠 5 层", "command": "fold_by_level", "args": {"level": 5} }, + { "caption": "折叠 6 层", "command": "fold_by_level", "args": {"level": 6} }, + { "caption": "折叠 7 层", "command": "fold_by_level", "args": {"level": 7} }, + { "caption": "折叠 8 层", "command": "fold_by_level", "args": {"level": 8} }, + { "caption": "折叠 9 层", "command": "fold_by_level", "args": {"level": 9} }, + { "caption": "-" }, + { "command": "fold_tag_attributes", "caption": "折叠标签属性" } + ] + }, + { + "caption": "转换大小写(A)", "mnemonic": "A", + "id": "convert_case", + "children": + [ + { "command": "title_case", "caption": "首字母大写" }, + { "command": "upper_case", "caption": "大写" }, + { "command": "lower_case", "caption": "小写" }, + { "command": "swap_case", "caption": "交换大小写" } + ] + }, + { + "caption": "自动换行", + "id": "wrap", + "children": + [ + { "command": "wrap_lines", "caption": "自动换行段落在标尺" }, + { "command": "wrap_lines", "args": {"width": 70}, "caption": "自动换行段落在 70 个字符" }, + { "command": "wrap_lines", "args": {"width": 78}, "caption": "自动换行段落在 78 个字符" }, + { "command": "wrap_lines", "args": {"width": 80}, "caption": "自动换行段落在 80 个字符" }, + { "command": "wrap_lines", "args": {"width": 100}, "caption": "自动换行段落在 100 个字符" }, + { "command": "wrap_lines", "args": {"width": 120}, "caption": "自动换行段落在 120 个字符" } + ] + }, + { "command": "auto_complete", "caption": "显示完成" }, + { "caption": "-", "id": "permute" }, + + { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "行排序(S)", "mnemonic": "S" }, + { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "行排序(区分大小写)" }, + { + "caption": "更改行的序列", + "children": + [ + { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "反向" }, + { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "唯一" }, + { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "无序" } + ] + }, + { + "caption": "更改选择内容的序列", + "children": + [ + { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "排序" }, + { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "排序(区分大小写)" }, + { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "反向" }, + { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "唯一" }, + { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "无序" } + ] + }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "选择(S)", + "mnemonic": "S", + "id": "selection", + "children": + [ + { "command": "split_selection_into_lines", "caption": "拆分为行" }, + { "command": "select_lines", "args": {"forward": false}, "caption": "添加前一行" }, + { "command": "select_lines", "args": {"forward": true}, "caption": "添加下一行" }, + { "command": "single_selection", "caption": "单独选择" }, + { "command": "invert_selection", "caption": "反向选择" }, + { "caption": "-" }, + { "command": "select_all", "caption": "选择全部" }, + { "command": "expand_selection", "args": {"to": "line"}, "caption": "展开选定行" }, + { "command": "find_under_expand", "caption": "展开选定单词" }, + { "command": "expand_selection_to_paragraph", "caption": "展开选定段落" }, + { "command": "expand_selection", "args": {"to": "scope"}, "caption": "展开选定范围" }, + { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "展开选定括号" }, + { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "展开选定缩进" }, + { "command": "expand_selection", "args": {"to": "tag"}, "caption": "展开选定标签" } + ] + }, + { + "caption": "查找(I)", + "mnemonic": "I", + "id": "find", + "children": + [ + { "command": "show_panel", "args": {"panel": "find", "reverse": false}, "caption": "查找…" }, + { "command": "find_next", "caption": "查找下一个" }, + { "command": "find_prev", "caption": "查找前一个" }, + { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "增量查找" }, + { "caption": "-" }, + { "command": "show_panel", "args": {"panel": "replace", "reverse": false}, "caption": "替换…" }, + { "command": "replace_next", "caption": "替换下一个" }, + { "caption": "-" }, + { "command": "find_under", "caption": "快速查找" }, + { "command": "find_all_under", "caption": "快速查找全部" }, + { "command": "find_under_expand", "caption": "快速添加下一个" }, + { "command": "find_under_expand_skip", "caption": "快速跳到下一个", "platform": "!OSX" }, + { "caption": "-" }, + { "command": "slurp_find_string", "caption": "使用所选内容查找" }, + { "command": "slurp_replace_string", "caption": "使用所选内容替换" }, + { "caption": "-" }, + { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "在文件中查找…" }, + { + "caption": "查找结果(R)", + "mnemonic": "R", + "children": + [ + { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "显示结果面板" }, + { "command": "next_result", "caption": "下一结果" }, + { "command": "prev_result", "caption": "前一结果" } + ] + } + ] + }, + { + "caption": "查看(V)", + "mnemonic": "V", + "id": "view", + "children": + [ + { + "caption": "侧边栏", + "id": "side_bar", + "children": + [ + { "command": "toggle_side_bar", "caption": "显示/隐藏侧边栏" }, + { "caption": "-" }, + { "command": "toggle_show_open_files", "caption": "显示打开的文件" } + ] + }, + { "command": "toggle_minimap", "caption": "显示/隐藏迷你地图" }, + { "command": "toggle_tabs", "caption": "显示/隐藏标签页" }, + { "command": "toggle_status_bar", "caption": "显示/隐藏状态栏" }, + { "command": "toggle_menu", "caption": "显示/隐藏菜单" }, + { "command": "show_panel", "args": {"panel": "console", "toggle": true}, "caption": "显示/隐藏控制台" }, + { "caption": "-", "id": "full_screen" }, + { "command": "toggle_full_screen", "caption": "进入/退出全屏" }, + { "command": "toggle_distraction_free", "caption": "进入/退出无干扰模式" }, + { "caption": "-", "id": "groups" }, + { + "caption": "布局(L)", + "mnemonic": "L", + "id": "layout", + "children": + [ + { + "caption": "单独", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1]] + } + }, + { + "caption": "列: 2", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.5, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] + } + }, + { + "caption": "列: 3", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.33, 0.66, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] + } + }, + { + "caption": "列: 4", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.25, 0.5, 0.75, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] + } + }, + { + "caption": "行: 2", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 0.5, 1.0], + "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] + } + }, + { + "caption": "行: 3", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 0.33, 0.66, 1.0], + "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] + } + }, + { + "caption": "网格: 4", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.5, 1.0], + "rows": [0.0, 0.5, 1.0], + "cells": + [ + [0, 0, 1, 1], [1, 0, 2, 1], + [0, 1, 1, 2], [1, 1, 2, 2] + ] + } + } + ] + }, + { + "caption": "组", + "children": + [ + { "command": "new_pane", "caption": "文件移到新组" }, + { "command": "new_pane", "args": {"move": false}, "caption": "新建组" }, + { "command": "close_pane", "caption": "关闭组" }, + + { "caption": "-" }, + + { + "caption": "最大列数: 1", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 1 } + }, + { + "caption": "最大列数: 2", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 2 } + }, + { + "caption": "最大列数: 3", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 3 } + }, + { + "caption": "最大列数: 4", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 4 } + }, + { + "caption": "最大列数: 5", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 5 } + } + ] + }, + { + "caption": "焦点分组(F)", + "mnemonic": "F", + "children": + [ + + { "command": "focus_neighboring_group", "caption": "下一个" }, + { "command": "focus_neighboring_group", "args": {"forward": false}, "caption": "上一个" }, + { "caption": "-" }, + { "command": "focus_group", "args": {"group": 0}, "caption": "分组 1" }, + { "command": "focus_group", "args": {"group": 1}, "caption": "分组 2" }, + { "command": "focus_group", "args": {"group": 2}, "caption": "分组 3" }, + { "command": "focus_group", "args": {"group": 3}, "caption": "分组 4" } + ] + }, + { + "caption": "移动文件到分组(M)", + "mnemonic": "M", + "children": + [ + { "command": "move_to_neighboring_group", "caption": "下一个" }, + { "command": "move_to_neighboring_group", "args": {"forward": false}, "caption": "上一个" }, + { "caption": "-" }, + { "command": "move_to_group", "args": {"group": 0}, "caption": "分组 1" }, + { "command": "move_to_group", "args": {"group": 1}, "caption": "分组 2" }, + { "command": "move_to_group", "args": {"group": 2}, "caption": "分组 3" }, + { "command": "move_to_group", "args": {"group": 3}, "caption": "分组 4" } + ] + }, + { "caption": "-" }, + { + "caption": "语法(S)", + "mnemonic": "S", + "id": "syntax", + "children": [ { "command": "$file_types" } ] + }, + { + "caption": "缩进(I)", + "mnemonic": "I", + "id": "indentation", + "children": + [ + { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格缩进", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab宽度: 1", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab宽度: 2", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab宽度: 3", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab宽度: 4", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab宽度: 5", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab宽度: 6", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab宽度: 7", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab宽度: 8", "checkbox": true }, + { "caption": "-" }, + { "command": "detect_indentation", "caption": "猜测来自缓冲区的设置" }, + { "caption": "-" }, + { "command": "expand_tabs", "caption": "转换缩进为空格", "args": {"set_translate_tabs": true} }, + { "command": "unexpand_tabs", "caption": "转换缩进为tab", "args": {"set_translate_tabs": true} } + ] + }, + { + "caption": "行结束符(N)", + "mnemonic": "N", + "id": "line_endings", + "children": + [ + { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows", "checkbox": true }, + { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix", "checkbox": true }, + { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9", "checkbox": true } + ] + }, + { "caption": "-", "id": "settings" }, + { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "自动换行(W)", "mnemonic": "W", "checkbox": true }, + { + "caption": "自动换行列", + "children": + [ + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "自动", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true } + ] + }, + { + "caption": "标尺", + "children": + [ + { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "无", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true } + ] + }, + { "caption": "-" }, + { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "拼写检查", "checkbox": true }, + { "command": "next_misspelling", "caption": "下一拼写错误" }, + { "command": "prev_misspelling", "caption": "前一拼写错误" }, + { + "caption": "词典", + "children": [ { "command": "$dictionaries" } ] + } + ] + }, + { + "caption": "转到(G)", + "mnemonic": "G", + "id": "goto", + "children": + [ + { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "转到任何(A)…", "mnemonic": "A" }, + { "caption": "-" }, + { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "转到符号…" }, + { "command": "goto_symbol_in_project", "caption": "转到项目中符号…" }, + { "command": "goto_definition", "caption": "转到预定义…" }, + // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "转到单词…" }, + { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "转到行…" }, + { "caption": "-" }, + { "command": "jump_back", "caption": "跳回" }, + { "command": "jump_forward", "caption": "跳至" }, + { "caption": "-" }, + { + "caption": "切换文件(T)", + "mnemonic": "T", + "id": "switch_file", + "children": + [ + { "command": "next_view", "caption": "下一文件" }, + { "command": "prev_view", "caption": "上一文件" }, + { "caption": "-" }, + { "command": "next_view_in_stack", "caption": "在堆栈中的下一文件" }, + { "command": "prev_view_in_stack", "caption": "在堆栈中的前一文件" }, + { "caption": "-" }, + { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]}, "caption": "切换标题/实施(H)", "mnemonic": "H" }, + { "caption": "-" }, + { "command": "select_by_index", "args": { "index": 0 } }, + { "command": "select_by_index", "args": { "index": 1 } }, + { "command": "select_by_index", "args": { "index": 2 } }, + { "command": "select_by_index", "args": { "index": 3 } }, + { "command": "select_by_index", "args": { "index": 4 } }, + { "command": "select_by_index", "args": { "index": 5 } }, + { "command": "select_by_index", "args": { "index": 6 } }, + { "command": "select_by_index", "args": { "index": 7 } }, + { "command": "select_by_index", "args": { "index": 8 } }, + { "command": "select_by_index", "args": { "index": 9 } } + ] + }, + { "caption": "-" }, + { + "caption": "滚动(S)", + "mnemonic": "S", + "id": "scroll", + "children": + [ + { "command": "show_at_center", "caption": "滚动到选择" }, + { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "向上一行" }, + { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "向下一行" } + ] + }, + { + "caption": "书签(B)", + "mnemonic": "B", + "id": "bookmarks", + "children": + [ + { "command": "toggle_bookmark", "caption": "开启/关闭书签" }, + { "command": "next_bookmark", "caption": "下一书签" }, + { "command": "prev_bookmark", "caption": "前一书签" }, + { "command": "clear_bookmarks", "caption": "清除书签" }, + { "command": "select_all_bookmarks", "caption": "选择所有书签" }, + { "caption": "-" }, + { "command": "select_bookmark", "args": {"index": 0} }, + { "command": "select_bookmark", "args": {"index": 1} }, + { "command": "select_bookmark", "args": {"index": 2} }, + { "command": "select_bookmark", "args": {"index": 3} }, + { "command": "select_bookmark", "args": {"index": 4} }, + { "command": "select_bookmark", "args": {"index": 5} }, + { "command": "select_bookmark", "args": {"index": 6} }, + { "command": "select_bookmark", "args": {"index": 7} }, + { "command": "select_bookmark", "args": {"index": 8} }, + { "command": "select_bookmark", "args": {"index": 9} }, + { "command": "select_bookmark", "args": {"index": 10} }, + { "command": "select_bookmark", "args": {"index": 11} }, + { "command": "select_bookmark", "args": {"index": 12} }, + { "command": "select_bookmark", "args": {"index": 13} }, + { "command": "select_bookmark", "args": {"index": 14} }, + { "command": "select_bookmark", "args": {"index": 15} } + ] + }, + { "caption": "-" }, + { "command": "move_to", "args": {"to": "brackets"}, "caption": "跳转到匹配的括号" } + ] + }, + { + "caption": "工具(T)", + "mnemonic": "T", + "id": "tools", + "children": + [ + { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "命令面板…" }, + { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "代码段…" }, + { "caption": "-", "id": "build" }, + { + "caption": "编译系统(U)", + "mnemonic": "U", + "children": + [ + { "command": "set_build_system", "args": { "file": "" }, "caption": "自动", "checkbox": true }, + { "caption": "-" }, + { "command": "set_build_system", "args": {"index": 0}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 1}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 2}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 3}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 4}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 5}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 6}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 7}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 8}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 9}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 10}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 11}, "checkbox": true }, + { "caption": "-" }, + { "command": "$build_systems" }, + { "caption": "-" }, + { "command": "new_build_system", "caption": "新编译系统…" } + ] + }, + { "command": "build", "caption": "编译(B)", "mnemonic": "B" }, + { "command": "build", "args": {"select": true}, "caption": "用…编译" }, + { "command": "exec", "args": {"kill": true}, "caption": "取消编译(C)", "mnemonic": "C" }, + { + "caption": "编译结果(R)", + "mnemonic": "R", + "children": + [ + { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "显示编译结果(S)", "mnemonic": "S" }, + { "command": "next_result", "caption": "下一结果(N)", "mnemonic": "N" }, + { "command": "prev_result", "caption": "前一结果(P)", "mnemonic": "P" } + ] + }, + { "command": "toggle_save_all_on_build", "caption": "保存所有有关编译(A)", "mnemonic": "A", "checkbox": true }, + { "caption": "-", "id": "macros" }, + { "command": "toggle_record_macro", "caption": "录制宏(M)", "mnemonic": "M" }, + { "command": "run_macro", "caption": "播放宏(P)", "mnemonic": "P" }, + { "command": "save_macro", "caption": "保存宏(V)…", "mnemonic": "V" }, + { + "caption": "宏", + "children": [ { "command": "$macros" } ] + }, + { "caption": "-" }, + { "command": "new_plugin", "caption": "新插件…" }, + { "command": "new_snippet", "caption": "新代码段…" }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "项目(P)", + "id": "project", + "mnemonic": "P", + "children": + [ + { "command": "prompt_open_project_or_workspace", "caption": "打开项目(O)…" }, + { "command": "prompt_switch_project_or_workspace", "caption": "切换项目…" }, + { "command": "prompt_select_workspace", "caption": "快速切换项目(S)…", "mnemonic": "S" }, + { + "caption": "最近项目(R)", + "children": + [ + { "command": "open_recent_project_or_workspace", "args": {"index": 0 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 1 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 2 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 3 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 4 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 5 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 6 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "clear_recent_workspaces", "caption": "清除项目" } + ] + }, + { "caption": "-" }, + { "command": "save_project_and_workspace_as", "caption": "另存项目为(A)…", "mnemonic": "A" }, + { "command": "close_workspace", "caption": "关闭项目(C)", "mnemonic": "C" }, + { "command": "open_file", "args": {"file": "${project}"}, "caption": "编辑项目" }, + { "caption": "-" }, + { "command": "new_window_for_project", "caption": "工作区切换项目" }, + { "command": "save_workspace_as", "caption": "工作区另存为(A)...", "mnemonic": "A" }, + { "caption": "-" }, + { "command": "prompt_add_folder", "caption": "添加文件夹到项目(D)…", "mnemonic": "D" }, + { "command": "close_folder_list", "caption": "从项目删除所有文件夹(M)", "mnemonic": "M" }, + { "command": "refresh_folder_list", "caption": "刷新文件夹(E)", "mnemonic": "E" } + ] + }, + { + "caption": "首选项(N)", + "mnemonic": "N", + "id": "preferences", + "children": + [ + { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "浏览程序包(B)…", "mnemonic": "B" }, + { "caption": "-" }, + { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "设置 – 默认" }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Preferences.sublime-settings", + "contents": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by file type specific settings.\n{\n\t$0\n}\n" + }, + "caption": "设置 – 用户" + }, + { + "caption": "设置 – 更多", + "children": + [ + { "command": "open_file_settings", "caption": "特定语法 – 用户" }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Distraction Free.sublime-settings", + "contents": "{\n\t$0\n}\n" + }, + "caption": "无干扰模式 – 用户" + } + ] + }, + { "caption": "-" }, + { + "command": "open_file", "args": + { + "file": "${packages}/Default/Default ($platform).sublime-keymap" + }, + "caption": "按键绑定 – 默认" + }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Default ($platform).sublime-keymap", + "contents": "[\n\t$0\n]\n" + }, + "caption": "按键绑定 – 用户" + }, + { "caption": "-" }, + { + "caption": "字体", + "children": + [ + { "command": "increase_font_size", "caption": "较大" }, + { "command": "decrease_font_size", "caption": "较小" }, + { "caption": "-" }, + { "command": "reset_font_size", "caption": "重置" } + ] + }, + { + "caption": "配色方案", + "children": [ { "command": "$color_schemes" } ] + } + ] + }, + { + "caption": "帮助(H)", + "mnemonic": "H", + "id": "help", + "children": + [ + { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/3/"}, "caption": "文档" }, + { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "Twitter" }, + { "command": "open_url", "args": {"url": "http://i.rexdf.org"}, "caption": "汉化 by Rexdf" }, + { "caption": "-" }, + { "command": "purchase_license"}, + { "command": "show_license_window", "caption": "输入注册码" }, + { "command": "remove_license", "caption": "删除注册信息"}, + { "caption": "-" }, + { "command": "update_check", "caption": "检查更新…", "platform": "!Linux" }, + { "command": "show_changelog", "caption": "升级日志…" }, + { "command": "show_about_window", "caption": "关于 Sublime Text(A)", "mnemonic": "A" } + ] + } +] diff --git a/ZH_CN/Side Bar Mount Point.sublime-menu b/ZH_CN/Side Bar Mount Point.sublime-menu new file mode 100755 index 0000000..ab91b7e --- /dev/null +++ b/ZH_CN/Side Bar Mount Point.sublime-menu @@ -0,0 +1,4 @@ +[ + { "caption": "-", "id": "folder_commands" }, + { "caption": "从项目中删除", "command": "remove_folder", "args": { "dirs": []} } +] diff --git a/ZH_CN/Side Bar.sublime-menu b/ZH_CN/Side Bar.sublime-menu new file mode 100755 index 0000000..bcfbba3 --- /dev/null +++ b/ZH_CN/Side Bar.sublime-menu @@ -0,0 +1,11 @@ +[ + { "caption": "新建文件", "command": "new_file_at", "args": {"dirs": []} }, + { "caption": "重命名…", "command": "rename_path", "args": {"paths": []} }, + { "caption": "删除文件", "command": "delete_file", "args": {"files": []} }, + { "caption": "打开所在文件夹…", "command": "open_containing_folder", "args": {"files": []} }, + { "caption": "-", "id": "folder_commands" }, + { "caption": "新建文件夹…", "command": "new_folder", "args": {"dirs": []} }, + { "caption": "删除文件夹", "command": "delete_folder", "args": {"dirs": []} }, + { "caption": "在文件夹中查找…", "command": "find_in_folder", "args": {"dirs": []} }, + { "caption": "-", "id": "end" } +] diff --git a/ZH_CN/Syntax.sublime-menu b/ZH_CN/Syntax.sublime-menu new file mode 100755 index 0000000..1d9af7f --- /dev/null +++ b/ZH_CN/Syntax.sublime-menu @@ -0,0 +1,6 @@ +[ + { + "caption": "语法", + "children": [ { "command": "$file_types" } ] + } +] diff --git a/ZH_CN/Tab Context.sublime-menu b/ZH_CN/Tab Context.sublime-menu new file mode 100755 index 0000000..f782ed5 --- /dev/null +++ b/ZH_CN/Tab Context.sublime-menu @@ -0,0 +1,8 @@ +[ + { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭" }, + { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭其他" }, + { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭右侧选项卡" }, + { "caption": "-" }, + { "command": "new_file", "caption": "新建文件" }, + { "command": "prompt_open_file", "caption": "打开文件" } +] diff --git a/ZH_CN/Widget Context.sublime-menu b/ZH_CN/Widget Context.sublime-menu new file mode 100755 index 0000000..d5b3357 --- /dev/null +++ b/ZH_CN/Widget Context.sublime-menu @@ -0,0 +1,7 @@ +[ + { "command": "copy", "caption": "复制" }, + { "command": "cut", "caption": "剪切" }, + { "command": "paste", "caption": "粘贴" }, + { "caption": "-" }, + { "command": "select_all", "caption": "全选" } +] diff --git a/ZH_TW.zip b/ZH_TW.zip index 39fd5fb..6d1794c 100755 Binary files a/ZH_TW.zip and b/ZH_TW.zip differ diff --git a/ZH_TW/Context.sublime-menu b/ZH_TW/Context.sublime-menu new file mode 100755 index 0000000..8b2a7ec --- /dev/null +++ b/ZH_TW/Context.sublime-menu @@ -0,0 +1,16 @@ +[ + { "command": "open_context_url", "caption": "打開網址" }, + { "command": "context_goto_definition", "caption": "轉到定義" }, + { "caption": "-", "id": "clipboard" }, + { "command": "copy", "caption": "複製" }, + { "command": "cut", "caption": "剪切" }, + { "command": "paste", "caption": "粘貼" }, + { "caption": "-", "id": "selection" }, + { "command": "select_all", "caption": "全選" }, + { "caption": "-", "id": "file" }, + { "command": "open_in_browser", "caption": "在瀏覽器中打開" }, + { "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "打開所在文件夾…" }, + { "command": "copy_path", "caption": "複製文件路徑" }, + { "command": "reveal_in_side_bar", "caption": "在側邊欄顯示" }, + { "caption": "-", "id": "end" } +] diff --git a/ZH_TW/Encoding.sublime-menu b/ZH_TW/Encoding.sublime-menu new file mode 100755 index 0000000..4a5e051 --- /dev/null +++ b/ZH_TW/Encoding.sublime-menu @@ -0,0 +1,83 @@ +[ + { + "caption": "設置編碼", + "children": + [ + { "caption": "UTF-8", "command": "set_encoding", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-16 LE", "command": "set_encoding", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 BE", "command": "set_encoding", "args": {"encoding": "utf-16 be" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "set_encoding", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "set_encoding", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "set_encoding", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "set_encoding", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "set_encoding", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "set_encoding", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "set_encoding", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "set_encoding", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "set_encoding", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "set_encoding", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "set_encoding", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "set_encoding", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "set_encoding", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "set_encoding", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "set_encoding", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "set_encoding", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "set_encoding", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "set_encoding", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "set_encoding", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "set_encoding", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "set_encoding", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "set_encoding", "args": {"encoding": "Hexadecimal" } } + ] + }, + + { + "caption": "指定編碼方式打開", + "children": + [ + { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } } + ] + }, +] diff --git a/ZH_TW/Find in Files.sublime-menu b/ZH_TW/Find in Files.sublime-menu new file mode 100755 index 0000000..b86d45c --- /dev/null +++ b/ZH_TW/Find in Files.sublime-menu @@ -0,0 +1,9 @@ +[ + { "command": "clear_location", "caption": "清除" }, + { "command": "add_directory", "caption": "添加目錄" }, + { "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "添加包含篩選器" }, + { "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "添加排除篩選器" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加打開文件夾" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加打開文件" }, + { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加當前文件" }, +] diff --git a/ZH_TW/Indentation.sublime-menu b/ZH_TW/Indentation.sublime-menu new file mode 100755 index 0000000..99ee2e4 --- /dev/null +++ b/ZH_TW/Indentation.sublime-menu @@ -0,0 +1,17 @@ +[ + { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格縮進", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "選項卡寬度: 1", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "選項卡寬度: 2", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "選項卡寬度: 3", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "選項卡寬度: 4", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "選項卡寬度: 5", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "選項卡寬度: 6", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "選項卡寬度: 7", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "選項卡寬度: 8", "checkbox": true }, + { "caption": "-" }, + { "command": "detect_indentation", "caption": "猜測來自緩沖區的設置" }, + { "caption": "-" }, + { "command": "expand_tabs", "caption": "轉換縮進為空格", "args": {"set_translate_tabs": true} }, + { "command": "unexpand_tabs", "caption": "轉換縮進為Tab", "args": {"set_translate_tabs": true} } + ] diff --git a/ZH_TW/Main.sublime-menu b/ZH_TW/Main.sublime-menu new file mode 100755 index 0000000..8a59dd7 --- /dev/null +++ b/ZH_TW/Main.sublime-menu @@ -0,0 +1,888 @@ +[ + { + "caption": "菜單(F)", + "mnemonic": "F", + "id": "file", + "children": + [ + { "command": "new_file", "caption": "新建文件(N)", "mnemonic": "N" }, + + { "command": "prompt_open_file", "caption": "打開文件(O)…", "mnemonic": "O", "platform": "!OSX" }, + { "command": "prompt_open_folder", "caption": "打開文件夾…", "platform": "!OSX" }, + { "command": "prompt_open", "caption": "打開…", "platform": "OSX" }, + { + "caption": "打開最近(R)", + "mnemonic": "R", + "children": + [ + { "command": "reopen_last_file", "caption": "重新打開已關閉的文件" }, + { "caption": "-" }, + { "command": "open_recent_file", "args": {"index": 0 } }, + { "command": "open_recent_file", "args": {"index": 1 } }, + { "command": "open_recent_file", "args": {"index": 2 } }, + { "command": "open_recent_file", "args": {"index": 3 } }, + { "command": "open_recent_file", "args": {"index": 4 } }, + { "command": "open_recent_file", "args": {"index": 5 } }, + { "command": "open_recent_file", "args": {"index": 6 } }, + { "command": "open_recent_file", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "open_recent_folder", "args": {"index": 0 } }, + { "command": "open_recent_folder", "args": {"index": 1 } }, + { "command": "open_recent_folder", "args": {"index": 2 } }, + { "command": "open_recent_folder", "args": {"index": 3 } }, + { "command": "open_recent_folder", "args": {"index": 4 } }, + { "command": "open_recent_folder", "args": {"index": 5 } }, + { "command": "open_recent_folder", "args": {"index": 6 } }, + { "command": "open_recent_folder", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "clear_recent_files", "caption": "清除記錄" } + ] + }, + { + "caption": "重新用...編碼打開", + "children": + [ + { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } } + ] + }, + { "command": "clone_file", "caption": "克隆文件(E)", "mnemonic": "E" }, + { "command": "save", "caption": "保存(S)", "mnemonic": "S" }, + { + "caption": "以...編碼保存", + "children": + [ + { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } }, + { "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } }, + { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } }, + { "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } }, + { "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } }, + { "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } }, + { "caption": "-" }, + { "caption": "Western (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } }, + { "caption": "Western (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } }, + { "caption": "Western (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } }, + { "caption": "Western (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } }, + { "caption": "Western (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } }, + { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } }, + { "caption": "Arabic (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } }, + { "caption": "Arabic (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } }, + { "caption": "Baltic (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } }, + { "caption": "Baltic (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } }, + { "caption": "Celtic (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } }, + { "caption": "Central European (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } }, + { "caption": "Central European (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } }, + { "caption": "Cyrillic (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } }, + { "caption": "Cyrillic (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } }, + { "caption": "Cyrillic (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, + { "caption": "Cyrillic (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } }, + { "caption": "Cyrillic (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } }, + { "caption": "Estonian (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } }, + { "caption": "Greek (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } }, + { "caption": "Greek (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } }, + { "caption": "Hebrew (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } }, + { "caption": "Hebrew (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, + { "caption": "Nordic (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } }, + { "caption": "Romanian (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } }, + { "caption": "Turkish (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } }, + { "caption": "Turkish (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } }, + { "caption": "Vietnamese (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } }, + { "caption": "-" }, + { "caption": "Hexadecimal", "command": "save", "args": {"encoding": "Hexadecimal" } } + ] + }, + { "command": "prompt_save_as", "caption": "另存為(A)…", "mnemonic": "A" }, + { "command": "save_all", "caption": "保存全部(L)", "mnemonic": "L" }, + { "caption": "-", "id": "window" }, + { "command": "new_window", "caption": "新建窗口(W)", "mnemonic": "W" }, + { "command": "close_window", "caption": "關閉窗口" }, + { "caption": "-", "id": "close" }, + { "command": "close", "caption": "關閉文件(C)", "mnemonic": "C" }, + { "command": "revert", "caption": "恢復文件(V)", "mnemonic": "V" }, + { "command": "close_all", "caption": "關閉所有文件" }, + { "caption": "-", "id": "exit" }, + { "command": "exit", "caption": "退出(X)", "mnemonic": "X" } + ] + }, + { + "caption": "編輯(E)", + "mnemonic": "E", + "id": "edit", + "children": + [ + { "command": "undo", "caption": "撤銷(U)", "mnemonic": "U" }, + { "command": "redo_or_repeat", "caption": "重做(R)", "mnemonic": "R" }, + { + "caption": "撤銷選擇", + "children": + [ + { "command": "soft_undo", "caption": "軟撤銷" }, + { "command": "soft_redo", "caption": "軟重做" } + ] + }, + { "caption": "-", "id": "clipboard" }, + { "command": "copy", "caption": "複製(C)", "mnemonic": "C" }, + { "command": "cut", "caption": "剪切(N)", "mnemonic": "N" }, + { "command": "paste", "caption": "粘貼(P)", "mnemonic": "P" }, + { "command": "paste_and_indent", "caption": "粘貼並縮進(I)", "mnemonic": "I" }, + { "command": "paste_from_history", "caption": "從剪切板粘貼" }, + { "caption": "-" }, + { + "caption": "行(L)", "mnemonic": "L", + "id": "line", + "children": + [ + { "command": "indent", "caption": "縮進" }, + { "command": "unindent" , "caption": "不縮進" }, + { "command": "reindent", "args": {"single_line": true} , "caption": "重新縮進" }, + { "command": "swap_line_up", "caption": "向上切換行" }, + { "command": "swap_line_down", "caption": "向下切換行"}, + { "command": "duplicate_line", "caption": "重復行" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "刪除行" }, + { "command": "join_lines", "caption": "合併行" } + ] + }, + { + "caption": "註釋(M)", "mnemonic": "M", + "id": "comment", + "children": + [ + { "command": "toggle_comment", "args": {"block": false}, "caption": "開啟/關閉註釋" }, + { "command": "toggle_comment", "args": {"block": true}, "caption": "開啟/關閉區段註釋" } + ] + }, + { + "caption": "文本(T)", "mnemonic": "T", + "id": "text", + "children": + [ + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}, "caption": "插入行之前" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"}, "caption": "插入行之後" }, + { "caption": "-" }, + { "command": "delete_word", "args": { "forward": true }, "caption": "向前刪除單詞" }, + { "command": "delete_word", "args": { "forward": false }, "caption": "向後刪除單詞" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "刪除行" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "刪除到末尾" }, + { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "刪除到開始" }, + { "caption": "-" }, + { "command": "transpose", "caption": "換位" } + ] + }, + { + "caption": "標籤", + "id": "tag", + "children": + [ + { "command": "close_tag", "caption": "關閉標籤" }, + { "command": "expand_selection", "args": {"to": "tag"}, "caption": "展開選擇到標籤" }, + { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "用標籤自動換行選擇" } + ] + }, + { + "caption": "標記", + "id": "mark", + "children": + [ + { "command": "set_mark", "caption": "設置標記" }, + { "command": "select_to_mark", "caption": "選擇到標記" }, + { "command": "delete_to_mark", "caption": "刪除到標記" }, + { "command": "swap_with_mark", "caption": "互換標記" }, + { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "清除標記" }, + { "caption": "-" }, + { "command": "yank" , "caption": "抽出" } + ] + }, + { + "caption": "代碼摺疊", + "id": "fold", + "children": + [ + { "command": "fold", "caption": "摺疊" }, + { "command": "unfold", "caption": "展開" }, + { "command": "unfold_all", "caption": "展開全部" }, + { "caption": "-" }, + { "caption": "摺疊全部", "command": "fold_by_level", "args": {"level": 1} }, + { "caption": "摺疊 2 層", "command": "fold_by_level", "args": {"level": 2} }, + { "caption": "摺疊 3 層", "command": "fold_by_level", "args": {"level": 3} }, + { "caption": "摺疊 4 層", "command": "fold_by_level", "args": {"level": 4} }, + { "caption": "摺疊 5 層", "command": "fold_by_level", "args": {"level": 5} }, + { "caption": "摺疊 6 層", "command": "fold_by_level", "args": {"level": 6} }, + { "caption": "摺疊 7 層", "command": "fold_by_level", "args": {"level": 7} }, + { "caption": "摺疊 8 層", "command": "fold_by_level", "args": {"level": 8} }, + { "caption": "摺疊 9 層", "command": "fold_by_level", "args": {"level": 9} }, + { "caption": "-" }, + { "command": "fold_tag_attributes", "caption": "摺疊標簽屬性" } + ] + }, + { + "caption": "轉換大小寫(A)", "mnemonic": "A", + "id": "convert_case", + "children": + [ + { "command": "title_case", "caption": "首字母大寫" }, + { "command": "upper_case", "caption": "大寫" }, + { "command": "lower_case", "caption": "小寫" }, + { "command": "swap_case", "caption": "交換大小寫" } + ] + }, + { + "caption": "自動換行", + "id": "wrap", + "children": + [ + { "command": "wrap_lines", "caption": "自動換行段落在標尺" }, + { "command": "wrap_lines", "args": {"width": 70}, "caption": "自動換行段落在 70 個字符" }, + { "command": "wrap_lines", "args": {"width": 78}, "caption": "自動換行段落在 78 個字符" }, + { "command": "wrap_lines", "args": {"width": 80}, "caption": "自動換行段落在 80 個字符" }, + { "command": "wrap_lines", "args": {"width": 100}, "caption": "自動換行段落在 100 個字符" }, + { "command": "wrap_lines", "args": {"width": 120}, "caption": "自動換行段落在 120 個字符" } + ] + }, + { "command": "auto_complete", "caption": "顯示完成" }, + { "caption": "-", "id": "permute" }, + + { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "行排序(S)", "mnemonic": "S" }, + { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "行排序(區分大小寫)" }, + { + "caption": "更改行的序列", + "children": + [ + { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "反向" }, + { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "唯一" }, + { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "無序" } + ] + }, + { + "caption": "更改選擇內容的序列", + "children": + [ + { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "排序" }, + { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "排序(區分大小寫)" }, + { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "反向" }, + { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "唯一" }, + { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "無序" } + ] + }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "選擇(S)", + "mnemonic": "S", + "id": "selection", + "children": + [ + { "command": "split_selection_into_lines", "caption": "拆分為行" }, + { "command": "select_lines", "args": {"forward": false}, "caption": "添加前一行" }, + { "command": "select_lines", "args": {"forward": true}, "caption": "添加下一行" }, + { "command": "single_selection", "caption": "單獨選擇" }, + { "command": "invert_selection", "caption": "反向選擇" }, + { "caption": "-" }, + { "command": "select_all", "caption": "選擇全部" }, + { "command": "expand_selection", "args": {"to": "line"}, "caption": "展開選定行" }, + { "command": "find_under_expand", "caption": "展開選定單詞" }, + { "command": "expand_selection_to_paragraph", "caption": "展開選定段落" }, + { "command": "expand_selection", "args": {"to": "scope"}, "caption": "展開選定範圍" }, + { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "展開選定括號" }, + { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "展開選定縮進" }, + { "command": "expand_selection", "args": {"to": "tag"}, "caption": "展開選定標籤" } + ] + }, + { + "caption": "查找(I)", + "mnemonic": "I", + "id": "find", + "children": + [ + { "command": "show_panel", "args": {"panel": "find", "reverse": false}, "caption": "查找…" }, + { "command": "find_next", "caption": "查找下一個" }, + { "command": "find_prev", "caption": "查找前一個" }, + { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "增量查找" }, + { "caption": "-" }, + { "command": "show_panel", "args": {"panel": "replace", "reverse": false}, "caption": "替換…" }, + { "command": "replace_next", "caption": "替換下一個" }, + { "caption": "-" }, + { "command": "find_under", "caption": "快速查找" }, + { "command": "find_all_under", "caption": "快速查找全部" }, + { "command": "find_under_expand", "caption": "快速添加下一個" }, + { "command": "find_under_expand_skip", "caption": "快速跳到下一個", "platform": "!OSX" }, + { "caption": "-" }, + { "command": "slurp_find_string", "caption": "使用所選內容查找" }, + { "command": "slurp_replace_string", "caption": "使用所選內容替換" }, + { "caption": "-" }, + { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "在文件中查找…" }, + { + "caption": "查找結果(R)", + "mnemonic": "R", + "children": + [ + { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "顯示結果面板" }, + { "command": "next_result", "caption": "下一結果" }, + { "command": "prev_result", "caption": "前一結果" } + ] + } + ] + }, + { + "caption": "查看(V)", + "mnemonic": "V", + "id": "view", + "children": + [ + { + "caption": "側邊欄", + "id": "side_bar", + "children": + [ + { "command": "toggle_side_bar", "caption": "顯示/隱藏側邊欄" }, + { "caption": "-" }, + { "command": "toggle_show_open_files", "caption": "顯示打開的文件" } + ] + }, + { "command": "toggle_minimap", "caption": "顯示/隱藏迷你地圖" }, + { "command": "toggle_tabs", "caption": "顯示/隱藏標籤頁" }, + { "command": "toggle_status_bar", "caption": "顯示/隱藏狀態欄" }, + { "command": "toggle_menu", "caption": "顯示/隱藏菜單" }, + { "command": "show_panel", "args": {"panel": "console", "toggle": true}, "caption": "顯示/隱藏控制臺" }, + { "caption": "-", "id": "full_screen" }, + { "command": "toggle_full_screen", "caption": "進入/退出全屏" }, + { "command": "toggle_distraction_free", "caption": "進入/退出無幹擾模式" }, + { "caption": "-", "id": "groups" }, + { + "caption": "布局(L)", + "mnemonic": "L", + "id": "layout", + "children": + [ + { + "caption": "單獨", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1]] + } + }, + { + "caption": "列: 2", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.5, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] + } + }, + { + "caption": "列: 3", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.33, 0.66, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] + } + }, + { + "caption": "列: 4", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.25, 0.5, 0.75, 1.0], + "rows": [0.0, 1.0], + "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] + } + }, + { + "caption": "行: 2", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 0.5, 1.0], + "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] + } + }, + { + "caption": "行: 3", + "command": "set_layout", + "args": + { + "cols": [0.0, 1.0], + "rows": [0.0, 0.33, 0.66, 1.0], + "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] + } + }, + { + "caption": "網格: 4", + "command": "set_layout", + "args": + { + "cols": [0.0, 0.5, 1.0], + "rows": [0.0, 0.5, 1.0], + "cells": + [ + [0, 0, 1, 1], [1, 0, 2, 1], + [0, 1, 1, 2], [1, 1, 2, 2] + ] + } + } + ] + }, + { + "caption": "組", + "children": + [ + { "command": "new_pane", "caption": "文件移到新組" }, + { "command": "new_pane", "args": {"move": false}, "caption": "新建組" }, + { "command": "close_pane", "caption": "關閉組" }, + + { "caption": "-" }, + + { + "caption": "最大列數: 1", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 1 } + }, + { + "caption": "最大列數: 2", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 2 } + }, + { + "caption": "最大列數: 3", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 3 } + }, + { + "caption": "最大列數: 4", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 4 } + }, + { + "caption": "最大列數: 5", + "command": "set_max_columns", + "checkbox": true, + "args": { "columns": 5 } + } + ] + }, + { + "caption": "焦點分組(F)", + "mnemonic": "F", + "children": + [ + + { "command": "focus_neighboring_group", "caption": "下一個" }, + { "command": "focus_neighboring_group", "args": {"forward": false}, "caption": "上一個" }, + { "caption": "-" }, + { "command": "focus_group", "args": {"group": 0}, "caption": "分組 1" }, + { "command": "focus_group", "args": {"group": 1}, "caption": "分組 2" }, + { "command": "focus_group", "args": {"group": 2}, "caption": "分組 3" }, + { "command": "focus_group", "args": {"group": 3}, "caption": "分組 4" } + ] + }, + { + "caption": "移動文件到分組(M)", + "mnemonic": "M", + "children": + [ + { "command": "move_to_neighboring_group", "caption": "下一個" }, + { "command": "move_to_neighboring_group", "args": {"forward": false}, "caption": "上一個" }, + { "caption": "-" }, + { "command": "move_to_group", "args": {"group": 0}, "caption": "分組 1" }, + { "command": "move_to_group", "args": {"group": 1}, "caption": "分組 2" }, + { "command": "move_to_group", "args": {"group": 2}, "caption": "分組 3" }, + { "command": "move_to_group", "args": {"group": 3}, "caption": "分組 4" } + ] + }, + { "caption": "-" }, + { + "caption": "語法(S)", + "mnemonic": "S", + "id": "syntax", + "children": [ { "command": "$file_types" } ] + }, + { + "caption": "縮進(I)", + "mnemonic": "I", + "id": "indentation", + "children": + [ + { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格縮進", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab寬度: 1", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab寬度: 2", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab寬度: 3", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab寬度: 4", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab寬度: 5", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab寬度: 6", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab寬度: 7", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab寬度: 8", "checkbox": true }, + { "caption": "-" }, + { "command": "detect_indentation", "caption": "猜測來自緩沖區的設置" }, + { "caption": "-" }, + { "command": "expand_tabs", "caption": "轉換縮進為空格", "args": {"set_translate_tabs": true} }, + { "command": "unexpand_tabs", "caption": "轉換縮進為tab", "args": {"set_translate_tabs": true} } + ] + }, + { + "caption": "行結束符(N)", + "mnemonic": "N", + "id": "line_endings", + "children": + [ + { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows", "checkbox": true }, + { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix", "checkbox": true }, + { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9", "checkbox": true } + ] + }, + { "caption": "-", "id": "settings" }, + { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "自動換行(W)", "mnemonic": "W", "checkbox": true }, + { + "caption": "自動換行列", + "children": + [ + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "自動", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true } + ] + }, + { + "caption": "標尺", + "children": + [ + { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "無", "checkbox": true }, + { "caption": "-" }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true }, + { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true } + ] + }, + { "caption": "-" }, + { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "拼寫檢查", "checkbox": true }, + { "command": "next_misspelling", "caption": "下一拼寫錯誤" }, + { "command": "prev_misspelling", "caption": "前一拼寫錯誤" }, + { + "caption": "詞典", + "children": [ { "command": "$dictionaries" } ] + } + ] + }, + { + "caption": "轉到(G)", + "mnemonic": "G", + "id": "goto", + "children": + [ + { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "轉到任何(A)…", "mnemonic": "A" }, + { "caption": "-" }, + { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "轉到符號…" }, + { "command": "goto_symbol_in_project", "caption": "轉到項目中符號…" }, + { "command": "goto_definition", "caption": "轉到預定義…" }, + // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "轉到單詞…" }, + { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "轉到行…" }, + { "caption": "-" }, + { "command": "jump_back", "caption": "跳回" }, + { "command": "jump_forward", "caption": "跳至" }, + { "caption": "-" }, + { + "caption": "切換文件(T)", + "mnemonic": "T", + "id": "switch_file", + "children": + [ + { "command": "next_view", "caption": "下一文件" }, + { "command": "prev_view", "caption": "上一文件" }, + { "caption": "-" }, + { "command": "next_view_in_stack", "caption": "在堆棧中的下一文件" }, + { "command": "prev_view_in_stack", "caption": "在堆棧中的前一文件" }, + { "caption": "-" }, + { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]}, "caption": "切換標題/實施(H)", "mnemonic": "H" }, + { "caption": "-" }, + { "command": "select_by_index", "args": { "index": 0 } }, + { "command": "select_by_index", "args": { "index": 1 } }, + { "command": "select_by_index", "args": { "index": 2 } }, + { "command": "select_by_index", "args": { "index": 3 } }, + { "command": "select_by_index", "args": { "index": 4 } }, + { "command": "select_by_index", "args": { "index": 5 } }, + { "command": "select_by_index", "args": { "index": 6 } }, + { "command": "select_by_index", "args": { "index": 7 } }, + { "command": "select_by_index", "args": { "index": 8 } }, + { "command": "select_by_index", "args": { "index": 9 } } + ] + }, + { "caption": "-" }, + { + "caption": "滾動(S)", + "mnemonic": "S", + "id": "scroll", + "children": + [ + { "command": "show_at_center", "caption": "滾動到選擇" }, + { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "向上一行" }, + { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "向下一行" } + ] + }, + { + "caption": "書籤(B)", + "mnemonic": "B", + "id": "bookmarks", + "children": + [ + { "command": "toggle_bookmark", "caption": "開啟/關閉書籤" }, + { "command": "next_bookmark", "caption": "下一書籤" }, + { "command": "prev_bookmark", "caption": "前一書籤" }, + { "command": "clear_bookmarks", "caption": "清除書籤" }, + { "command": "select_all_bookmarks", "caption": "選擇所有書籤" }, + { "caption": "-" }, + { "command": "select_bookmark", "args": {"index": 0} }, + { "command": "select_bookmark", "args": {"index": 1} }, + { "command": "select_bookmark", "args": {"index": 2} }, + { "command": "select_bookmark", "args": {"index": 3} }, + { "command": "select_bookmark", "args": {"index": 4} }, + { "command": "select_bookmark", "args": {"index": 5} }, + { "command": "select_bookmark", "args": {"index": 6} }, + { "command": "select_bookmark", "args": {"index": 7} }, + { "command": "select_bookmark", "args": {"index": 8} }, + { "command": "select_bookmark", "args": {"index": 9} }, + { "command": "select_bookmark", "args": {"index": 10} }, + { "command": "select_bookmark", "args": {"index": 11} }, + { "command": "select_bookmark", "args": {"index": 12} }, + { "command": "select_bookmark", "args": {"index": 13} }, + { "command": "select_bookmark", "args": {"index": 14} }, + { "command": "select_bookmark", "args": {"index": 15} } + ] + }, + { "caption": "-" }, + { "command": "move_to", "args": {"to": "brackets"}, "caption": "跳轉到匹配的括號" } + ] + }, + { + "caption": "工具(T)", + "mnemonic": "T", + "id": "tools", + "children": + [ + { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "命令面板…" }, + { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "代碼段…" }, + { "caption": "-", "id": "build" }, + { + "caption": "編譯系統(U)", + "mnemonic": "U", + "children": + [ + { "command": "set_build_system", "args": { "file": "" }, "caption": "自動", "checkbox": true }, + { "caption": "-" }, + { "command": "set_build_system", "args": {"index": 0}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 1}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 2}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 3}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 4}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 5}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 6}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 7}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 8}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 9}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 10}, "checkbox": true }, + { "command": "set_build_system", "args": {"index": 11}, "checkbox": true }, + { "caption": "-" }, + { "command": "$build_systems" }, + { "caption": "-" }, + { "command": "new_build_system", "caption": "新編譯系統…" } + ] + }, + { "command": "build", "caption": "編譯(B)", "mnemonic": "B" }, + { "command": "build", "args": {"select": true}, "caption": "用…編譯" }, + { "command": "exec", "args": {"kill": true}, "caption": "取消編譯(C)", "mnemonic": "C" }, + { + "caption": "編譯結果(R)", + "mnemonic": "R", + "children": + [ + { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "顯示編譯結果(S)", "mnemonic": "S" }, + { "command": "next_result", "caption": "下一結果(N)", "mnemonic": "N" }, + { "command": "prev_result", "caption": "前一結果(P)", "mnemonic": "P" } + ] + }, + { "command": "toggle_save_all_on_build", "caption": "保存所有有關編譯(A)", "mnemonic": "A", "checkbox": true }, + { "caption": "-", "id": "macros" }, + { "command": "toggle_record_macro", "caption": "錄制宏(M)", "mnemonic": "M" }, + { "command": "run_macro", "caption": "播放宏(P)", "mnemonic": "P" }, + { "command": "save_macro", "caption": "保存宏(V)…", "mnemonic": "V" }, + { + "caption": "宏", + "children": [ { "command": "$macros" } ] + }, + { "caption": "-" }, + { "command": "new_plugin", "caption": "新插件…" }, + { "command": "new_snippet", "caption": "新代碼段…" }, + { "caption": "-", "id": "end" } + ] + }, + { + "caption": "項目(P)", + "id": "project", + "mnemonic": "P", + "children": + [ + { "command": "prompt_open_project_or_workspace", "caption": "打開項目(O)…" }, + { "command": "prompt_switch_project_or_workspace", "caption": "切換項目…" }, + { "command": "prompt_select_workspace", "caption": "快速切換項目(S)…", "mnemonic": "S" }, + { + "caption": "最近項目(R)", + "children": + [ + { "command": "open_recent_project_or_workspace", "args": {"index": 0 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 1 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 2 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 3 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 4 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 5 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 6 } }, + { "command": "open_recent_project_or_workspace", "args": {"index": 7 } }, + { "caption": "-" }, + { "command": "clear_recent_workspaces", "caption": "清除項目" } + ] + }, + { "caption": "-" }, + { "command": "save_project_and_workspace_as", "caption": "另存項目為(A)…", "mnemonic": "A" }, + { "command": "close_workspace", "caption": "關閉項目(C)", "mnemonic": "C" }, + { "command": "open_file", "args": {"file": "${project}"}, "caption": "編輯項目" }, + { "caption": "-" }, + { "command": "new_window_for_project", "caption": "工作區切換項目" }, + { "command": "save_workspace_as", "caption": "工作區另存為(A)...", "mnemonic": "A" }, + { "caption": "-" }, + { "command": "prompt_add_folder", "caption": "添加文件夾到項目(D)…", "mnemonic": "D" }, + { "command": "close_folder_list", "caption": "從項目刪除所有文件夾(M)", "mnemonic": "M" }, + { "command": "refresh_folder_list", "caption": "刷新文件夾(E)", "mnemonic": "E" } + ] + }, + { + "caption": "首選項(N)", + "mnemonic": "N", + "id": "preferences", + "children": + [ + { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "瀏覽程序包(B)…", "mnemonic": "B" }, + { "caption": "-" }, + { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "設置 – 默認" }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Preferences.sublime-settings", + "contents": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by file type specific settings.\n{\n\t$0\n}\n" + }, + "caption": "設置 – 用戶" + }, + { + "caption": "設置 – 更多", + "children": + [ + { "command": "open_file_settings", "caption": "特定語法 – 用戶" }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Distraction Free.sublime-settings", + "contents": "{\n\t$0\n}\n" + }, + "caption": "無幹擾模式 – 用戶" + } + ] + }, + { "caption": "-" }, + { + "command": "open_file", "args": + { + "file": "${packages}/Default/Default ($platform).sublime-keymap" + }, + "caption": "按鍵組合 – 默認" + }, + { + "command": "open_file", "args": + { + "file": "${packages}/User/Default ($platform).sublime-keymap", + "contents": "[\n\t$0\n]\n" + }, + "caption": "按鍵組合 – 用戶" + }, + { "caption": "-" }, + { + "caption": "字體", + "children": + [ + { "command": "increase_font_size", "caption": "增大" }, + { "command": "decrease_font_size", "caption": "減小" }, + { "caption": "-" }, + { "command": "reset_font_size", "caption": "重置" } + ] + }, + { + "caption": "配色方案", + "children": [ { "command": "$color_schemes" } ] + } + ] + }, + { + "caption": "幫助(H)", + "mnemonic": "H", + "id": "help", + "children": + [ + { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/3/"}, "caption": "文檔" }, + { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "Twitter" }, + { "command": "open_url", "args": {"url": "http://i.rexdf.org"}, "caption": "漢化 by Rexdf" }, + { "caption": "-" }, + { "command": "purchase_license"}, + { "command": "show_license_window", "caption": "輸入註冊碼" }, + { "command": "remove_license", "caption": "刪除註冊信息"}, + { "caption": "-" }, + { "command": "update_check", "caption": "檢查更新…", "platform": "!Linux" }, + { "command": "show_changelog", "caption": "陞級日誌…" }, + { "command": "show_about_window", "caption": "關於 Sublime Text(A)", "mnemonic": "A" } + ] + } +] diff --git a/ZH_TW/Side Bar Mount Point.sublime-menu b/ZH_TW/Side Bar Mount Point.sublime-menu new file mode 100755 index 0000000..770cc1b --- /dev/null +++ b/ZH_TW/Side Bar Mount Point.sublime-menu @@ -0,0 +1,4 @@ +[ + { "caption": "-", "id": "folder_commands" }, + { "caption": "從項目中刪除", "command": "remove_folder", "args": { "dirs": []} } +] diff --git a/ZH_TW/Side Bar.sublime-menu b/ZH_TW/Side Bar.sublime-menu new file mode 100755 index 0000000..3a5e0b9 --- /dev/null +++ b/ZH_TW/Side Bar.sublime-menu @@ -0,0 +1,11 @@ +[ + { "caption": "新建文件", "command": "new_file_at", "args": {"dirs": []} }, + { "caption": "重命名…", "command": "rename_path", "args": {"paths": []} }, + { "caption": "刪除文件", "command": "delete_file", "args": {"files": []} }, + { "caption": "打開所在文件夾…", "command": "open_containing_folder", "args": {"files": []} }, + { "caption": "-", "id": "folder_commands" }, + { "caption": "新建文件夾…", "command": "new_folder", "args": {"dirs": []} }, + { "caption": "刪除文件夾", "command": "delete_folder", "args": {"dirs": []} }, + { "caption": "在文件夾中查找…", "command": "find_in_folder", "args": {"dirs": []} }, + { "caption": "-", "id": "end" } +] diff --git a/ZH_TW/Syntax.sublime-menu b/ZH_TW/Syntax.sublime-menu new file mode 100755 index 0000000..72bbc14 --- /dev/null +++ b/ZH_TW/Syntax.sublime-menu @@ -0,0 +1,6 @@ +[ + { + "caption": "語法", + "children": [ { "command": "$file_types" } ] + } +] diff --git a/ZH_TW/Tab Context.sublime-menu b/ZH_TW/Tab Context.sublime-menu new file mode 100755 index 0000000..f2d137b --- /dev/null +++ b/ZH_TW/Tab Context.sublime-menu @@ -0,0 +1,8 @@ +[ + { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "關閉" }, + { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "關閉其他" }, + { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "關閉右側選項卡" }, + { "caption": "-" }, + { "command": "new_file", "caption": "新建文件" }, + { "command": "prompt_open_file", "caption": "打開文件" } +] diff --git a/ZH_TW/Widget Context.sublime-menu b/ZH_TW/Widget Context.sublime-menu new file mode 100755 index 0000000..cc21246 --- /dev/null +++ b/ZH_TW/Widget Context.sublime-menu @@ -0,0 +1,7 @@ +[ + { "command": "copy", "caption": "複製" }, + { "command": "cut", "caption": "剪切" }, + { "command": "paste", "caption": "粘貼" }, + { "caption": "-" }, + { "command": "select_all", "caption": "全選" } +]