Skip to content

Commit fd54970

Browse files
WaiSiuKeibrettcannon
authored andcommitted
Add Simplified Chinese translation of commands (#240)
1 parent 5430b5e commit fd54970

File tree

3 files changed

+98
-24
lines changed

3 files changed

+98
-24
lines changed

package.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -84,122 +84,122 @@
8484
"commands": [
8585
{
8686
"command": "python.sortImports",
87-
"title": "Sort Imports",
87+
"title": "%python.command.python.sortImports.title%",
8888
"category": "Python Refactor"
8989
},
9090
{
9191
"command": "python.startREPL",
92-
"title": "Start REPL",
92+
"title": "%python.command.python.startREPL.title%",
9393
"category": "Python"
9494
},
9595
{
9696
"command": "python.buildWorkspaceSymbols",
97-
"title": "Build Workspace Symbols",
97+
"title": "%python.command.python.buildWorkspaceSymbols.title%",
9898
"category": "Python"
9999
},
100100
{
101101
"command": "python.runtests",
102-
"title": "Run All Unit Tests",
102+
"title": "%python.command.python.runtests.title%",
103103
"category": "Python"
104104
},
105105
{
106106
"command": "python.debugtests",
107-
"title": "Debug All Unit Tests",
107+
"title": "%python.command.python.debugtests.title%",
108108
"category": "Python"
109109
},
110110
{
111111
"command": "python.execInTerminal",
112-
"title": "Run Python File in Terminal",
112+
"title": "%python.command.python.execInTerminal.title%",
113113
"category": "Python"
114114
},
115115
{
116116
"command": "python.setInterpreter",
117-
"title": "Select Interpreter",
117+
"title": "%python.command.python.setInterpreter.title%",
118118
"category": "Python"
119119
},
120120
{
121121
"command": "python.updateSparkLibrary",
122-
"title": "Update Workspace PySpark Libraries",
122+
"title": "%python.command.python.updateSparkLibrary.title%",
123123
"category": "Python"
124124
},
125125
{
126126
"command": "python.refactorExtractVariable",
127-
"title": "Extract Variable",
127+
"title": "%python.command.python.refactorExtractVariable.title%",
128128
"category": "Python Refactor"
129129
},
130130
{
131131
"command": "python.refactorExtractMethod",
132-
"title": "Extract Method",
132+
"title": "%python.command.python.refactorExtractMethod.title%",
133133
"category": "Python Refactor"
134134
},
135135
{
136136
"command": "python.viewTestOutput",
137-
"title": "Show Unit Test Output",
137+
"title": "%python.command.python.viewTestOutput.title%",
138138
"category": "Python"
139139
},
140140
{
141141
"command": "python.selectAndRunTestMethod",
142-
"title": "Run Unit Test Method ...",
142+
"title": "%python.command.python.selectAndRunTestMethod.title%",
143143
"category": "Python"
144144
},
145145
{
146146
"command": "python.selectAndDebugTestMethod",
147-
"title": "Debug Unit Test Method ...",
147+
"title": "%python.command.python.selectAndDebugTestMethod.title%",
148148
"category": "Python"
149149
},
150150
{
151151
"command": "python.selectAndRunTestFile",
152-
"title": "Run Unit Test File ...",
152+
"title": "%python.command.python.selectAndRunTestFile.title%",
153153
"category": "Python"
154154
},
155155
{
156156
"command": "python.runCurrentTestFile",
157-
"title": "Run Current Unit Test File",
157+
"title": "%python.command.python.runCurrentTestFile.title%",
158158
"category": "Python"
159159
},
160160
{
161161
"command": "python.runFailedTests",
162-
"title": "Run Failed Unit Tests",
162+
"title": "%python.command.python.runFailedTests.title%",
163163
"category": "Python"
164164
},
165165
{
166166
"command": "python.execSelectionInTerminal",
167-
"title": "Run Selection/Line in Python Terminal",
167+
"title": "%python.command.python.execSelectionInTerminal.title%",
168168
"category": "Python"
169169
},
170170
{
171171
"command": "python.execSelectionInDjangoShell",
172-
"title": "Run Selection/Line in Django Shell",
172+
"title": "%python.command.python.execSelectionInDjangoShell.title%",
173173
"category": "Python"
174174
},
175175
{
176176
"command": "jupyter.runSelectionLine",
177-
"title": "Run Selection/Line",
177+
"title": "%python.command.jupyter.runSelectionLine.title%",
178178
"category": "Jupyter"
179179
},
180180
{
181181
"command": "jupyter.execCurrentCell",
182-
"title": "Run Cell",
182+
"title": "%python.command.jupyter.execCurrentCell.title%",
183183
"category": "Jupyter"
184184
},
185185
{
186186
"command": "jupyter.execCurrentCellAndAdvance",
187-
"title": "Run Cell and Advance",
187+
"title": "%python.command.jupyter.execCurrentCellAndAdvance.title%",
188188
"category": "Jupyter"
189189
},
190190
{
191191
"command": "jupyter.gotToPreviousCell",
192-
"title": "Go to Previous Cell",
192+
"title": "%python.command.jupyter.gotToPreviousCell.title%",
193193
"category": "Jupyter"
194194
},
195195
{
196196
"command": "jupyter.gotToNextCell",
197-
"title": "Go to Next Cell",
197+
"title": "%python.command.jupyter.gotToNextCell.title%",
198198
"category": "Jupyter"
199199
},
200200
{
201201
"command": "python.goToPythonObject",
202-
"title": "Go to Python Object",
202+
"title": "%python.command.python.goToPythonObject.title%",
203203
"category": "Python"
204204
}
205205
],

package.nls.json

+24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
{
2+
"python.command.python.sortImports.title": "Sort Imports",
3+
"python.command.python.startREPL.title": "Start REPL",
4+
"python.command.python.buildWorkspaceSymbols.title": "Build Workspace Symbols",
5+
"python.command.python.runtests.title": "Run All Unit Tests",
6+
"python.command.python.debugtests.title": "Debug All Unit Tests",
7+
"python.command.python.execInTerminal.title": "Run Python File in Terminal",
8+
"python.command.python.setInterpreter.title": "Select Interpreter",
9+
"python.command.python.updateSparkLibrary.title": "Update Workspace PySpark Libraries",
10+
"python.command.python.refactorExtractVariable.title": "Extract Variable",
11+
"python.command.python.refactorExtractMethod.title": "Extract Method",
12+
"python.command.python.viewTestOutput.title": "Show Unit Test Output",
13+
"python.command.python.selectAndRunTestMethod.title": "Run Unit Test Method ...",
14+
"python.command.python.selectAndDebugTestMethod.title": "Debug Unit Test Method ...",
15+
"python.command.python.selectAndRunTestFile.title": "Run Unit Test File ...",
16+
"python.command.python.runCurrentTestFile.title": "Run Current Unit Test File",
17+
"python.command.python.runFailedTests.title": "Run Failed Unit Tests",
18+
"python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal",
19+
"python.command.python.execSelectionInDjangoShell.title": "Run Selection/Line in Django Shell",
20+
"python.command.jupyter.runSelectionLine.title": "Run Selection/Line",
21+
"python.command.jupyter.execCurrentCell.title": "Run Cell",
22+
"python.command.jupyter.execCurrentCellAndAdvance.title": "Run Cell and Advance",
23+
"python.command.jupyter.gotToPreviousCell.title": "Go to Previous Cell",
24+
"python.command.jupyter.gotToNextCell.title": "Go to Next Cell",
25+
"python.command.python.goToPythonObject.title": "Go to Python Object",
226
"python.snippet.launch.standard.label": "Python",
327
"python.snippet.launch.standard.description": "Debug a Python program with standard output",
428
"python.snippet.launch.pyspark.label": "Python: PySpark",

package.nls.zh-cn.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"python.command.python.sortImports.title": "排序 import 语句",
3+
"python.command.python.startREPL.title": "启动 REPL",
4+
"python.command.python.buildWorkspaceSymbols.title": "构建工作区符号",
5+
"python.command.python.runtests.title": "运行所有单元测试",
6+
"python.command.python.debugtests.title": "调试所有单元测试",
7+
"python.command.python.execInTerminal.title": "在终端中运行 Python 文件",
8+
"python.command.python.setInterpreter.title": "选择解析器",
9+
"python.command.python.updateSparkLibrary.title": "更新工作区 PySpark 库",
10+
"python.command.python.refactorExtractVariable.title": "提取变量",
11+
"python.command.python.refactorExtractMethod.title": "提取方法",
12+
"python.command.python.viewTestOutput.title": "显示单元测试输出",
13+
"python.command.python.selectAndRunTestMethod.title": "运行单元测试方法...",
14+
"python.command.python.selectAndDebugTestMethod.title": "调试单元测试方法...",
15+
"python.command.python.selectAndRunTestFile.title": "运行单元测试文件...",
16+
"python.command.python.runCurrentTestFile.title": "运行当前单元测试文件",
17+
"python.command.python.runFailedTests.title": "运行失败的单元测试",
18+
"python.command.python.execSelectionInTerminal.title": "在 Python 终端中运行选定内容/行",
19+
"python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 中运行选定内容/行",
20+
"python.command.jupyter.runSelectionLine.title": "运行选定内容/行",
21+
"python.command.jupyter.execCurrentCell.title": "运行当前 Cell",
22+
"python.command.jupyter.execCurrentCellAndAdvance.title": "运行当前 Cell 并移动到下一个 Cell",
23+
"python.command.jupyter.gotToPreviousCell.title": "转到前一个 Cell",
24+
"python.command.jupyter.gotToNextCell.title": "转到下一个 Cell",
25+
"python.command.python.goToPythonObject.title": "转到 Python 对象",
26+
"python.snippet.launch.standard.label": "Python",
27+
"python.snippet.launch.standard.description": "使用标准输出调试 Python 应用",
28+
"python.snippet.launch.pyspark.label": "Python: PySpark",
29+
"python.snippet.launch.pyspark.description": "调试 PySpark",
30+
"python.snippet.launch.module.label": "Python: 模块",
31+
"python.snippet.launch.module.description": "调试 Python 模块",
32+
"python.snippet.launch.terminal.label": "Python: 终端 (集成)",
33+
"python.snippet.launch.terminal.description": "使用集成终端调试 Python 程序",
34+
"python.snippet.launch.externalTerminal.label": "Python: 终端 (外部)",
35+
"python.snippet.launch.externalTerminal.description": "使用外部终端调试 Python 程序",
36+
"python.snippet.launch.django.label": "Python: Django",
37+
"python.snippet.launch.django.description": "调试 Django 应用",
38+
"python.snippet.launch.flask.label": "Python: Flask (0.11.x 或以后)",
39+
"python.snippet.launch.flask.description": "调试 Flask 应用",
40+
"python.snippet.launch.flaskOld.label": "Python: Flask (0.10.x 或之前)",
41+
"python.snippet.launch.flaskOld.description": "调试旧式 Flask 应用",
42+
"python.snippet.launch.pyramid.label": "Python: Pyramid 应用",
43+
"python.snippet.launch.pyramid.description": "调试 Pyramid 应用",
44+
"python.snippet.launch.watson.label": "Python: Watson 应用",
45+
"python.snippet.launch.watson.description": "调试 Watson 应用",
46+
"python.snippet.launch.attach.label": "Python: 附加",
47+
"python.snippet.launch.attach.description": "附加远程调试器",
48+
"python.snippet.launch.scrapy.label": "Python: Scrapy 应用",
49+
"python.snippet.launch.scrapy.description": "使用集成终端运行 Scrapy"
50+
}

0 commit comments

Comments
 (0)