Skip to content

Commit

Permalink
Add zh_CN/zh_TW locales for st4
Browse files Browse the repository at this point in the history
  • Loading branch information
zam1024t committed May 22, 2021
1 parent ece6fc3 commit 6bd0447
Show file tree
Hide file tree
Showing 26 changed files with 2,342 additions and 0 deletions.
10 changes: 10 additions & 0 deletions menu/4/zh_CN/Console Input Widget Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{ "command": "cut", "caption": "剪切" },
{ "command": "copy", "caption": "复制" },
{ "command": "paste", "caption": "粘贴" },
{ "caption": "-" },
{ "command": "select_all", "caption": "全选" },
{ "caption": "-" },
{ "command": "console_python_version", "args": {"version": "3.8"}, "checkbox": true },
{ "command": "console_python_version", "args": {"version": "3.3"}, "checkbox": true },
]
24 changes: 24 additions & 0 deletions menu/4/zh_CN/Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{ "command": "open_context_url", "caption": "打开URL链接" },
{ "command": "goto_definition", "caption": "转到定义处" },
{ "caption": "-", "id": "diff" },
{ "command": "toggle_inline_diff", "caption": "切换显示行内差异" },
{ "command": "revert_hunk", "caption": "还原差异块" },
{ "caption": "-", "id": "clipboard" },
{ "command": "cut", "caption": "剪切" },
{ "command": "copy", "caption": "复制" },
{ "command": "paste", "caption": "粘贴" },
{ "caption": "-", "id": "selection" },
{ "command": "select_all", "caption": "全选" },
{ "caption": "-", "id": "repo_commands" },
{ "caption": "打开Git仓库…", "command": "sublime_merge_open_repo" },
{ "caption": "文件历史…", "command": "sublime_merge_file_history" },
{ "caption": "行历史…", "command": "sublime_merge_line_history" },
{ "caption": "审查文件…", "command": "sublime_merge_blame_file" },
{ "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" }
]
85 changes: 85 additions & 0 deletions menu/4/zh_CN/Encoding.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
{
"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": "西方语 (Windows 1252)", "command": "set_encoding", "args": {"encoding": "Western (Windows 1252)" } },
{ "caption": "西方语 (ISO 8859-1)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-1)" } },
{ "caption": "西方语 (ISO 8859-3)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-3)" } },
{ "caption": "西方语 (ISO 8859-15)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-15)" } },
{ "caption": "西方语 (Mac Roman)", "command": "set_encoding", "args": {"encoding": "Western (Mac Roman)" } },
{ "caption": "DOS (CP 437)", "command": "set_encoding", "args": {"encoding": "DOS (CP 437)" } },
{ "caption": "阿拉伯语 (Windows 1256)", "command": "set_encoding", "args": {"encoding": "Arabic (Windows 1256)" } },
{ "caption": "阿拉伯语 (ISO 8859-6)", "command": "set_encoding", "args": {"encoding": "Arabic (ISO 8859-6)" } },
{ "caption": "波罗海语 (Windows 1257)", "command": "set_encoding", "args": {"encoding": "Baltic (Windows 1257)" } },
{ "caption": "波罗海语 (ISO 8859-4)", "command": "set_encoding", "args": {"encoding": "Baltic (ISO 8859-4)" } },
{ "caption": "凯尔特语 (ISO 8859-14)", "command": "set_encoding", "args": {"encoding": "Celtic (ISO 8859-14)" } },
{ "caption": "中欧语 (Windows 1250)", "command": "set_encoding", "args": {"encoding": "Central European (Windows 1250)" } },
{ "caption": "中欧语 (ISO 8859-2)", "command": "set_encoding", "args": {"encoding": "Central European (ISO 8859-2)" } },
{ "caption": "中欧语 (Mac)", "command": "set_encoding", "args": {"encoding": "Central European (Mac)" } },
{ "caption": "西里尔语 (Windows 1251)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 1251)" } },
{ "caption": "西里尔语 (Windows 866)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 866)" } },
{ "caption": "西里尔语 (ISO 8859-5)", "command": "set_encoding", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
{ "caption": "西里尔语 (KOI8-R)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-R)" } },
{ "caption": "西里尔语 (KOI8-U)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-U)" } },
{ "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "set_encoding", "args": {"encoding": "Estonian (ISO 8859-13)" } },
{ "caption": "希腊语 (Windows 1253)", "command": "set_encoding", "args": {"encoding": "Greek (Windows 1253)" } },
{ "caption": "希腊语 (ISO 8859-7)", "command": "set_encoding", "args": {"encoding": "Greek (ISO 8859-7)" } },
{ "caption": "希伯来语 (Windows 1255)", "command": "set_encoding", "args": {"encoding": "Hebrew (Windows 1255)" } },
{ "caption": "希伯来语 (ISO 8859-8)", "command": "set_encoding", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
{ "caption": "北欧语 (ISO 8859-10)", "command": "set_encoding", "args": {"encoding": "Nordic (ISO 8859-10)" } },
{ "caption": "罗马尼亚语 (ISO 8859-16)", "command": "set_encoding", "args": {"encoding": "Romanian (ISO 8859-16)" } },
{ "caption": "土耳其语 (Windows 1254)", "command": "set_encoding", "args": {"encoding": "Turkish (Windows 1254)" } },
{ "caption": "土耳其语 (ISO 8859-9)", "command": "set_encoding", "args": {"encoding": "Turkish (ISO 8859-9)" } },
{ "caption": "越南语 (Windows 1258)", "command": "set_encoding", "args": {"encoding": "Vietnamese (Windows 1258)" } },
{ "caption": "-" },
{ "caption": "十六进制", "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": "西方语 (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } },
{ "caption": "西方语 (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } },
{ "caption": "西方语 (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } },
{ "caption": "西方语 (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } },
{ "caption": "西方语 (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } },
{ "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } },
{ "caption": "阿拉伯语 (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } },
{ "caption": "阿拉伯语 (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } },
{ "caption": "波罗海语 (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } },
{ "caption": "波罗海语 (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } },
{ "caption": "凯尔特语 (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } },
{ "caption": "中欧语 (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } },
{ "caption": "中欧语 (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } },
{ "caption": "中欧语 (Mac)", "command": "reopen", "args": {"encoding": "Central European (Mac)" } },
{ "caption": "西里尔语 (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } },
{ "caption": "西里尔语 (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } },
{ "caption": "西里尔语 (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
{ "caption": "西里尔语 (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } },
{ "caption": "西里尔语 (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } },
{ "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } },
{ "caption": "希腊语 (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } },
{ "caption": "希腊语 (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } },
{ "caption": "希伯来语 (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } },
{ "caption": "希伯来语 (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
{ "caption": "北欧语 (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } },
{ "caption": "罗马尼亚语 (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } },
{ "caption": "土耳其语 (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } },
{ "caption": "土耳其语 (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } },
{ "caption": "越南语 (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } },
{ "caption": "-" },
{ "caption": "十六进制", "command": "reopen", "args": {"encoding": "Hexadecimal" } }
]
},
]
10 changes: 10 additions & 0 deletions menu/4/zh_CN/Find in Files.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{ "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": "<project filters>"}, "caption": "添加排除过滤项目" },
{ "command": "add_where_snippet", "args": {"snippet": "<open folders>"}, "caption": "添加打开的文件夹" },
{ "command": "add_where_snippet", "args": {"snippet": "<open files>"}, "caption": "添加打开的文件" },
{ "command": "add_where_snippet", "args": {"snippet": "<current file>"}, "caption": "添加当前文件" },
]
17 changes: 17 additions & 0 deletions menu/4/zh_CN/Indentation.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -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": "转为制表符缩进", "args": {"set_translate_tabs": true} }
]
5 changes: 5 additions & 0 deletions menu/4/zh_CN/Line Endings.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{ "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows (CRLF)", "checkbox": true },
{ "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix (LF)", "checkbox": true },
{ "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS X (CR)", "checkbox": true }
]
4 changes: 4 additions & 0 deletions menu/4/zh_CN/Side Bar Mount Point.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
{ "caption": "-", "id": "folder_commands" },
{ "caption": "从项目中移除文件夹", "command": "remove_folder", "args": { "dirs": []} }
]
18 changes: 18 additions & 0 deletions menu/4/zh_CN/Side Bar.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{ "caption": "新建文件", "command": "new_file_at", "args": {"dirs": []} },
{ "caption": "重命名…", "command": "rename_path", "args": {"paths": []} },
{ "caption": "删除文件", "command": "delete_file", "args": {"files": [], "prompt": false} },
{ "caption": "打开文件夹…", "command": "open_folder", "args": {"dirs": []} },
{ "caption": "打开所在文件夹…", "command": "open_containing_folder", "args": {"files": []} },
{ "caption": "打开链接目录", "command": "reveal_link_source", "args": {"dirs": []} },
{ "caption": "-", "id": "repo_commands" },
{ "caption": "打开Git仓库…", "command": "sublime_merge_open_repo", "args": {"paths": []}},
{ "caption": "文件历史…", "command": "sublime_merge_file_history", "args": {"files": []}},
{ "caption": "目录历史…", "command": "sublime_merge_folder_history", "args": {"paths": []}},
{ "caption": "审查文件…", "command": "sublime_merge_blame_file", "args": {"files": []}},
{ "caption": "-", "id": "folder_commands" },
{ "caption": "新建文件夹…", "command": "new_folder", "args": {"dirs": []} },
{ "caption": "删除文件夹", "command": "delete_folder", "args": {"dirs": [], "prompt": true} },
{ "caption": "在文件夹中查找…", "command": "find_in_folder", "args": {"dirs": []} },
{ "caption": "-", "id": "end" }
]
6 changes: 6 additions & 0 deletions menu/4/zh_CN/Syntax.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"caption": "语法",
"children": [ { "command": "$file_types" } ]
}
]
13 changes: 13 additions & 0 deletions menu/4/zh_CN/Tab Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{ "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": "关闭右侧选项卡" },
{ "command": "close_unmodified", "args": { "group": -1, "index": -1 }, "caption": "关闭未改" },
{ "command": "close_unmodified_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭右侧未改" },
{ "command": "close_deleted_files", "args": { "group": -1 }, "caption": "关闭已删" },
{ "caption": "-" },
{ "command": "clone_file", "args": { "add_to_selection": true, "group": -1, "index": -1 }, "caption": "拆分视图" },
{ "caption": "-" },
{ "command": "new_file", "caption": "新建文件" },
{ "command": "prompt_open_file", "caption": "打开文件" }
]
11 changes: 11 additions & 0 deletions menu/4/zh_CN/Tab Sidebar Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "command": "close_selected", "args": { "group": -1 }, "caption": "关闭" },
{ "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭其它" },
{ "command": "close_unmodified", "args": { "group": -1, "index": -1 }, "caption": "关闭未改" },
{ "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭右侧" },
{ "command": "close_unmodified_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭右侧未改" },
{ "command": "close_deleted_files", "args": { "group": -1 }, "caption": "关闭已删" },
{ "caption": "-" },
{ "command": "new_file", "caption": "新建文件" },
{ "command": "prompt_open_file", "caption": "打开文件" }
]
9 changes: 9 additions & 0 deletions menu/4/zh_CN/Widget Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{ "command": "open_context_url", "caption": "打开URL链接" },
{ "caption": "-" },
{ "command": "cut", "caption": "剪切" },
{ "command": "copy", "caption": "复制" },
{ "command": "paste", "caption": "粘贴" },
{ "caption": "-" },
{ "command": "select_all", "caption": "全选" }
]
10 changes: 10 additions & 0 deletions menu/4/zh_TW/Console Input Widget Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{ "command": "cut", "caption": "剪切" },
{ "command": "copy", "caption": "復制" },
{ "command": "paste", "caption": "粘貼" },
{ "caption": "-" },
{ "command": "select_all", "caption": "全選" },
{ "caption": "-" },
{ "command": "console_python_version", "args": {"version": "3.8"}, "checkbox": true },
{ "command": "console_python_version", "args": {"version": "3.3"}, "checkbox": true },
]
24 changes: 24 additions & 0 deletions menu/4/zh_TW/Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{ "command": "open_context_url", "caption": "打開URL鏈接" },
{ "command": "goto_definition", "caption": "轉到定義處" },
{ "caption": "-", "id": "diff" },
{ "command": "toggle_inline_diff", "caption": "切換顯示行內差異" },
{ "command": "revert_hunk", "caption": "還原差異塊" },
{ "caption": "-", "id": "clipboard" },
{ "command": "cut", "caption": "剪切" },
{ "command": "copy", "caption": "復制" },
{ "command": "paste", "caption": "粘貼" },
{ "caption": "-", "id": "selection" },
{ "command": "select_all", "caption": "全選" },
{ "caption": "-", "id": "repo_commands" },
{ "caption": "打開Git倉庫…", "command": "sublime_merge_open_repo" },
{ "caption": "文件歷史…", "command": "sublime_merge_file_history" },
{ "caption": "行歷史…", "command": "sublime_merge_line_history" },
{ "caption": "審查文件…", "command": "sublime_merge_blame_file" },
{ "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" }
]
Loading

0 comments on commit 6bd0447

Please sign in to comment.