From 42a6406043b72b1cf35f46ce3c38b5864e83074c Mon Sep 17 00:00:00 2001 From: waisuikei Date: Thu, 16 Nov 2017 09:23:20 +0800 Subject: [PATCH 1/8] loc: add Simpified Chinese translation for Quickopen command --- package.json | 48 ++++++++++++++++++++-------------------- package.nls.json | 24 ++++++++++++++++++++ package.nls.zh-cn.json | 50 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+), 24 deletions(-) create mode 100644 package.nls.zh-cn.json diff --git a/package.json b/package.json index 053c5370522e..22385d9b3f84 100644 --- a/package.json +++ b/package.json @@ -84,122 +84,122 @@ "commands": [ { "command": "python.sortImports", - "title": "Sort Imports", + "title": "%python.command.python.sortImports.title%", "category": "Python Refactor" }, { "command": "python.startREPL", - "title": "Start REPL", + "title": "%python.command.python.startREPL.title%", "category": "Python" }, { "command": "python.buildWorkspaceSymbols", - "title": "Build Workspace Symbols", + "title": "%python.command.python.buildWorkspaceSymbols.title%", "category": "Python" }, { "command": "python.runtests", - "title": "Run All Unit Tests", + "title": "%python.command.python.runtests.title%", "category": "Python" }, { "command": "python.debugtests", - "title": "Debug All Unit Tests", + "title": "%python.command.python.debugtests.title%", "category": "Python" }, { "command": "python.execInTerminal", - "title": "Run Python File in Terminal", + "title": "%python.command.python.execInTerminal.title%", "category": "Python" }, { "command": "python.setInterpreter", - "title": "Select Interpreter", + "title": "%python.command.python.setInterpreter.title%", "category": "Python" }, { "command": "python.updateSparkLibrary", - "title": "Update Workspace PySpark Libraries", + "title": "%python.command.python.updateSparkLibrary.title%", "category": "Python" }, { "command": "python.refactorExtractVariable", - "title": "Extract Variable", + "title": "%python.command.python.refactorExtractVariable.title%", "category": "Python Refactor" }, { "command": "python.refactorExtractMethod", - "title": "Extract Method", + "title": "%python.command.python.refactorExtractMethod.title%", "category": "Python Refactor" }, { "command": "python.viewTestOutput", - "title": "Show Unit Test Output", + "title": "%python.command.python.viewTestOutput.title%", "category": "Python" }, { "command": "python.selectAndRunTestMethod", - "title": "Run Unit Test Method ...", + "title": "%python.command.python.selectAndRunTestMethod.title%", "category": "Python" }, { "command": "python.selectAndDebugTestMethod", - "title": "Debug Unit Test Method ...", + "title": "%python.command.python.selectAndDebugTestMethod.title%", "category": "Python" }, { "command": "python.selectAndRunTestFile", - "title": "Run Unit Test File ...", + "title": "%python.command.python.selectAndRunTestFile.title%", "category": "Python" }, { "command": "python.runCurrentTestFile", - "title": "Run Current Unit Test File", + "title": "%python.command.python.runCurrentTestFile.title%", "category": "Python" }, { "command": "python.runFailedTests", - "title": "Run Failed Unit Tests", + "title": "%python.command.python.runFailedTests.title%", "category": "Python" }, { "command": "python.execSelectionInTerminal", - "title": "Run Selection/Line in Python Terminal", + "title": "%python.command.python.execSelectionInTerminal.title%", "category": "Python" }, { "command": "python.execSelectionInDjangoShell", - "title": "Run Selection/Line in Django Shell", + "title": "%python.command.python.execSelectionInDjangoShell.title%", "category": "Python" }, { "command": "jupyter.runSelectionLine", - "title": "Run Selection/Line", + "title": "%python.command.jupyter.runSelectionLine.title%", "category": "Jupyter" }, { "command": "jupyter.execCurrentCell", - "title": "Run Cell", + "title": "%python.command.jupyter.execCurrentCell.title%", "category": "Jupyter" }, { "command": "jupyter.execCurrentCellAndAdvance", - "title": "Run Cell and Advance", + "title": "%python.command.jupyter.execCurrentCellAndAdvance.title%", "category": "Jupyter" }, { "command": "jupyter.gotToPreviousCell", - "title": "Go to Previous Cell", + "title": "%python.command.jupyter.gotToPreviousCell.title%", "category": "Jupyter" }, { "command": "jupyter.gotToNextCell", - "title": "Go to Next Cell", + "title": "%python.command.jupyter.gotToNextCell.title%", "category": "Jupyter" }, { "command": "python.goToPythonObject", - "title": "Go to Python Object", + "title": "%python.command.python.goToPythonObject.title%", "category": "Python" } ], diff --git a/package.nls.json b/package.nls.json index cf092729a945..c6af56214f8d 100644 --- a/package.nls.json +++ b/package.nls.json @@ -1,4 +1,28 @@ { + "python.command.python.sortImports.title": "Sort Imports", + "python.command.python.startREPL.title": "Start REPL", + "python.command.python.buildWorkspaceSymbols.title": "Build Workspace Symbols", + "python.command.python.runtests.title": "Run All Unit Tests", + "python.command.python.debugtests.title": "Debug All Unit Tests", + "python.command.python.execInTerminal.title": "Run Python File in Terminal", + "python.command.python.setInterpreter.title": "Select Interpreter", + "python.command.python.updateSparkLibrary.title": "Update Workspace PySpark Libraries", + "python.command.python.refactorExtractVariable.title": "Extract Variable", + "python.command.python.refactorExtractMethod.title": "Extract Method", + "python.command.python.viewTestOutput.title": "Show Unit Test Output", + "python.command.python.selectAndRunTestMethod.title": "Run Unit Test Method ...", + "python.command.python.selectAndDebugTestMethod.title": "Debug Unit Test Method ...", + "python.command.python.selectAndRunTestFile.title": "Run Unit Test File ...", + "python.command.python.runCurrentTestFile.title": "Run Current Unit Test File", + "python.command.python.runFailedTests.title": "Run Failed Unit Tests", + "python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal", + "python.command.python.execSelectionInDjangoShell.title": "Run Selection/Line in Django Shell", + "python.command.jupyter.runSelectionLine.title": "Run Selection/Line", + "python.command.jupyter.execCurrentCell.title": "Run Cell", + "python.command.jupyter.execCurrentCellAndAdvance.title": "Run Cell and Advance", + "python.command.jupyter.gotToPreviousCell.title": "Go to Previous Cell", + "python.command.jupyter.gotToNextCell.title": "Go to Next Cell", + "python.command.python.goToPythonObject.title": "Go to Python Object", "python.snippet.launch.standard.label": "Python", "python.snippet.launch.standard.description": "Debug a Python program with standard output", "python.snippet.launch.pyspark.label": "Python: PySpark", diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json new file mode 100644 index 000000000000..c2e76e51b68c --- /dev/null +++ b/package.nls.zh-cn.json @@ -0,0 +1,50 @@ +{ + "python.command.python.sortImports.title": "排序引入的模块", + "python.command.python.startREPL.title": "启动REPL", + "python.command.python.buildWorkspaceSymbols.title": "构建工作区符号", + "python.command.python.runtests.title": "运行全部单元测试", + "python.command.python.debugtests.title": "调试全部单元测试", + "python.command.python.execInTerminal.title": "在终端/命令行运行 Python 文件", + "python.command.python.setInterpreter.title": "选择解析器", + "python.command.python.updateSparkLibrary.title": "更新工作区 PySpark 库", + "python.command.python.refactorExtractVariable.title": "提取变量", + "python.command.python.refactorExtractMethod.title": "提取方法", + "python.command.python.viewTestOutput.title": "显示单元测试输出", + "python.command.python.selectAndRunTestMethod.title": "运行单元测试方法...", + "python.command.python.selectAndDebugTestMethod.title": "调试单元测试方法...", + "python.command.python.selectAndRunTestFile.title": "运行单元测试文件...", + "python.command.python.runCurrentTestFile.title": "运行当前单元测试文件", + "python.command.python.runFailedTests.title": "运行失败的单元测试", + "python.command.python.execSelectionInTerminal.title": "在 Python 终端运行选定内容/行", + "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 运行选定内容/行", + "python.command.jupyter.runSelectionLine.title": "运行选定内容/行", + "python.command.jupyter.execCurrentCell.title": "运行 Cell", + "python.command.jupyter.execCurrentCellAndAdvance.title": "运行 Cell 和 Advance", + "python.command.jupyter.gotToPreviousCell.title": "转到前一个 Cell", + "python.command.jupyter.gotToNextCell.title": "转到下一个 Cell", + "python.command.python.goToPythonObject.title": "转到 Python 对象", + "python.snippet.launch.standard.label": "Python", + "python.snippet.launch.standard.description": "使用标准输出调试 Python 应用", + "python.snippet.launch.pyspark.label": "Python: PySpark", + "python.snippet.launch.pyspark.description": "调试 PySpark", + "python.snippet.launch.module.label": "Python: 模块", + "python.snippet.launch.module.description": "调试 Python 模块", + "python.snippet.launch.terminal.label": "Python: 终端 (集成)", + "python.snippet.launch.terminal.description": "使用集成终端/命令行调试 Python 程序", + "python.snippet.launch.externalTerminal.label": "Python: 终端 (外部)", + "python.snippet.launch.externalTerminal.description": "使用外部终端/命令行调试 Python 程序", + "python.snippet.launch.django.label": "Python: Django", + "python.snippet.launch.django.description": "调试 Django 应用", + "python.snippet.launch.flask.label": "Python: Flask (0.11.x 或以后)", + "python.snippet.launch.flask.description": "调试 Flask 应用", + "python.snippet.launch.flaskOld.label": "Python: Flask (0.10.x 或之前)", + "python.snippet.launch.flaskOld.description": "调试旧式 Flask 应用", + "python.snippet.launch.pyramid.label": "Python: Pyramid 应用", + "python.snippet.launch.pyramid.description": "调试 Pyramid 应用", + "python.snippet.launch.watson.label": "Python: Watson 应用", + "python.snippet.launch.watson.description": "调试 Watson 应用", + "python.snippet.launch.attach.label": "Python: 链接", + "python.snippet.launch.attach.description": "链接远程调试器", + "python.snippet.launch.scrapy.label": "Python: Scrapy 应用", + "python.snippet.launch.scrapy.description": "使用集成终端/命令行运行 Scrapy" +} From 342cef0b496751d49b6fff1603dca684590da524 Mon Sep 17 00:00:00 2001 From: waisuikei Date: Thu, 16 Nov 2017 09:27:56 +0800 Subject: [PATCH 2/8] style: add white space between Chinese and English --- package.nls.zh-cn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index c2e76e51b68c..5247ce36eb9d 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -1,6 +1,6 @@ { "python.command.python.sortImports.title": "排序引入的模块", - "python.command.python.startREPL.title": "启动REPL", + "python.command.python.startREPL.title": "启动 REPL", "python.command.python.buildWorkspaceSymbols.title": "构建工作区符号", "python.command.python.runtests.title": "运行全部单元测试", "python.command.python.debugtests.title": "调试全部单元测试", From 73febf22d3ac472eb7e2fb7a1c37cb1dbd9b2038 Mon Sep 17 00:00:00 2001 From: waisuikei Date: Mon, 27 Nov 2017 10:02:56 +0800 Subject: [PATCH 3/8] Revamp as per reviews --- package.nls.zh-cn.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 5247ce36eb9d..b30de8fde8f0 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -1,10 +1,10 @@ { - "python.command.python.sortImports.title": "排序引入的模块", + "python.command.python.sortImports.title": "对 import 进行排序", "python.command.python.startREPL.title": "启动 REPL", "python.command.python.buildWorkspaceSymbols.title": "构建工作区符号", - "python.command.python.runtests.title": "运行全部单元测试", - "python.command.python.debugtests.title": "调试全部单元测试", - "python.command.python.execInTerminal.title": "在终端/命令行运行 Python 文件", + "python.command.python.runtests.title": "运行所有单元测试", + "python.command.python.debugtests.title": "调试所有单元测试", + "python.command.python.execInTerminal.title": "在终端运行 Python 文件", "python.command.python.setInterpreter.title": "选择解析器", "python.command.python.updateSparkLibrary.title": "更新工作区 PySpark 库", "python.command.python.refactorExtractVariable.title": "提取变量", @@ -15,10 +15,10 @@ "python.command.python.selectAndRunTestFile.title": "运行单元测试文件...", "python.command.python.runCurrentTestFile.title": "运行当前单元测试文件", "python.command.python.runFailedTests.title": "运行失败的单元测试", - "python.command.python.execSelectionInTerminal.title": "在 Python 终端运行选定内容/行", - "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 运行选定内容/行", + "python.command.python.execSelectionInTerminal.title": "在 Python 终端运行选定内容", + "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 运行选定内容", "python.command.jupyter.runSelectionLine.title": "运行选定内容/行", - "python.command.jupyter.execCurrentCell.title": "运行 Cell", + "python.command.jupyter.execCurrentCell.title": "运行当前 Cell", "python.command.jupyter.execCurrentCellAndAdvance.title": "运行 Cell 和 Advance", "python.command.jupyter.gotToPreviousCell.title": "转到前一个 Cell", "python.command.jupyter.gotToNextCell.title": "转到下一个 Cell", @@ -30,9 +30,9 @@ "python.snippet.launch.module.label": "Python: 模块", "python.snippet.launch.module.description": "调试 Python 模块", "python.snippet.launch.terminal.label": "Python: 终端 (集成)", - "python.snippet.launch.terminal.description": "使用集成终端/命令行调试 Python 程序", + "python.snippet.launch.terminal.description": "使用集成终端调试 Python 程序", "python.snippet.launch.externalTerminal.label": "Python: 终端 (外部)", - "python.snippet.launch.externalTerminal.description": "使用外部终端/命令行调试 Python 程序", + "python.snippet.launch.externalTerminal.description": "使用外部终端调试 Python 程序", "python.snippet.launch.django.label": "Python: Django", "python.snippet.launch.django.description": "调试 Django 应用", "python.snippet.launch.flask.label": "Python: Flask (0.11.x 或以后)", @@ -46,5 +46,5 @@ "python.snippet.launch.attach.label": "Python: 链接", "python.snippet.launch.attach.description": "链接远程调试器", "python.snippet.launch.scrapy.label": "Python: Scrapy 应用", - "python.snippet.launch.scrapy.description": "使用集成终端/命令行运行 Scrapy" + "python.snippet.launch.scrapy.description": "使用集成终端运行 Scrapy" } From 8749321c9c754a3af51f32063c601234bb1a612b Mon Sep 17 00:00:00 2001 From: waisuikei Date: Mon, 27 Nov 2017 10:14:33 +0800 Subject: [PATCH 4/8] =?UTF-8?q?Fix=20the=20translation=20of=20=E2=80=98Att?= =?UTF-8?q?ach=20debugger=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.nls.zh-cn.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index b30de8fde8f0..5368122dd4ff 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -43,8 +43,8 @@ "python.snippet.launch.pyramid.description": "调试 Pyramid 应用", "python.snippet.launch.watson.label": "Python: Watson 应用", "python.snippet.launch.watson.description": "调试 Watson 应用", - "python.snippet.launch.attach.label": "Python: 链接", - "python.snippet.launch.attach.description": "链接远程调试器", + "python.snippet.launch.attach.label": "Python: 附加", + "python.snippet.launch.attach.description": "附加远程调试器", "python.snippet.launch.scrapy.label": "Python: Scrapy 应用", "python.snippet.launch.scrapy.description": "使用集成终端运行 Scrapy" } From cc8cf6b69633c23e2f6943a38a030c190fe1cd66 Mon Sep 17 00:00:00 2001 From: waisuikei Date: Mon, 27 Nov 2017 10:22:44 +0800 Subject: [PATCH 5/8] =?UTF-8?q?Fix=20the=20translation=20of=20=E2=80=98adv?= =?UTF-8?q?ance=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.nls.zh-cn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 5368122dd4ff..1cf850ff8a8c 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -19,7 +19,7 @@ "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 运行选定内容", "python.command.jupyter.runSelectionLine.title": "运行选定内容/行", "python.command.jupyter.execCurrentCell.title": "运行当前 Cell", - "python.command.jupyter.execCurrentCellAndAdvance.title": "运行 Cell 和 Advance", + "python.command.jupyter.execCurrentCellAndAdvance.title": "运行当前 Cell 并移动到下一个 Cell", "python.command.jupyter.gotToPreviousCell.title": "转到前一个 Cell", "python.command.jupyter.gotToNextCell.title": "转到下一个 Cell", "python.command.python.goToPythonObject.title": "转到 Python 对象", From 47051c91d1b179fc7ad92f20bb4e635b4c779543 Mon Sep 17 00:00:00 2001 From: waisuikei Date: Mon, 27 Nov 2017 10:34:58 +0800 Subject: [PATCH 6/8] Missing `in` --- package.nls.zh-cn.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 1cf850ff8a8c..10f973f7dedd 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -4,7 +4,7 @@ "python.command.python.buildWorkspaceSymbols.title": "构建工作区符号", "python.command.python.runtests.title": "运行所有单元测试", "python.command.python.debugtests.title": "调试所有单元测试", - "python.command.python.execInTerminal.title": "在终端运行 Python 文件", + "python.command.python.execInTerminal.title": "在终端中运行 Python 文件", "python.command.python.setInterpreter.title": "选择解析器", "python.command.python.updateSparkLibrary.title": "更新工作区 PySpark 库", "python.command.python.refactorExtractVariable.title": "提取变量", @@ -15,8 +15,8 @@ "python.command.python.selectAndRunTestFile.title": "运行单元测试文件...", "python.command.python.runCurrentTestFile.title": "运行当前单元测试文件", "python.command.python.runFailedTests.title": "运行失败的单元测试", - "python.command.python.execSelectionInTerminal.title": "在 Python 终端运行选定内容", - "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 运行选定内容", + "python.command.python.execSelectionInTerminal.title": "在 Python 终端中运行选定内容", + "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 中运行选定内容", "python.command.jupyter.runSelectionLine.title": "运行选定内容/行", "python.command.jupyter.execCurrentCell.title": "运行当前 Cell", "python.command.jupyter.execCurrentCellAndAdvance.title": "运行当前 Cell 并移动到下一个 Cell", From 6f82527ec2d5e617bcdebf7c9e4d0ca7280d528e Mon Sep 17 00:00:00 2001 From: waisuikei Date: Mon, 27 Nov 2017 14:11:55 +0800 Subject: [PATCH 7/8] Missing `line` --- package.nls.zh-cn.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 10f973f7dedd..b5152072ea89 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -15,8 +15,8 @@ "python.command.python.selectAndRunTestFile.title": "运行单元测试文件...", "python.command.python.runCurrentTestFile.title": "运行当前单元测试文件", "python.command.python.runFailedTests.title": "运行失败的单元测试", - "python.command.python.execSelectionInTerminal.title": "在 Python 终端中运行选定内容", - "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 中运行选定内容", + "python.command.python.execSelectionInTerminal.title": "在 Python 终端中运行选定内容/行", + "python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 中运行选定内容/行", "python.command.jupyter.runSelectionLine.title": "运行选定内容/行", "python.command.jupyter.execCurrentCell.title": "运行当前 Cell", "python.command.jupyter.execCurrentCellAndAdvance.title": "运行当前 Cell 并移动到下一个 Cell", From 0a20c0f5532f49db62984806cb53814e555344c7 Mon Sep 17 00:00:00 2001 From: waisuikei Date: Tue, 28 Nov 2017 09:26:54 +0800 Subject: [PATCH 8/8] Sort imports --- package.nls.zh-cn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index b5152072ea89..110104f6625b 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -1,5 +1,5 @@ { - "python.command.python.sortImports.title": "对 import 进行排序", + "python.command.python.sortImports.title": "排序 import 语句", "python.command.python.startREPL.title": "启动 REPL", "python.command.python.buildWorkspaceSymbols.title": "构建工作区符号", "python.command.python.runtests.title": "运行所有单元测试",