Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Simplified Chinese translation of Quickopen command #240

Merged
merged 10 commits into from
Dec 4, 2017
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down
24 changes: 24 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
50 changes: 50 additions & 0 deletions package.nls.zh-cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"python.command.python.sortImports.title": "排序引入的模块",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's confused, how about 排序 import 语句?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link

@lambdaq lambdaq Nov 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对 import 进行排序

会 python 用 vscode 的都能明白什么是 import.
Python developers and vscode users can understand what import means here. No need to translate the keyword.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

"python.command.python.startREPL.title": "启动 REPL",
"python.command.python.buildWorkspaceSymbols.title": "构建工作区符号",
"python.command.python.runtests.title": "运行全部单元测试",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IHMO, 全部 -> 所有 is better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, VSCode used 91 '所有' and 35 '全部', in my local branch.

"python.command.python.debugtests.title": "调试全部单元测试",
"python.command.python.execInTerminal.title": "在终端/命令行运行 Python 文件",
Copy link

@lambdaq lambdaq Nov 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在命令行运行 Python 文件

这样简洁一点。This removes the duplication of 终端/命令行 for simplicity.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

"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 终端运行选定内容/行",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about 在 Python 终端中运行选定内容/行?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as below ↓.

"python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 运行选定内容/行",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about 在 Django Shell 中运行选定内容/行?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The '中' (means 'in') seems a little annoying, but it is widely used in the translation of VSCode, will add it.

Copy link

@lambdaq lambdaq Nov 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 Python 命令行执行选定内容

更简洁。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these duplications.

"python.command.jupyter.runSelectionLine.title": "运行选定内容/行",
"python.command.jupyter.execCurrentCell.title": "运行 Cell",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about 运行当前 Cell?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, 'current' is not translated.

"python.command.jupyter.execCurrentCellAndAdvance.title": "运行 Cell 和 Advance",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Advance mean move to the next Cell.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fixed.

"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": "链接远程调试器",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

attach not mean 链接.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, MS translate it as '附加', https://msdn.microsoft.com/zh-cn/library/3s68z0b3.aspx

"python.snippet.launch.scrapy.label": "Python: Scrapy 应用",
"python.snippet.launch.scrapy.description": "使用集成终端/命令行运行 Scrapy"
}