Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "设为 `true` 以仅处理直接或间接包含为标头的文件,设为 `false` 则处理指定包含路径下的所有文件。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "所生成的符号数据库的路径。如果指定了相对路径,则它将相对于工作区的默认存储位置。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用于索引和分析工作区符号的路径列表(供“转到定义”、“查找所有引用”等使用)。默认情况下,在这些路径上进行搜索为递归搜索。指定 `*` 以指示非递归搜索。例如,`${workspaceFolder}` 将搜索所有子目录,而 `${workspaceFolder}/*` 将不进行搜索。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.reduce": "设置为 `always` 可始终将提供给 IntelliSense 的递归包含路径数减少到仅限当前由 #include 语句引用的路径。这需要首先分析文件以确定包含哪些标头。设置为 `never` 可将所有递归包含路径提供给 IntelliSense。当涉及到大量递归包含路径时,减少递归包含路径的数量可能会提高 IntelliSense 性能。如果不减少递归包含路径的数量,则可以通过避免需要分析文件以确定要提供的包含路径来提高 IntelliSense 性能。`default` 值目前会减少提供给 IntelliSense 的递归包含路径数。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.priority": "递归包含路径的优先级。如果设置为 `beforeSystemIncludes`,则会在系统包含路径之前搜索递归包含路径。如果设置为 `afterSystemIncludes` ,则会在系统包含路径后搜索递归包含路径。`beforeSystemIncludes` 将更密切地反映编译器的搜索顺序,而 `afterSystemIncludes` 则可能导致性能提升。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.order": "搜索递归包含的子目录的顺序。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可通过命令`${cpptools:activeConfigCustomVariable}` 查询的自定义变量,用于 `launch.json` 或 `tasks.json`. 中的输入变量。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/chs/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "与要从中输出诊断的标头名称匹配的 POSIX 扩展正则表达式 (ERE)。始终显示来自每个翻译单元的主文件的诊断。支持 `${workspaceFolder}` 变量(如果不存在 `.clang-tidy` 文件,则该变量将用作默认回退值)。如果此选项不是 `null` (空),则将替代 `.clang-tidy` 文件中的 `HeaderFilterRegex` 选项(如果有)。",
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要传递给 `clang-tidy` 的其他命令行参数。这些优先于等效的 `C_Cpp.codeAnalysis.clangTidy.*` 设置。",
"c_cpp.configuration.codeAnalysis.clangTidy.useBuildPath.markdownDescription": "如果设置了 `true` 和 `compileCommands`,则 `-p=<build-path>` 参数将传递给 `clang-tidy`,而不是在 `--` 之后传递生成参数。如果未设置环境变量以便可以找到系统包含项,则此操作可能不起作用。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已启用的 `clang-tidy` 检查列表。这些值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。除非显式禁用,否则始终使用默认检查 `clang-analyzer-core.*`",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "List of enabled `clang-tidy` checks. The values are appended to the `Checks` in a `.clang-tidy` file or `#C_Cpp.codeAnalysis.clangTidy.config#`, if any. The default check `clang-analyzer-core.*` is always used unless it is explicitly disabled.",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已禁用的 `clang-tidy` 检查列表。该值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。",
"c_cpp.configuration.formatting.description": "配置格式设置引擎。",
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "`clang-format` 将用于格式代码。",
Expand Down
98 changes: 97 additions & 1 deletion Extension/i18n/chs/src/nativeStrings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,101 @@
"file_not_found_in_path2": "在 compile_commands.json 文件中找不到 \"{0}\"。此文件将改用文件夹“{1}”中的 c_cpp_properties.json 中包含的 \"includePath\"。",
"copilot_hover_link": "生成 Copilot 摘要",
"browse_path_not_found": "无法为不存在的文件夹 {0} 中的文件编制索引",
"license_terms": "C/C++ 扩展只能用于 Microsoft Visual Studio、Visual Studio for Mac、Visual Studio Code、Azure DevOps、Team Foundation Server 以及后续的 Microsoft 产品和服务,以开发和测试您的应用程序。"
"license_terms": "C/C++ 扩展只能用于 Microsoft Visual Studio、Visual Studio for Mac、Visual Studio Code、Azure DevOps、Team Foundation Server 以及后续的 Microsoft 产品和服务,以开发和测试您的应用程序。",
"help_title": "Microsoft C++ Language Server",
"help_usage": "Usage: {0} [options]",
"help_options_header": "Options:",
"help_help": "Show this help message and exit.",
"help_version": "Show version information and exit.",
"help_accept_eula": "Permanently accept the End User License Agreement (EULA).",
"help_stderr": "Do not redirect stderr to /dev/null (useful for debugging).",
"help_login": "Initiate interactive login (GitHub Copilot subscription required).",
"help_force_login": "Force the login process, even if already authenticated.",
"help_allow_plaintext": "Allow storing credentials in plaintext if a secure keychain is unavailable.",
"help_log_dir": "Specify the directory for log files (default: system temp directory).",
"help_log_level": "Set the logging verbosity from 0 (Errors only) to 9 (Verbose).",
"help_lsp_config": "Specify the parameter as an absolute path, or relative to the workspace root or its .github folder.",
"help_disable_telemetry": "Disable sending telemetry data.",
"auth_device_flow_prompt": "To authenticate with GitHub, please copy the code {0} and then visit {1}. Waiting for authorization...",
"auth_timed_out": "Timed out waiting for authorization.",
"auth_success": "Successfully authenticated with GitHub.",
"auth_save_failed": "GitHub authentication succeeded but tokens could not be saved.",
"auth_keyring_error": "Keyring error: {0}",
"auth_keyring_locked": "The keyring collection is locked. Unlock it or restart gnome-keyring-daemon.",
"auth_keyring_unavailable": "No keyring service is available. Install and start gnome-keyring: sudo apt install gnome-keyring",
"auth_try_plaintext": "Or allow plaintext storage by passing --login --allow-plaintext-secret-storage.",
"auth_expired": "The device code has expired. Please try again.",
"auth_denied": "Authorization was denied by the user.",
"auth_unexpected_error": "Unexpected error during polling: {0}",
"auth_login_failed": "GitHub login failed. Try running with --login from the command line to log in.",
"auth_eula_required": "EULA must be accepted to proceed. Run with --accept-eula.",
"auth_already_authenticated": "Already authenticated with GitHub. Use --force-login to re-authenticate.",
"config_unsupported_version": "Initialization failed: Unsupported config version. Only version 1 is supported.",
"config_file_not_found": "Initialization failed: Config file '{0}' not found.",
"config_parse_failed": "Initialization failed: Unable to parse config file '{0}'. Verify the JSON format. Error: {1}",
"config_repo_path_invalid": "Initialization failed: 'repositoryPath' is not configured or invalid.",
"config_missing_source": "Initialization failed: 'compileCommands' or 'cppProperties' must be configured.",
"config_dual_source": "Initialization failed: 'compileCommands' and 'cppProperties' cannot both be configured.",
"config_compile_commands_not_found": "Initialization failed: 'compileCommands' path not found: '{0}'.",
"config_cpp_properties_not_found": "Initialization failed: 'cppProperties' path not found: '{0}'.",
"config_cpp_properties_parse_failed": "Initialization failed: Unable to parse file specified by 'cppProperties': '{0}'. Verify the JSON format. Error: {1}",
"config_cpp_properties_schema_invalid": "Initialization failed: Unable to read configuration from 'cppProperties' file: '{0}'. Verify the schema.",
"config_no_configurations": "Initialization failed: '{0}' does not contain a valid 'configurations' array.",
"config_configuration_not_found": "Initialization failed: Configuration '{0}' was not found in 'cppProperties' file: '{1}'.",
"config_paths_cache_missing": "Initialization failed: LSP config paths cache is missing.",
"curl_not_found": "libcurl not found ({0}). libcurl is required for authentication and telemetry.",
"curl_install_macos": "libcurl should be available on macOS by default. If missing, install via: brew install curl",
"curl_install_linux": "Install libcurl: sudo apt install libcurl4 (Debian/Ubuntu) or sudo dnf install libcurl (Fedora/RHEL).",
"curl_symbols_missing": "libcurl loaded but required symbols are missing. This may indicate a very old or incompatible libcurl version. The language server cannot operate without a compatible libcurl.",
"keytar_not_found": "libsecret-1.so.0 not found ({0}). libsecret is required for secure credential storage. Install libsecret: sudo apt install libsecret-1-0 (Debian/Ubuntu) or sudo dnf install libsecret (Fedora/RHEL).",
"keytar_symbols_missing": "libsecret loaded but required symbols are missing. The language server cannot operate without a compatible libsecret.",
"telemetry_disable_failed": "Failed to disable telemetry.",
"lsp_method_not_found": "Method not found: {0}",
"intellisense_same_canonical_path": "Unable to process IntelliSense for a file with the same canonicalized path as an existing file. URI: {0}, canonicalized path: {1}",
"status_initializing": "Initializing",
"status_initializing_with_n_of_m": "Initializing ({0} of {1})",
"status_initializing_with_n_of_m_and_text": "Initializing ({0} of {1}): {2}",
"status_initializing_with_text": "Initializing {0}",
"status_initializing_projects": "Initializing projects",
"status_initializing_projects_with_n_of_m": "Initializing projects ({0} of {1})",
"status_initializing_projects_with_n_of_m_and_text": "Initializing projects ({0} of {1}): {2}",
"status_initializing_projects_with_text": "Initializing projects {0}",
"status_checking_for_outdated_files": "Checking for out of date files",
"status_checking_for_outdated_files_with_n_of_m": "Checking for out of date files ({0} of {1})",
"status_checking_for_outdated_files_with_n_of_m_and_text": "Checking for out of date files ({0} of {1}): {2}",
"status_checking_for_outdated_files_with_text": "Checking for out of date files {0}",
"status_parsing_files": "Parsing files",
"status_parsing_files_with_n_of_m": "Parsing files ({0} of {1})",
"status_parsing_files_with_n_of_m_and_text": "Parsing files ({0} of {1}): {2}",
"status_parsing_files_with_text": "Parsing files {0}",
"status_parsing_includes": "Parsing included files",
"status_parsing_includes_with_n_of_m": "Parsing included files ({0} of {1})",
"status_parsing_includes_with_n_of_m_and_text": "Parsing included files ({0} of {1}): {2}",
"status_parsing_includes_with_text": "Parsing included files {0}",
"status_scanning_includes": "Scanning #includes for more files",
"status_scanning_includes_with_n_of_m": "Scanning #includes for more files ({0} of {1})",
"status_scanning_includes_with_n_of_m_and_text": "Scanning #includes for more files ({0} of {1}): {2}",
"status_scanning_includes_with_text": "Scanning #includes for more files {0} {1}",
"status_updating_external_dependencies": "Ready (Updating external dependencies)",
"status_updating_external_dependencies_with_n_of_m": "Ready (Updating external dependencies) ({0} of {1})",
"status_updating_external_dependencies_with_n_of_m_and_text": "Ready (Updating external dependencies) ({0} of {1}): {2}",
"status_updating_external_dependencies_with_text": "Ready (Updating external dependencies) {0}",
"status_optimizing_database": "Ready (Optimizing database)",
"status_optimizing_database_with_n_of_m": "Ready (Optimizing database) ({0} of {1})",
"status_optimizing_database_with_n_of_m_and_text": "Ready (Optimizing database) ({0} of {1}): {2}",
"status_optimizing_database_with_text": "Ready (Optimizing database) {0}",
"status_creating_indexes": "Creating Indexes",
"status_creating_indexes_with_n_of_m": "Creating Indexes ({0} of {1})",
"status_creating_indexes_with_n_of_m_and_text": "Creating Indexes ({0} of {1}): {2}",
"status_creating_indexes_with_text": "Creating Indexes {0}",
"status_evaluating_file": "Evaluating",
"status_evaluating_file_with_n_of_m": "Evaluating ({0} of {1})",
"status_evaluating_file_with_n_of_m_and_text": "Evaluating ({0} of {1}): {2}",
"status_evaluating_file_with_text": "Evaluating {0}",
"status_indexing_files": "Indexing files",
"status_indexing_files_with_n_of_m": "Indexing files ({0} of {1})",
"status_indexing_files_with_n_of_m_and_text": "Indexing files ({0} of {1}): {2}",
"status_indexing_files_with_text": "Indexing files {0}",
"help_allow_missing_lsp_config": "Allow the server to start even if the specified --lsp-config file does not exist.",
"initialize_failed_during_engine_setup": "Initialization failed during engine setup."
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "設為 `true`,就會只處理直接或間接以標頭形式包含的檔案。設為 `false`,則會處理位於指定 include 路徑下的所有檔案。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "產生的符號資料庫路徑。如果指定了相對路徑,就會是相對於工作區預設儲存位置的路徑。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用來為工作區符號進行索引編製與剖析的路徑清單 (供 [移至定義]、[尋找所有參考] 等使用)。根據預設,會以遞迴方式搜尋這些路徑。指定 `*` 表示非遞迴搜尋。例如,`${workspaceFolder}` 將在所有子目錄中搜尋,`${workspaceFolder}/*` 則不會。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.reduce": "設定為 `always`,可使 IntelliSense 始終僅提供目前由 #include 陳述式參考的遞迴包含路徑。這需要先剖析檔案,以確定包含哪些標頭。設定為 `never` 以將所有遞迴包含路徑提供給 IntelliSense。當涉及非常大量的遞迴包含路徑時,減少遞迴包含路徑數目可能會改善 IntelliSense 的效能。不減少遞迴包含路徑的數量,可避免需要剖析檔案以決定要提供哪些包含路徑,從而 IntelliSense 效能。目前的 `default` 值會減少 IntelliSense 提供的遞迴包含路徑數量。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.priority": "遞迴包含路徑的優先順序。如果設定為 `beforeSystemIncludes`,則會在系統包含路徑之前搜尋遞迴包含路徑。如果設定為 `afterSystemIncludes`,系統會在包含路徑之後搜尋遞迴包含路徑。`beforeSystemIncludes` 會更密切地反映編譯器的搜尋順序,而 `afterSystemIncludes` 可能會改善效能。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.order": "搜尋遞迴包含之子目錄的順序。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可透過命令 `${cpptools:activeConfigCustomVariable}` 查詢的自訂變數,用於 `launch.json` 或 `tasks.json` 的輸入變數。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/cht/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "符合輸出診斷來源之標頭名稱的 POSIX 擴充規則運算式 (ERE)。來自每個編譯單位之主要檔案的診斷將一律顯示。支援 `${workspaceFolder}` 變數 (如果沒有 `.clang-tidy` 檔案,則作為預設後援值)。若此選項並非 `null` (空白),則會覆寫 `.clang-tidy` 檔案中的 `HeaderFilterRegex` 選項 (如果有的話)。",
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要傳遞給 `clang-tidy` 的其他命令列引數。這些命令列引數會比對等的 `C_Cpp.codeAnalysis.clangTidy.*` 設定優先考慮。",
"c_cpp.configuration.codeAnalysis.clangTidy.useBuildPath.markdownDescription": "如果設定了 `true` 和 `compileCommands`,則 `-p=<build-path>` 引數會傳遞至 `clang-tidy`,而非在 `--` 之後傳遞組建引數。若未設定環境變數以找到系統包含的環境變數,可能無法運作。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已啟用的 `clang-tidy` 檢查清單。值會附加到 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。除非明確地停用,否則一律使用預設檢查 `clang-analyzer-core.*`",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "List of enabled `clang-tidy` checks. The values are appended to the `Checks` in a `.clang-tidy` file or `#C_Cpp.codeAnalysis.clangTidy.config#`, if any. The default check `clang-analyzer-core.*` is always used unless it is explicitly disabled.",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已停用的 `clang-tidy` 檢查清單。值會附加到 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。",
"c_cpp.configuration.formatting.description": "選擇格式設定引擎。",
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "將使用 `clang-format` 來格式化程式碼。",
Expand Down
Loading
Loading