Support Chinese Locale for launch configurations (#484)

* Support Chinese Locale for launch configurations

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

* Fix Chinese translation per review comments

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
This commit is contained in:
Jinbo Wang 2018-11-30 17:52:18 +08:00 committed by GitHub
parent 6d5f126b44
commit a458e5e76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 108 additions and 38 deletions

View File

@ -63,12 +63,12 @@
"properties": {
"projectName": {
"type": "string",
"description": "The preferred project in which the debugger searches for classes. There could be duplicated class names in different projects. This setting also works when the debugger looks for the specified main class when launching a program. It is required for expression evaluation.",
"description": "%java.debugger.launch.projectName.description%",
"default": ""
},
"mainClass": {
"type": "string",
"description": "The fully qualified class name (e.g. [java module name/]com.xyz.MainApp) or the java file path of the program entry.",
"description": "%java.debugger.launch.mainClass.description%",
"default": ""
},
"args": {
@ -76,7 +76,7 @@
"array",
"string"
],
"description": "The command line arguments passed to the program.",
"description": "%java.debugger.launch.args.description%",
"default": ""
},
"vmArgs": {
@ -84,7 +84,7 @@
"array",
"string"
],
"description": "The extra options and system properties for the JVM (e.g. -Xms<size> -Xmx<size> -D<name>=<value>).",
"description": "%java.debugger.launch.vmArgs.description%",
"default": ""
},
"modulePaths": {
@ -92,7 +92,7 @@
"items": {
"type": "string"
},
"description": "The modulepaths for launching the JVM. If not specified, the debugger will automatically resolve from current project.",
"description": "%java.debugger.launch.modulePaths.description%",
"default": []
},
"classPaths": {
@ -100,7 +100,7 @@
"items": {
"type": "string"
},
"description": "The classpaths for launching the JVM. If not specified, the debugger will automatically resolve from current project.",
"description": "%java.debugger.launch.classPaths.description%",
"default": []
},
"sourcePaths": {
@ -108,27 +108,27 @@
"items": {
"type": "string"
},
"description": "The extra source directories of the program. The debugger looks for source code from project settings by default. This option allows the debugger to look for source code in extra directories.",
"description": "%java.debugger.launch.sourcePaths.description%",
"default": []
},
"encoding": {
"type": "string",
"description": "The file.encoding setting for the JVM. If not specified, 'UTF-8' will be used. Possible values can be found in http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html.",
"description": "%java.debugger.launch.encoding.description%",
"default": "UTF-8"
},
"cwd": {
"type": "string",
"description": "The working directory of the program. Defaults to the current workspace root.",
"description": "%java.debugger.launch.cwd.description%",
"default": "${workspaceFolder}"
},
"env": {
"type": "object",
"description": "The extra environment variables for the program.",
"description": "%java.debugger.launch.env.description%",
"default": {}
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically pause the program after launching.",
"description": "%java.debugger.launch.stopOnEntry.description%",
"default": true
},
"console": {
@ -139,16 +139,16 @@
"externalTerminal"
],
"enumDescriptions": [
"VS Code debug console (input stream not supported).",
"VS Code integrated terminal.",
"External terminal that can be configured in user settings."
"%java.debugger.launch.internalConsole.description%",
"%java.debugger.launch.integratedTerminal.description%",
"%java.debugger.launch.externalTerminal.description%"
],
"description": "The specified console to launch the program.",
"description": "%java.debugger.launch.console.description%",
"default": "internalConsole"
},
"stepFilters": {
"type": "object",
"description": "Skip specified classes or methods when stepping.",
"description": "%java.debugger.launch.stepFilters.description%",
"default": {
"classNameFilters": [
"java.*",
@ -165,7 +165,7 @@
"properties": {
"classNameFilters": {
"type": "array",
"description": "Skip the specified classes when stepping. Class names should be fully qualified. Wildcard is supported.",
"description": "%java.debugger.launch.classNameFilters.description%",
"item": {
"type": "string"
},
@ -180,17 +180,17 @@
},
"skipSynthetics": {
"type": "boolean",
"description": "Skip synthetic methods when stepping.",
"description": "%java.debugger.launch.skipSynthetics.description%",
"default": true
},
"skipStaticInitializers": {
"type": "boolean",
"description": "Skip static initializer methods when stepping.",
"description": "%java.debugger.launch.skipStaticInitializers.description%",
"default": true
},
"skipConstructors": {
"type": "boolean",
"description": "Skip constructor methods when stepping.",
"description": "%java.debugger.launch.skipConstructors.description%",
"default": true
}
}
@ -206,16 +206,16 @@
"hostName": {
"type": "string",
"default": "localhost",
"description": "The host name or ip address of remote debuggee."
"description": "%java.debugger.attach.hostName.description%"
},
"port": {
"type": "number",
"description": "The debug port of remote debuggee."
"description": "%java.debugger.attach.port.description%"
},
"timeout": {
"type": "number",
"default": 30000,
"description": "Timeout value before reconnecting, in milliseconds (default to 30000ms)."
"description": "%java.debugger.attach.timeout.description%"
},
"sourcePaths": {
"type": "array",
@ -223,16 +223,16 @@
"type": "string"
},
"default": [],
"description": "The extra source directories of the program. The debugger looks for source code from project settings by default. This option allows the debugger to look for source code in extra directories."
"description": "%java.debugger.launch.sourcePaths.description%"
},
"projectName": {
"type": "string",
"description": "The preferred project in which the debugger searches for classes. There could be duplicated class names in different projects.",
"description": "%java.debugger.attach.projectName.description%",
"default": ""
},
"stepFilters": {
"type": "object",
"description": "Skip specified classes or methods when stepping.",
"description": "%java.debugger.launch.stepFilters.description%",
"default": {
"classNameFilters": [
"java.*",
@ -249,7 +249,7 @@
"properties": {
"classNameFilters": {
"type": "array",
"description": "Skip the specified classes when stepping. Class names should be fully qualified. Wildcard is supported.",
"description": "%java.debugger.launch.classNameFilters.description%",
"item": {
"type": "string"
},
@ -264,17 +264,17 @@
},
"skipSynthetics": {
"type": "boolean",
"description": "Skip synthetic methods when stepping.",
"description": "%java.debugger.launch.skipSynthetics.description%",
"default": false
},
"skipStaticInitializers": {
"type": "boolean",
"description": "Skip static initializer methods when stepping.",
"description": "%java.debugger.launch.skipStaticInitializers.description%",
"default": false
},
"skipConstructors": {
"type": "boolean",
"description": "Skip constructor methods when stepping.",
"description": "%java.debugger.launch.skipConstructors.description%",
"default": false
}
}
@ -285,7 +285,7 @@
"configurationSnippets": [
{
"label": "Java: Launch Program",
"description": "Add a new configuration for launching a java program.",
"description": "%java.debugger.snippet.launch.description%",
"body": {
"type": "java",
"name": "Debug (Launch)",
@ -295,7 +295,7 @@
},
{
"label": "Java: Launch Program in External Terminal",
"description": "Add a new configuration for launching a java program in the external terminal.",
"description": "%java.debugger.snippet.launchInExternalTerminal.description%",
"body": {
"type": "java",
"name": "Debug (Launch) - External Terminal",
@ -306,7 +306,7 @@
},
{
"label": "Java: Launch Program in Current File",
"description": "Add a new configuration for launching current java file.",
"description": "%java.debugger.snippet.launchCurrentFile.description%",
"body": {
"type": "java",
"name": "Debug (Launch) - Current File",
@ -316,7 +316,7 @@
},
{
"label": "Java: Launch Program with Arguments Prompt",
"description": "Add a new configuration for launching a java program with arguments prompt.",
"description": "%java.debugger.snippet.launchWithArgumentsPrompt.description%",
"body": {
"type": "java",
"name": "Debug (Launch) with Arguments Prompt",
@ -327,7 +327,7 @@
},
{
"label": "Java: Attach",
"description": "Add a new configuration for attaching to a running java program.",
"description": "%java.debugger.snippet.attach.description%",
"body": {
"type": "java",
"name": "Debug (Attach)",
@ -338,7 +338,7 @@
},
{
"label": "Java: Attach to Remote Program",
"description": "Add a new configuration for attaching to a remote java program.",
"description": "%java.debugger.snippet.attachRemote.description%",
"body": {
"type": "java",
"name": "Debug (Attach) - Remote",

View File

@ -1,5 +1,5 @@
{
"java.debugger.configuration.title": "Java: Configurazione Debugger",
"java.debugger.configuration.title": "Java Debugger",
"java.debugger.configuration.logLevel.description": "Livello dei log di debug minimo inviato a VS Code.",
"java.debugger.configuration.showHex.description": "Mostra numeri in formato esadecimale nella scheda \"variabili\".",
"java.debugger.configuration.showStaticVariables.description": "Mostra variabili statiche nella scheda \"variabili\".",

View File

@ -1,5 +1,35 @@
{
"java.debugger.configuration.title": "Java: Debugger Configuration",
"java.debugger.launch.projectName.description": "The preferred project in which the debugger searches for classes. There could be duplicated class names in different projects. This setting also works when the debugger looks for the specified main class when launching a program. It is required for expression evaluation.",
"java.debugger.launch.mainClass.description": "The fully qualified class name (e.g. [java module name/]com.xyz.MainApp) or the java file path of the program entry.",
"java.debugger.launch.args.description": "The command line arguments passed to the program.",
"java.debugger.launch.vmArgs.description": "The extra options and system properties for the JVM (e.g. -Xms<size> -Xmx<size> -D<name>=<value>).",
"java.debugger.launch.modulePaths.description": "The modulepaths for launching the JVM. If not specified, the debugger will automatically resolve from current project.",
"java.debugger.launch.classPaths.description": "The classpaths for launching the JVM. If not specified, the debugger will automatically resolve from current project.",
"java.debugger.launch.sourcePaths.description": "The extra source directories of the program. The debugger looks for source code from project settings by default. This option allows the debugger to look for source code in extra directories.",
"java.debugger.launch.encoding.description": "The file.encoding setting for the JVM. If not specified, 'UTF-8' will be used. Possible values can be found in http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html.",
"java.debugger.launch.cwd.description": "The working directory of the program. Defaults to the current workspace root.",
"java.debugger.launch.env.description": "The extra environment variables for the program.",
"java.debugger.launch.stopOnEntry.description": "Automatically pause the program after launching.",
"java.debugger.launch.internalConsole.description": "VS Code debug console (input stream not supported).",
"java.debugger.launch.integratedTerminal.description": "VS Code integrated terminal.",
"java.debugger.launch.externalTerminal.description": "External terminal that can be configured in user settings.",
"java.debugger.launch.console.description": "The specified console to launch the program.",
"java.debugger.launch.stepFilters.description": "Skip specified classes or methods when stepping.",
"java.debugger.launch.classNameFilters.description": "Skip the specified classes when stepping. Class names should be fully qualified. Wildcard is supported.",
"java.debugger.launch.skipSynthetics.description": "Skip synthetic methods when stepping.",
"java.debugger.launch.skipStaticInitializers.description": "Skip static initializer methods when stepping.",
"java.debugger.launch.skipConstructors.description": "Skip constructor methods when stepping.",
"java.debugger.attach.hostName.description": "The host name or ip address of remote debuggee.",
"java.debugger.attach.port.description": "The debug port of remote debuggee.",
"java.debugger.attach.timeout.description": "Timeout value before reconnecting, in milliseconds (default to 30000ms).",
"java.debugger.attach.projectName.description": "The preferred project in which the debugger searches for classes. There could be duplicated class names in different projects.",
"java.debugger.snippet.launch.description": "Add a new configuration for launching a java program.",
"java.debugger.snippet.launchInExternalTerminal.description": "Add a new configuration for launching a java program in the external terminal.",
"java.debugger.snippet.launchCurrentFile.description": "Add a new configuration for launching current java file.",
"java.debugger.snippet.launchWithArgumentsPrompt.description": "Add a new configuration for launching a java program with arguments prompt.",
"java.debugger.snippet.attach.description": "Add a new configuration for attaching to a running java program.",
"java.debugger.snippet.attachRemote.description": "Add a new configuration for attaching to a remote java program.",
"java.debugger.configuration.title": "Java Debugger",
"java.debugger.configuration.logLevel.description": "Minimum level of debugger logs that are sent to VS Code.",
"java.debugger.configuration.showHex.description": "Show numbers in hex format in \"Variables\" viewlet.",
"java.debugger.configuration.showStaticVariables.description": "Show static variables in \"Variables\" viewlet.",

40
package.nls.zh.json Normal file
View File

@ -0,0 +1,40 @@
{
"java.debugger.launch.projectName.description": "调试器搜索类名时的首选工程。不同工程中可能存在重复的类名。当调试器在启动应用程序时查找指定的主类,此设置也有效。当使用表达式求值功能时,需要此配置项。",
"java.debugger.launch.mainClass.description": "主类的全名(例如[java module name /] com.xyz.MainApp或主类对应的java文件路径。",
"java.debugger.launch.args.description": "启动应用程序的命令行参数。",
"java.debugger.launch.vmArgs.description": "用于启动JVM的额外选项和系统属性例如-Xms <size> -Xmx <size> -D <name> = <value>)。",
"java.debugger.launch.modulePaths.description": "用于启动JVM的模块路径。如果未指定调试器将自动从当前工程中解析。",
"java.debugger.launch.classPaths.description": "用于启动JVM的类路径。如果未指定调试器将自动从当前工程中解析。",
"java.debugger.launch.sourcePaths.description": "应用程序的额外源代码目录。调试器默认从工程配置中查找源代码。此选项允许调试器在额外目录中查找源代码。",
"java.debugger.launch.encoding.description": "JVM的file.encoding设置。如果未指定将使用“UTF-8”。可以在http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html中找到可能的值。",
"java.debugger.launch.cwd.description": "应用程序的工作目录。默认为当前工作空间根目录。",
"java.debugger.launch.env.description": "启动应用程序时自定义的环境变量。",
"java.debugger.launch.stopOnEntry.description": "启动后自动暂停应用程序。",
"java.debugger.launch.internalConsole.description": "VS Code调试控制台不支持输入流。",
"java.debugger.launch.integratedTerminal.description": "VS Code集成终端。",
"java.debugger.launch.externalTerminal.description": "外部终端(可在用户设置中修改)。",
"java.debugger.launch.console.description": "用于启动应用程序的控制台。",
"java.debugger.launch.stepFilters.description": "Step时跳过指定的类或方法。",
"java.debugger.launch.classNameFilters.description": "Step时跳过指定的类。仅支持全名以及通配符。",
"java.debugger.launch.skipSynthetics.description": "Step时跳过合成方法。",
"java.debugger.launch.skipStaticInitializers.description": "Step时跳过静态初始化方法。",
"java.debugger.launch.skipConstructors.description": "Step时跳过构造函数。",
"java.debugger.attach.hostName.description": "远程调试进程所在的主机名或IP地址。",
"java.debugger.attach.port.description": "远程调试进程的调试端口。",
"java.debugger.attach.timeout.description": "重新连接前的超时值以毫秒为单位默认为30000ms。",
"java.debugger.attach.projectName.description": "调试器搜索类的首选工程。不同工程中可能存在重复的类名。",
"java.debugger.snippet.launch.description": "启动java程序。",
"java.debugger.snippet.launchInExternalTerminal.description": "在外部终端中启动java程序。",
"java.debugger.snippet.launchCurrentFile.description": "启动当前java文件中的程序。",
"java.debugger.snippet.launchWithArgumentsPrompt.description": "启动java程序时动态提示命令行参数。",
"java.debugger.snippet.attach.description": "附加到正在运行的java程序。",
"java.debugger.snippet.attachRemote.description": "附加到远程java程序。",
"java.debugger.configuration.title": "Java调试器",
"java.debugger.configuration.logLevel.description": "Java调试器的日志级别。",
"java.debugger.configuration.showHex.description": "在“变量”视图中以十六进制格式显示数值。",
"java.debugger.configuration.showStaticVariables.description": "在“变量”视图中显示静态变量。",
"java.debugger.configuration.showQualifiedNames.description": "在“变量”视图中显示类的全名。",
"java.debugger.configuration.maxStringLength.description": "设定“变量”或“调试控制台”视图中显示的字符串最大长度长度超过部分将被剪掉。如果值为0则不执行修剪。",
"java.debugger.configuration.enableHotCodeReplace.description": "为Java代码启用热代码替换。",
"java.debugger.configuration.enableRunDebugCodeLens.description": "在main方法上启用CodeLens标记。"
}